Search in sources :

Example 1 with NewTargetExpressionTree

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

the class Parser method parseNewDotSomething.

private ParseTree parseNewDotSomething() {
    // currently only "target" is valid after "new."
    SourcePosition start = getTreeStartLocation();
    eat(TokenType.NEW);
    eat(TokenType.PERIOD);
    eatPredefinedString("target");
    return new NewTargetExpressionTree(getTreeLocation(start));
}
Also used : SourcePosition(com.google.javascript.jscomp.parsing.parser.util.SourcePosition) NewTargetExpressionTree(com.google.javascript.jscomp.parsing.parser.trees.NewTargetExpressionTree)

Aggregations

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