use of com.google.javascript.jscomp.parsing.parser.trees.ComprehensionIfTree in project closure-compiler by google.
the class Parser method parseComprehensionIf.
private ParseTree parseComprehensionIf() {
SourcePosition start = getTreeStartLocation();
eat(TokenType.IF);
eat(TokenType.OPEN_PAREN);
ParseTree initializer = parseAssignmentExpression();
eat(TokenType.CLOSE_PAREN);
return new ComprehensionIfTree(getTreeLocation(start), initializer);
}
Aggregations