Search in sources :

Example 1 with AssignmentRestElementTree

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

the class Parser method parsePatternRest.

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

Aggregations

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