use of com.google.javascript.jscomp.parsing.parser.trees.ReturnStatementTree in project closure-compiler by google.
the class Parser method parseReturnStatement.
// 12.9 The return Statement
private ParseTree parseReturnStatement() {
SourcePosition start = getTreeStartLocation();
eat(TokenType.RETURN);
ParseTree expression = null;
if (!peekImplicitSemiColon()) {
expression = parseExpression();
}
eatPossiblyImplicitSemiColon();
return new ReturnStatementTree(getTreeLocation(start), expression);
}
Aggregations