Search in sources :

Example 1 with CompilerReferenceFindUsagesTestInfo

use of com.intellij.compiler.backwardRefs.view.CompilerReferenceFindUsagesTestInfo in project intellij-community by JetBrains.

the class CompilerReferenceServiceImpl method getTestFindUsages.

@NotNull
public CompilerReferenceFindUsagesTestInfo getTestFindUsages(@NotNull PsiElement element) {
    myReadDataLock.lock();
    try {
        final TIntHashSet referentFileIds = getReferentFileIds(element);
        final DirtyScopeTestInfo dirtyScopeInfo = myDirtyScopeHolder.getState();
        return new CompilerReferenceFindUsagesTestInfo(referentFileIds, dirtyScopeInfo, myProject);
    } finally {
        myReadDataLock.unlock();
    }
}
Also used : DirtyScopeTestInfo(com.intellij.compiler.backwardRefs.view.DirtyScopeTestInfo) CompilerReferenceFindUsagesTestInfo(com.intellij.compiler.backwardRefs.view.CompilerReferenceFindUsagesTestInfo) TIntHashSet(gnu.trove.TIntHashSet) NotNull(org.jetbrains.annotations.NotNull)

Aggregations

CompilerReferenceFindUsagesTestInfo (com.intellij.compiler.backwardRefs.view.CompilerReferenceFindUsagesTestInfo)1 DirtyScopeTestInfo (com.intellij.compiler.backwardRefs.view.DirtyScopeTestInfo)1 TIntHashSet (gnu.trove.TIntHashSet)1 NotNull (org.jetbrains.annotations.NotNull)1