mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
include local and anonymous classes in stub hierarchy
This commit is contained in:
@@ -22,8 +22,6 @@ import com.intellij.psi.stubsHierarchy.stubs.Unit;
|
||||
import com.intellij.reference.SoftReference;
|
||||
|
||||
public class HierarchyService {
|
||||
public static final boolean IGNORE_LOCAL_CLASSES = true;
|
||||
|
||||
private NameEnvironment myNameEnvironment;
|
||||
private SoftReference<NameEnvironment> myNamesCache = new SoftReference<NameEnvironment>(null);
|
||||
|
||||
|
||||
@@ -123,9 +123,6 @@ public class Translator {
|
||||
if (decl instanceof IndexTree.ClassDecl) {
|
||||
return processClassDecl(nameEnvironment, fileId, (IndexTree.ClassDecl)decl);
|
||||
}
|
||||
if (HierarchyService.IGNORE_LOCAL_CLASSES) {
|
||||
return null;
|
||||
}
|
||||
ArrayList<Declaration> defList = new ArrayList<Declaration>();
|
||||
for (IndexTree.Decl def : ((IndexTree.MemberDecl)decl).myDecls) {
|
||||
Declaration hTree = processMember(nameEnvironment, fileId, def);
|
||||
|
||||
+1
-1
@@ -38,7 +38,7 @@ public class GetAllInheritorsAction extends InheritanceAction {
|
||||
LOG.info("STARTED Inheritors: " + psiClass.getQualifiedName());
|
||||
SearchScope scope = psiClass.getUseScope();
|
||||
final int[] count = new int[]{0};
|
||||
ClassInheritorsSearch.search(psiClass, scope, true, true, false).forEach(psiClass1 -> {
|
||||
ClassInheritorsSearch.search(psiClass, scope, true, true, true).forEach(psiClass1 -> {
|
||||
count[0] += 1;
|
||||
return true;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user