Search in sources :

Example 1 with IterSpreadTree

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

the class Parser method parseIterSpread.

private IterSpreadTree parseIterSpread() {
    SourcePosition start = getTreeStartLocation();
    eat(TokenType.ELLIPSIS);
    ParseTree operand = parseAssignmentExpression();
    return new IterSpreadTree(getTreeLocation(start), operand);
}
Also used : SourcePosition(com.google.javascript.jscomp.parsing.parser.util.SourcePosition) ParseTree(com.google.javascript.jscomp.parsing.parser.trees.ParseTree) IterSpreadTree(com.google.javascript.jscomp.parsing.parser.trees.IterSpreadTree)

Aggregations

IterSpreadTree (com.google.javascript.jscomp.parsing.parser.trees.IterSpreadTree)1 ParseTree (com.google.javascript.jscomp.parsing.parser.trees.ParseTree)1 SourcePosition (com.google.javascript.jscomp.parsing.parser.util.SourcePosition)1