Java 类com.intellij.psi.impl.source.resolve.SymbolCollectingProcessor 实例源码

项目:consulo-java    文件:PsiJavaFileBaseImpl.java   
@Override
public boolean process(SymbolCollectingProcessor.ResultWithContext result)
{
    final PsiElement context = result.getFileContext();
    myProcessor.handleEvent(JavaScopeProcessorEvent.SET_CURRENT_FILE_CONTEXT, context);
    final PsiNamedElement element = result.getElement();

    if(element instanceof PsiClass && context instanceof PsiImportStatement)
    {
        final PsiClass containingClass = ((PsiClass) element).getContainingClass();
        if(containingClass != null && containingClass.hasTypeParameters())
        {
            return myProcessor.execute(element, myState.put(PsiSubstitutor.KEY, createRawSubstitutor(containingClass)));
        }
    }

    return myProcessor.execute(element, myState);
}
项目:intellij-ce-playground    文件:PsiJavaFileBaseImpl.java   
@Override
public Result<MostlySingularMultiMap<String, SymbolCollectingProcessor.ResultWithContext>> compute() {
  SymbolCollectingProcessor p = new SymbolCollectingProcessor();
  myFile.processDeclarationsNoGuess(p, ResolveState.initial(), myFile, myFile);
  MostlySingularMultiMap<String, SymbolCollectingProcessor.ResultWithContext> results = p.getResults();
  return Result.create(results, PsiModificationTracker.MODIFICATION_COUNT, myFile);
}
项目:intellij-ce-playground    文件:PsiJavaFileBaseImpl.java   
@Override
public boolean process(SymbolCollectingProcessor.ResultWithContext result) {
  final PsiElement context = result.getFileContext();
  myProcessor.handleEvent(JavaScopeProcessorEvent.SET_CURRENT_FILE_CONTEXT, context);
  final PsiNamedElement element = result.getElement();

  if (element instanceof PsiClass && context instanceof PsiImportStatement) {
    final PsiClass containingClass = ((PsiClass)element).getContainingClass();
    if (containingClass != null && containingClass.hasTypeParameters()) {
      return myProcessor.execute(element, myState.put(PsiSubstitutor.KEY, createRawSubstitutor(containingClass)));
    }
  }

  return myProcessor.execute(element, myState);
}
项目:tools-idea    文件:PsiJavaFileBaseImpl.java   
@Override
public Result<MostlySingularMultiMap<String, SymbolCollectingProcessor.ResultWithContext>> compute() {
  SymbolCollectingProcessor p = new SymbolCollectingProcessor();
  myFile.processDeclarationsNoGuess(p, ResolveState.initial(), myFile, myFile);
  MostlySingularMultiMap<String, SymbolCollectingProcessor.ResultWithContext> results = p.getResults();
  return Result.create(results, PsiModificationTracker.JAVA_STRUCTURE_MODIFICATION_COUNT);
}
项目:consulo-java    文件:PsiJavaFileBaseImpl.java   
@Override
public Result<MostlySingularMultiMap<String, SymbolCollectingProcessor.ResultWithContext>> compute()
{
    SymbolCollectingProcessor p = new SymbolCollectingProcessor();
    myFile.processDeclarationsNoGuess(p, ResolveState.initial(), myFile, myFile);
    MostlySingularMultiMap<String, SymbolCollectingProcessor.ResultWithContext> results = p.getResults();
    return Result.create(results, PsiModificationTracker.JAVA_STRUCTURE_MODIFICATION_COUNT);
}
项目:tools-idea    文件:PsiJavaFileBaseImpl.java   
@Override
public boolean process(SymbolCollectingProcessor.ResultWithContext result) {
  myProcessor.handleEvent(JavaScopeProcessorEvent.SET_CURRENT_FILE_CONTEXT, result.getFileContext());
  return myProcessor.execute(result.getElement(), myState);
}