variable declared in foreach loop

Topics: APIs
Oct 24, 2014 at 9:30 AM

I wonder why ForeachStatementSyntax contains IdentifierToken directly and not VariableDeclarator. Is there a reason for this? If there was VariableDeclarator in the tree between ForeachStatement and IdentifierToken, it would be easier to gather all variable declarations.