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

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


  // LambdaExpression ::= LambdaHeader LambdaBody

  this.nestedType--;
 
  this.astLengthPtr--;   // pop length for LambdaBody (always 1)
  Statement body = (Statement) this.astStack[this.astPtr--];
  if (body instanceof Block) {
    if (this.options.ignoreMethodBodies) {
      body = new Block(0);
    }
    ((Block) body).lambdaBody = true; // for consistency's sakes.
View Full Code Here


  int lastEnd = this.blockDeclaration.sourceStart;

  // only collect the non-null updated statements
  for (int i = 0; i < this.statementCount; i++){
    Statement updatedStatement = this.statements[i].updatedStatement(depth, knownTypes);
    if (updatedStatement != null){
      updatedStatements[updatedCount++] = updatedStatement;
     
      if (updatedStatement instanceof LocalDeclaration) {
        LocalDeclaration localDeclaration = (LocalDeclaration) updatedStatement;
View Full Code Here

  Statement[] updatedStatements = new Statement[this.statementCount];
  int updatedCount = 0;

  // only collect the non-null updated statements
  for (int i = 0; i < this.statementCount; i++){
    Statement updatedStatement = this.statements[i].updatedStatement(depth, knownTypes);
    if (updatedStatement != null){
      updatedStatements[updatedCount++] = updatedStatement;
    }
  }
  if (updatedCount == 0) return null; // not interesting block
View Full Code Here

    if (orphan instanceof Expression) {
      buildMoreCompletionContext((Expression)orphan);
    } else {
      if (lastIndexOfElement(K_LAMBDA_EXPRESSION_DELIMITER) < 0) { // lambdas are recovered up to the containing expression statement and will carry along the assist node anyways.
        Statement statement = (Statement) orphan;
        this.currentElement = this.currentElement.add(statement, 0);
      }
    }
    if (!isIndirectlyInsideLambdaExpression())
      this.currentToken = 0; // given we are not on an eof, we do not want side effects caused by looked-ahead token
View Full Code Here

  int lastEnd = this.blockDeclaration.sourceStart;

  // only collect the non-null updated statements
  for (int i = 0; i < this.statementCount; i++){
    Statement updatedStatement = this.statements[i].updatedStatement(depth, knownTypes);
    if (updatedStatement != null){
      updatedStatements[updatedCount++] = updatedStatement;

      if (updatedStatement instanceof LocalDeclaration) {
        LocalDeclaration localDeclaration = (LocalDeclaration) updatedStatement;
View Full Code Here

  Statement[] updatedStatements = new Statement[this.statementCount];
  int updatedCount = 0;

  // only collect the non-null updated statements
  for (int i = 0; i < this.statementCount; i++){
    Statement updatedStatement = this.statements[i].updatedStatement(depth, knownTypes);
    if (updatedStatement != null){
      updatedStatements[updatedCount++] = updatedStatement;
    }
  }
  if (updatedCount == 0) return null; // not interesting block
View Full Code Here

TOP

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

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.