Enumerating all the language constructs that return an unexpected value doesn't really convey the purpose of the condition — you want to make sure every branch ends with an "obvious" value-returning statement.
Replacing EndsInIterationOrBareIfOrDeclaration with e.g. EndsWithValue would make it easier to read, and better convey the intended purpose.
Enumerating all the language constructs that return an unexpected value doesn't really convey the purpose of the condition — you want to make sure every branch ends with an "obvious" value-returning statement.
Replacing
EndsInIterationOrBareIfOrDeclaration
with e.g.EndsWithValue
would make it easier to read, and better convey the intended purpose.