| 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 b2c99a1d72000132369738c4f5e8c4fc81c749da..0f8d76ce0c869166ddbabd8f33523877823cd859 100644
|
| --- a/pkg/analysis_server/lib/src/services/search/hierarchy.dart
|
| +++ b/pkg/analysis_server/lib/src/services/search/hierarchy.dart
|
| @@ -11,7 +11,6 @@ import 'package:analysis_server/src/services/search/element_visitors.dart';
|
| import 'package:analysis_server/src/services/search/search_engine.dart';
|
| import 'package:analyzer/src/generated/element.dart';
|
|
|
| -
|
| /**
|
| * Returns direct children of [parent].
|
| */
|
| @@ -25,7 +24,6 @@ List<Element> getChildren(Element parent, [String name]) {
|
| return children;
|
| }
|
|
|
| -
|
| /**
|
| * Returns direct non-synthetic children of the given [ClassElement].
|
| *
|
| @@ -54,12 +52,11 @@ List<Element> getClassMembers(ClassElement clazz, [String name]) {
|
| return members;
|
| }
|
|
|
| -
|
| /**
|
| * Returns a [Set] with direct subclasses of [seed].
|
| */
|
| -Future<Set<ClassElement>> getDirectSubClasses(SearchEngine searchEngine,
|
| - ClassElement seed) {
|
| +Future<Set<ClassElement>> getDirectSubClasses(
|
| + SearchEngine searchEngine, ClassElement seed) {
|
| return searchEngine.searchSubtypes(seed).then((List<SearchMatch> matches) {
|
| Set<ClassElement> subClasses = new HashSet<ClassElement>();
|
| for (SearchMatch match in matches) {
|
| @@ -70,13 +67,12 @@ Future<Set<ClassElement>> getDirectSubClasses(SearchEngine searchEngine,
|
| });
|
| }
|
|
|
| -
|
| /**
|
| * @return all implementations of the given {@link ClassMemberElement} is its superclasses and
|
| * their subclasses.
|
| */
|
| -Future<Set<ClassMemberElement>> getHierarchyMembers(SearchEngine searchEngine,
|
| - ClassMemberElement member) {
|
| +Future<Set<ClassMemberElement>> getHierarchyMembers(
|
| + SearchEngine searchEngine, ClassMemberElement member) {
|
| Set<ClassMemberElement> result = new HashSet<ClassMemberElement>();
|
| // constructor
|
| if (member is ConstructorElement) {
|
| @@ -114,7 +110,6 @@ Future<Set<ClassMemberElement>> getHierarchyMembers(SearchEngine searchEngine,
|
| });
|
| }
|
|
|
| -
|
| /**
|
| * Returns non-synthetic members of the given [ClassElement] and its super
|
| * classes.
|
| @@ -132,12 +127,11 @@ List<Element> getMembers(ClassElement clazz) {
|
| return members;
|
| }
|
|
|
| -
|
| /**
|
| * Returns a [Set] with all direct and indirect subclasses of [seed].
|
| */
|
| -Future<Set<ClassElement>> getSubClasses(SearchEngine searchEngine,
|
| - ClassElement seed) {
|
| +Future<Set<ClassElement>> getSubClasses(
|
| + SearchEngine searchEngine, ClassElement seed) {
|
| Set<ClassElement> subs = new HashSet<ClassElement>();
|
| // prepare queue
|
| List<ClassElement> queue = new List<ClassElement>();
|
| @@ -161,7 +155,6 @@ Future<Set<ClassElement>> getSubClasses(SearchEngine searchEngine,
|
| return new Future(addSubClasses);
|
| }
|
|
|
| -
|
| /**
|
| * Returns a [Set] with all direct and indirect superclasses of [seed].
|
| */
|
| @@ -194,7 +187,6 @@ Set<ClassElement> getSuperClasses(ClassElement seed) {
|
| return result;
|
| }
|
|
|
| -
|
| /**
|
| * If the given [element] is a synthetic [PropertyAccessorElement] returns
|
| * its variable, otherwise returns [element].
|
|
|