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

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


protected void consumeLocalVariableDeclarationStatement() {
  super.consumeLocalVariableDeclarationStatement();

  // force to restart in recovery mode if the declaration contains the selection
  if (!this.diet) {
    LocalDeclaration localDeclaration = (LocalDeclaration) this.astStack[this.astPtr];
    if ((this.selectionStart >= localDeclaration.sourceStart)
        &&  (this.selectionEnd <= localDeclaration.sourceEnd)) {
      this.restartRecovery  = true;
      this.lastIgnoredToken = -1;
    }
View Full Code Here


    Statement updatedStatement = this.statements[i].updatedStatement(depth, knownTypes);
    if (updatedStatement != null){
      updatedStatements[updatedCount++] = updatedStatement;

      if (updatedStatement instanceof LocalDeclaration) {
        LocalDeclaration localDeclaration = (LocalDeclaration) updatedStatement;
        if(localDeclaration.declarationSourceEnd > lastEnd) {
          lastEnd = localDeclaration.declarationSourceEnd;
        }
      } else if (updatedStatement instanceof TypeDeclaration) {
        TypeDeclaration typeDeclaration = (TypeDeclaration) updatedStatement;
View Full Code Here

TOP

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

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.