Examples of resolveWithCaching()


Examples of com.intellij.psi.impl.source.resolve.ResolveCache.resolveWithCaching()

    @Override
    public PsiElement resolve() {
        PsiElement el = null;
        ResolveCache rc = ResolveCache.getInstance(getProject());
        if (rc != null) {
            el = rc.resolveWithCaching(this, expResolver, true, false);
        } else {
            LOG.error("ResolveCache was not found.  Could not resolve element.");
        }
        return el;
    }
View Full Code Here

Examples of com.intellij.psi.impl.source.resolve.ResolveCache.resolveWithCaching()

  }

  @NotNull
  public ResolveResult[] multiResolve(boolean incomplete) {
    final ResolveCache resolveCache = ResolveCache.getInstance(getProject());
    return resolveCache.resolveWithCaching(this, RESOLVER, true, incomplete);
  }

  public PsiElement setName(@NotNull @NonNls String newName) throws IncorrectOperationException {
    final ASTNode newNode = ClojurePsiFactory.getInstance(getProject()).createSymbolNodeFromText(newName);
    getParent().getNode().replaceChild(getNode(), newNode);
View Full Code Here

Examples of com.intellij.psi.impl.source.resolve.ResolveCache.resolveWithCaching()

  private static final MyResolver RESOLVER = new MyResolver();

  public PsiElement resolve() {
    final ResolveCache resolveCache = ResolveCache.getInstance(getProject());
    ResolveResult[] results = resolveCache.resolveWithCaching(this, RESOLVER, false, false);
    return results.length == 1 ? results[0].getElement() : null;
  }

  @NotNull
  public String getCanonicalText() {
View Full Code Here

Examples of com.intellij.psi.impl.source.resolve.ResolveCache.resolveWithCaching()

    return getText();
  }

  private List<PsiElement> multipleResolveResults() {
    final ResolveCache resolveCache = ResolveCache.getInstance(getProject());
    final ResolveResult[] results = resolveCache.resolveWithCaching(this, RESOLVER, false, false);
    return ContainerUtil.map(results, new Function<ResolveResult, PsiElement>() {
      public PsiElement fun(ResolveResult resolveResult) {
        return resolveResult.getElement();
      }
    });
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.