cond.d (dmd-2.095.0) | : | cond.d (dmd-2.095.1) | ||
---|---|---|---|---|
skipping to change at line 958 | skipping to change at line 958 | |||
} | } | |||
/**************************************** | /**************************************** | |||
* Find `ident` in an array of identifiers. | * Find `ident` in an array of identifiers. | |||
* Params: | * Params: | |||
* ids = array of identifiers | * ids = array of identifiers | |||
* ident = identifier to search for | * ident = identifier to search for | |||
* Returns: | * Returns: | |||
* true if found | * true if found | |||
*/ | */ | |||
bool findCondition(Identifiers* ids, Identifier ident) | bool findCondition(Identifiers* ids, Identifier ident) @safe nothrow pure | |||
{ | { | |||
if (ids) | if (ids) | |||
{ | { | |||
foreach (id; *ids) | foreach (id; *ids) | |||
{ | { | |||
if (id == ident) | if (id == ident) | |||
return true; | return true; | |||
} | } | |||
} | } | |||
return false; | return false; | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |