Search in sources :

Example 1 with ContinueStatementTree

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

the class Parser method parseContinueStatement.

// 12.7 The continue Statement
private ParseTree parseContinueStatement() {
    SourcePosition start = getTreeStartLocation();
    eat(TokenType.CONTINUE);
    IdentifierToken name = null;
    if (!peekImplicitSemiColon()) {
        name = eatIdOpt();
    }
    eatPossiblyImplicitSemiColon();
    return new ContinueStatementTree(getTreeLocation(start), name);
}
Also used : ContinueStatementTree(com.google.javascript.jscomp.parsing.parser.trees.ContinueStatementTree) SourcePosition(com.google.javascript.jscomp.parsing.parser.util.SourcePosition)

Aggregations

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