Package org.eclipse.jdt.internal.compiler

Examples of org.eclipse.jdt.internal.compiler.ASTVisitor


    if (!this.options.performMethodsFullRecovery && !this.options.performStatementsRecovery) {
      return null;
    }
    // collect all body declaration inside the compilation unit except the default constructor
    final List bodyDeclarations = new ArrayList();
    ASTVisitor visitor = new ASTVisitor() {
      public boolean visit(MethodDeclaration methodDeclaration, ClassScope scope) {
        if (!methodDeclaration.isDefaultConstructor()) {
          bodyDeclarations.add(methodDeclaration);
        }
        return false;
View Full Code Here


      this.value.resolveType(scope);
      valueType = null; // no need to pursue
    } else {
      valueType = this.value.resolveType(scope);
      // https://bugs.eclipse.org/bugs/show_bug.cgi?id=248897
      ASTVisitor visitor = new ASTVisitor() {
        public boolean visit(SingleNameReference reference, BlockScope scop) {
          if (reference.binding instanceof LocalVariableBinding) {
            ((LocalVariableBinding) reference.binding).useFlag = LocalVariableBinding.USED;
          }
          return true;
View Full Code Here

      this.value.resolveType(scope);
      valueType = null; // no need to pursue
    } else {
      valueType = this.value.resolveType(scope);
      // https://bugs.eclipse.org/bugs/show_bug.cgi?id=248897
      ASTVisitor visitor = new ASTVisitor() {
        public boolean visit(SingleNameReference reference, BlockScope scop) {
          if (reference.binding instanceof LocalVariableBinding) {
            ((LocalVariableBinding) reference.binding).useFlag = LocalVariableBinding.USED;
          }
          return true;
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.internal.compiler.ASTVisitor

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.