use of com.google.javascript.jscomp.parsing.parser.trees.ForOfStatementTree in project closure-compiler by google.
the class Parser method parseForOfStatement.
// The for-of Statement
// for ( { let | var }? identifier of expression ) statement
private ParseTree parseForOfStatement(SourcePosition start, ParseTree initializer) {
eatPredefinedString(PredefinedName.OF);
ParseTree collection = parseExpression();
eat(TokenType.CLOSE_PAREN);
ParseTree body = parseStatement();
return new ForOfStatementTree(getTreeLocation(start), initializer, collection, body);
}
Aggregations