Search in sources :

Example 1 with ExpressionStatementTree

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

the class Parser method parseExpressionStatement.

// 12.4 Expression Statement
private ExpressionStatementTree parseExpressionStatement() {
    SourcePosition start = getTreeStartLocation();
    ParseTree expression = parseExpression();
    eatPossiblyImplicitSemiColon();
    return new ExpressionStatementTree(getTreeLocation(start), expression);
}
Also used : SourcePosition(com.google.javascript.jscomp.parsing.parser.util.SourcePosition) ExpressionStatementTree(com.google.javascript.jscomp.parsing.parser.trees.ExpressionStatementTree) ParseTree(com.google.javascript.jscomp.parsing.parser.trees.ParseTree)

Aggregations

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