Example usage for org.eclipse.jdt.internal.compiler.ast LabeledStatement LabeledStatement

List of usage examples for org.eclipse.jdt.internal.compiler.ast LabeledStatement LabeledStatement

Introduction

In this page you can find the example usage for org.eclipse.jdt.internal.compiler.ast LabeledStatement LabeledStatement.

Prototype

public LabeledStatement(char[] label, Statement statement, long labelPosition, int sourceEnd) 

Source Link

Document

LabeledStatement constructor comment.

Usage

From source file:org.eclipse.jdt.internal.compiler.parser.Parser.java

License:Open Source License

protected void consumeStatementLabel() {
    // LabeledStatement ::= 'Identifier' ':' Statement
    // LabeledStatementNoShortIf ::= 'Identifier' ':' StatementNoShortIf

    //optimize push/pop
    Statement statement = (Statement) this.astStack[this.astPtr];
    this.astStack[this.astPtr] = new LabeledStatement(this.identifierStack[this.identifierPtr], statement,
            this.identifierPositionStack[this.identifierPtr--], this.endStatementPosition);
    this.identifierLengthPtr--;
}