include local and anonymous classes in stub hierarchy

This commit is contained in:
peter
2016-06-08 19:25:51 +02:00
parent 4c4cb2f4a2
commit 2cb4fb2b61
3 changed files with 1 additions and 6 deletions
@@ -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);
@@ -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;
});