Examples of referenceContext()


Examples of org.eclipse.jdt.internal.compiler.lookup.Scope.referenceContext()

  }
 
  private boolean enclosingScopesHaveErrors() {
    Scope skope = this.enclosingScope;
    while (skope != null) {
      ReferenceContext context = skope.referenceContext();
      if (context != null && context.hasErrors())
        return true;
      skope = skope.parent;
    }
    return false;
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.Scope.referenceContext()

    Scope parent = this.enclosingScope.parent;
    while (parent != null) {
      switch(parent.kind) {
        case Scope.CLASS_SCOPE:
        case Scope.METHOD_SCOPE:
          parent.referenceContext().tagAsHavingErrors();
          return;
        default:
          parent = parent.parent;
          break;
      }
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.Scope.referenceContext()

 
      this.visibleLocalVariables = new ObjectVector();
      this.visibleFields = new ObjectVector();
      this.visibleMethods = new ObjectVector();
 
      ReferenceContext referenceContext = scope.referenceContext();
      if (referenceContext instanceof AbstractMethodDeclaration || referenceContext instanceof LambdaExpression) {
        // completion is inside a method body
        searchVisibleVariablesAndMethods(scope, this.visibleLocalVariables, this.visibleFields, this.visibleMethods, notInJavadoc);
      } else if (referenceContext instanceof TypeDeclaration) {
        TypeDeclaration typeDeclaration = (TypeDeclaration) referenceContext;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.