Index: pkg/analysis_server/lib/src/services/search/element_visitors.dart |
diff --git a/pkg/analysis_server/lib/src/services/search/element_visitors.dart b/pkg/analysis_server/lib/src/services/search/element_visitors.dart |
index 6490caede534c042a1aabd9c5bf88286c6ae6d2c..d7338d0595f335dc73e7a06c25d7a2ab062a5aa8 100644 |
--- a/pkg/analysis_server/lib/src/services/search/element_visitors.dart |
+++ b/pkg/analysis_server/lib/src/services/search/element_visitors.dart |
@@ -6,7 +6,6 @@ library services.search.element_visitors; |
import 'package:analyzer/src/generated/element.dart'; |
- |
/** |
* Uses [processor] to visit all of the children of [element]. |
* If [processor] returns `true`, then children of a child are visited too. |
@@ -15,23 +14,20 @@ void visitChildren(Element element, ElementProcessor processor) { |
element.visitChildren(new _ElementVisitorAdapter(processor)); |
} |
- |
/** |
* Uses [processor] to visit all of the top-level elements of [library]. |
*/ |
-void visitLibraryTopLevelElements(LibraryElement library, |
- ElementProcessor processor) { |
+void visitLibraryTopLevelElements( |
+ LibraryElement library, ElementProcessor processor) { |
library.visitChildren(new _TopLevelElementsVisitor(processor)); |
} |
- |
/** |
* An [Element] processor function type. |
* If `true` is returned, children of [element] will be visited. |
*/ |
typedef bool ElementProcessor(Element element); |
- |
/** |
* A [GeneralizingElementVisitor] adapter for [ElementProcessor]. |
*/ |
@@ -49,7 +45,6 @@ class _ElementVisitorAdapter extends GeneralizingElementVisitor { |
} |
} |
- |
/** |
* A [GeneralizingElementVisitor] for visiting top-level elements. |
*/ |