Search in sources :

Example 1 with ForInStatementTree

use of com.google.javascript.jscomp.parsing.parser.trees.ForInStatementTree in project closure-compiler by google.

the class Parser method parseForInStatement.

// 12.6.4 The for-in Statement
private ParseTree parseForInStatement(SourcePosition start, ParseTree initializer) {
    eat(TokenType.IN);
    ParseTree collection = parseExpression();
    eat(TokenType.CLOSE_PAREN);
    ParseTree body = parseStatement();
    return new ForInStatementTree(getTreeLocation(start), initializer, collection, body);
}
Also used : ForInStatementTree(com.google.javascript.jscomp.parsing.parser.trees.ForInStatementTree) ParseTree(com.google.javascript.jscomp.parsing.parser.trees.ParseTree)

Aggregations

ForInStatementTree (com.google.javascript.jscomp.parsing.parser.trees.ForInStatementTree)1 ParseTree (com.google.javascript.jscomp.parsing.parser.trees.ParseTree)1