Search in sources :

Example 1 with SpreadExpressionTree

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

the class Parser method parseSpreadExpression.

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

Aggregations

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