Index: pkg/analysis_server/lib/src/services/search/hierarchy.dart |
diff --git a/pkg/analysis_server/lib/src/services/search/hierarchy.dart b/pkg/analysis_server/lib/src/services/search/hierarchy.dart |
index c6b552f523c018479ee88c1bbe67bca2262b3db1..b6e1c9e4fb35c4068d8e73885722df0504641358 100644 |
--- a/pkg/analysis_server/lib/src/services/search/hierarchy.dart |
+++ b/pkg/analysis_server/lib/src/services/search/hierarchy.dart |
@@ -76,8 +76,8 @@ Future<Set<ClassElement>> getDirectSubClasses( |
Future<Set<ClassMemberElement>> getHierarchyMembers( |
SearchEngine searchEngine, ClassMemberElement member) { |
Set<ClassMemberElement> result = new HashSet<ClassMemberElement>(); |
- // constructor |
- if (member is ConstructorElement) { |
+ // static elements |
+ if (member.isStatic || member is ConstructorElement) { |
result.add(member); |
return new Future.value(result); |
} |