use of org.jetbrains.jps.backwardRefs.LightRef in project intellij-community by JetBrains.
the class CompilerReferenceServiceImpl method calculateDirectInheritors.
private Map<VirtualFile, Object[]> calculateDirectInheritors(@NotNull PsiNamedElement aClass, @NotNull GlobalSearchScope useScope, @NotNull FileType searchFileType, @NotNull CompilerHierarchySearchType searchType) {
final CompilerElementInfo searchElementInfo = asCompilerElements(aClass, false);
if (searchElementInfo == null)
return null;
LightRef searchElement = searchElementInfo.searchElements[0];
myReadDataLock.lock();
try {
if (myReader == null)
return null;
try {
return myReader.getDirectInheritors(searchElement, useScope, myDirtyScopeHolder.getDirtyScope(), searchFileType, searchType);
} catch (StorageException e) {
throw new RuntimeException(e);
}
} finally {
myReadDataLock.unlock();
}
}
Aggregations