Search in sources :

Example 1 with CompilerReferenceHierarchyTestInfo

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

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

CompilerReferenceHierarchyTestInfo (com.intellij.compiler.backwardRefs.view.CompilerReferenceHierarchyTestInfo)2 DirtyScopeTestInfo (com.intellij.compiler.backwardRefs.view.DirtyScopeTestInfo)2 NotNull (org.jetbrains.annotations.NotNull)2