Package org.eclipse.jdt.internal.compiler.ast

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


  //statements
  this.astLengthPtr--;
  Statement statement = (Statement) this.astStack[this.astPtr--];

  // foreach statement is on the ast stack
  ForeachStatement foreachStatement = (ForeachStatement) this.astStack[this.astPtr];
  foreachStatement.action = statement;
  // remember useful empty statement
  if (statement instanceof EmptyStatement) statement.bits |= ASTNode.IsUsefulEmptyStatement;

  foreachStatement.sourceEnd = this.endStatementPosition;
View Full Code Here


  foreachStatement.sourceEnd = this.endStatementPosition;
}
protected void consumeEnhancedForStatementHeader(){
  // EnhancedForStatementHeader ::= EnhancedForStatementHeaderInit ':' Expression ')'
  final ForeachStatement statement = (ForeachStatement) this.astStack[this.astPtr];
  //updates are on the expression stack
  this.expressionLengthPtr--;
  final Expression collection = this.expressionStack[this.expressionPtr--];
  statement.collection = collection;
  // https://bugs.eclipse.org/393719 - [compiler] inconsistent warnings on iteration variables
View Full Code Here

    localDeclaration.declarationSourceStart = type.sourceStart;
  }
  localDeclaration.type = type;
  localDeclaration.bits |= (type.bits & ASTNode.HasTypeAnnotations);

  ForeachStatement iteratorForStatement =
    new ForeachStatement(
      localDeclaration,
      this.intStack[this.intPtr--]);
  pushOnAstStack(iteratorForStatement);

  iteratorForStatement.sourceEnd = localDeclaration.declarationSourceEnd;
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.internal.compiler.ast.ForeachStatement

Copyright © 2018 www.massapicom. 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.