Search in sources :

Example 1 with VariableStatementTree

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

the class Parser method parseVariableStatement.

// 12.2 Variable Statement
private VariableStatementTree parseVariableStatement() {
    SourcePosition start = getTreeStartLocation();
    VariableDeclarationListTree declarations = parseVariableDeclarationList();
    eatPossiblyImplicitSemiColon();
    return new VariableStatementTree(getTreeLocation(start), declarations);
}
Also used : VariableDeclarationListTree(com.google.javascript.jscomp.parsing.parser.trees.VariableDeclarationListTree) SourcePosition(com.google.javascript.jscomp.parsing.parser.util.SourcePosition) VariableStatementTree(com.google.javascript.jscomp.parsing.parser.trees.VariableStatementTree)

Aggregations

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