Search in sources :

Example 1 with DirtyScopeTestInfo

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

the class CompilerReferenceServiceImpl method getTestFunExpressions.

@NotNull
public CompilerReferenceHierarchyTestInfo getTestFunExpressions(@NotNull PsiNamedElement element, @NotNull GlobalSearchScope scope, @NotNull FileType fileType) {
    myReadDataLock.lock();
    try {
        final CompilerHierarchyInfoImpl hierarchyInfo = getHierarchyInfo(element, scope, scope, fileType, CompilerHierarchySearchType.FUNCTIONAL_EXPRESSION);
        final DirtyScopeTestInfo dirtyScopeInfo = myDirtyScopeHolder.getState();
        return new CompilerReferenceHierarchyTestInfo(hierarchyInfo, dirtyScopeInfo);
    } finally {
        myReadDataLock.unlock();
    }
}
Also used : DirtyScopeTestInfo(com.intellij.compiler.backwardRefs.view.DirtyScopeTestInfo) CompilerReferenceHierarchyTestInfo(com.intellij.compiler.backwardRefs.view.CompilerReferenceHierarchyTestInfo) NotNull(org.jetbrains.annotations.NotNull)

Example 2 with DirtyScopeTestInfo

use of com.intellij.compiler.backwardRefs.view.DirtyScopeTestInfo 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)

Example 3 with DirtyScopeTestInfo

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

the class CompilerReferenceServiceImpl method getTestHierarchy.

@NotNull
public CompilerReferenceHierarchyTestInfo getTestHierarchy(@NotNull PsiNamedElement element, @NotNull GlobalSearchScope scope, @NotNull FileType fileType) {
    myReadDataLock.lock();
    try {
        final CompilerHierarchyInfoImpl hierarchyInfo = getHierarchyInfo(element, scope, scope, fileType, CompilerHierarchySearchType.DIRECT_INHERITOR);
        final DirtyScopeTestInfo dirtyScopeInfo = myDirtyScopeHolder.getState();
        return new CompilerReferenceHierarchyTestInfo(hierarchyInfo, dirtyScopeInfo);
    } finally {
        myReadDataLock.unlock();
    }
}
Also used : DirtyScopeTestInfo(com.intellij.compiler.backwardRefs.view.DirtyScopeTestInfo) CompilerReferenceHierarchyTestInfo(com.intellij.compiler.backwardRefs.view.CompilerReferenceHierarchyTestInfo) NotNull(org.jetbrains.annotations.NotNull)

Aggregations

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