Search in sources :

Example 1 with RestParameterTree

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

the class Parser method parseRestParameter.

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

Aggregations

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