Package com.intellij.psi.infos

Examples of com.intellij.psi.infos.CandidateInfo


  @NotNull
  private static ResolveResult[] toCandidateInfoArray(@Nullable PsiElement element) {
    if (element == null) {
      return ResolveResult.EMPTY_ARRAY;
    }
    return new ResolveResult[]{new CandidateInfo(element, null)};
  }
View Full Code Here


  @NotNull
  private static ResolveResult[] toCandidateInfoArray(List<? extends PsiElement> elements) {
    final ResolveResult[] result = new ResolveResult[elements.size()];
    for (int i = 0, size = elements.size(); i < size; i++) {
      result[i] = new CandidateInfo(elements.get(i), EmptySubstitutor.getInstance());
    }
    return result;
  }
View Full Code Here

          else {
            psiClass = (PsiClass) resolve;
            substitutor = PsiSubstitutor.EMPTY;
          }
          if (psiClass != null) {
            return new CandidateInfo(psiClass, substitutor);
          }
          else
            return JavaResolveResult.EMPTY;
        }
        return JavaResolveResult.EMPTY;
      }
      else {
        PsiElement scope = accessObject.getContext();
        PsiElement lastParent = accessObject;
        while (scope != null) {
          if (scope instanceof PsiClass) {
            if (scope instanceof PsiAnonymousClass) {
              if (lastParent instanceof PsiExpressionList) {
                lastParent = scope;
                scope = scope.getContext();
                continue;
              }
            }
            return new CandidateInfo(scope, PsiSubstitutor.EMPTY);
          }
          lastParent = scope;
          scope = scope.getContext();
        }
        return JavaResolveResult.EMPTY;
View Full Code Here

TOP

Related Classes of com.intellij.psi.infos.CandidateInfo

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.