use of com.google.javascript.jscomp.parsing.parser.trees.SuperExpressionTree in project closure-compiler by google.
the class Parser method parseSuperExpression.
private SuperExpressionTree parseSuperExpression() {
SourcePosition start = getTreeStartLocation();
eat(TokenType.SUPER);
if (peek(TokenType.QUESTION_DOT)) {
// super?.() not allowed
reportError("Optional chaining is forbidden in super?.");
}
return new SuperExpressionTree(getTreeLocation(start));
}
Aggregations