Search in sources :

Example 1 with IterRestTree

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

the class Parser method parseIterRest.

private ParseTree parseIterRest(PatternKind patternKind) {
    SourcePosition start = getTreeStartLocation();
    eat(TokenType.ELLIPSIS);
    ParseTree patternAssignmentTarget = parseRestAssignmentTarget(patternKind);
    return new IterRestTree(getTreeLocation(start), patternAssignmentTarget);
}
Also used : IterRestTree(com.google.javascript.jscomp.parsing.parser.trees.IterRestTree) SourcePosition(com.google.javascript.jscomp.parsing.parser.util.SourcePosition) ParseTree(com.google.javascript.jscomp.parsing.parser.trees.ParseTree)

Aggregations

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