Search in sources :

Example 1 with ForAwaitOfStatementTree

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

the class Parser method parseForAwaitOfStatement.

private ParseTree parseForAwaitOfStatement(SourcePosition start, ParseTree initializer) {
    eatPredefinedString(PredefinedName.OF);
    ParseTree collection = parseExpression();
    eat(TokenType.CLOSE_PAREN);
    ParseTree body = parseStatement();
    return new ForAwaitOfStatementTree(getTreeLocation(start), initializer, collection, body);
}
Also used : ForAwaitOfStatementTree(com.google.javascript.jscomp.parsing.parser.trees.ForAwaitOfStatementTree) ParseTree(com.google.javascript.jscomp.parsing.parser.trees.ParseTree)

Aggregations

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