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

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


  // ReturnStatement ::= 'return' Expressionopt ';'
  // return pushs a position on this.intStack in case there is no expression

  if (this.expressionLengthStack[this.expressionLengthPtr--] != 0) {
    pushOnAstStack(
      new ReturnStatement(
        this.expressionStack[this.expressionPtr--],
        this.intStack[this.intPtr--],
        this.endStatementPosition)
    );
  } else {
    pushOnAstStack(new ReturnStatement(null, this.intStack[this.intPtr--], this.endStatementPosition));
  }
}
View Full Code Here


          this.assistNodeParent = parentNode;
        }
        break nextElement;
      case K_INSIDE_RETURN_STATEMENT :
        if(info == this.bracketDepth) {
          ReturnStatement returnStatement = new ReturnStatement(expression, expression.sourceStart, expression.sourceEnd);
          parentNode = returnStatement;
          this.assistNodeParent = parentNode;
        }
        break nextElement;
      case K_CAST_STATEMENT :
View Full Code Here

TOP

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

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.