Examples of BreakStatement


Examples of org.codehaus.groovy.ast.stmt.BreakStatement

   public void visitStatement(Statement statement) {
       String label = statement.getStatementLabel();
      
       if (label!=null) {
           for (Iterator iter = breakLabels.iterator(); iter.hasNext();) {
               BreakStatement element = (BreakStatement) iter.next();
               if (element.getLabel().equals(label)) iter.remove();
           }
          
           for (Iterator iter = continueLabels.iterator(); iter.hasNext();) {
               ContinueStatement element = (ContinueStatement) iter.next();
               if (element.getLabel().equals(label)) iter.remove();
           }
          
           visitedLabels.add(label);
       }
      
View Full Code Here

Examples of org.codehaus.groovy.ast.stmt.BreakStatement

        for (Iterator iter = continueLabels.iterator(); iter.hasNext();) {
            ContinueStatement element = (ContinueStatement) iter.next();
            addError("continue to missing label",element);
        }
        for (Iterator iter = breakLabels.iterator(); iter.hasNext();) {
            BreakStatement element = (BreakStatement) iter.next();
            addError("break to missing label",element);
        }
    }
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.ast.BreakStatement

}
protected void consumeStatementBreak() {
  // BreakStatement ::= 'break' ';'
  // break pushes a position on this.intStack in case there is no label

  pushOnAstStack(new BreakStatement(null, this.intStack[this.intPtr--], this.endStatementPosition));

  if (this.pendingRecoveredType != null) {
    // Used only in statements recovery.
    // This is not a real break statement but a placeholder for an existing local type.
    // The break statement must be replace by the local type.
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.ast.BreakStatement

protected void consumeStatementBreakWithLabel() {
  // BreakStatement ::= 'break' Identifier ';'
  // break pushs a position on this.intStack in case there is no label

  pushOnAstStack(
    new BreakStatement(
      this.identifierStack[this.identifierPtr--],
      this.intStack[this.intPtr--],
      this.endStatementPosition));
  this.identifierLengthPtr--;
}
View Full Code Here

Examples of org.eclipse.php.internal.core.ast.nodes.BreakStatement

  public void testDeleteBreak() throws Exception {
    String str = "<?php break $a;?>";
    String expected = "<?php break;?>";
    parseAndCompare(str, expected, new ICodeManiplator() {
      public void manipulate(Program program) {
        BreakStatement statement = (BreakStatement) program
            .statements().get(0);
        statement.getExpression().delete();
      }
    });
  }
View Full Code Here

Examples of org.jboss.errai.codegen.control.branch.BreakStatement

    return this;
  }

  @Override
  public StatementEnd break_() {
    appendCallElement(new BranchCallElement(new BreakStatement()));
    return this;
  }
View Full Code Here

Examples of org.jboss.errai.codegen.control.branch.BreakStatement

    return this;
  }

  @Override
  public StatementEnd break_(String label) {
    appendCallElement(new BranchCallElement(new BreakStatement(label)));
    return this;
  }
View Full Code Here

Examples of org.jboss.errai.codegen.control.branch.BreakStatement

    return this;
  }

  @Override
  public StatementEnd break_() {
    appendCallElement(new BranchCallElement(new BreakStatement()));
    return this;
  }
View Full Code Here

Examples of org.jboss.errai.codegen.control.branch.BreakStatement

    return this;
  }

  @Override
  public StatementEnd break_(String label) {
    appendCallElement(new BranchCallElement(new BreakStatement(label)));
    return this;
  }
View Full Code Here

Examples of org.jboss.errai.codegen.control.branch.BreakStatement

    return this;
  }

  @Override
  public StatementEnd break_() {
    appendCallElement(new BranchCallElement(new BreakStatement()));
    return this;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.