Index: pkg/analysis_server/lib/src/services/correction/namespace.dart |
diff --git a/pkg/analysis_server/lib/src/services/correction/namespace.dart b/pkg/analysis_server/lib/src/services/correction/namespace.dart |
index fc0fd35b4a0e9c477a50766e26c86154e114d5aa..31c04777bee84665659fd3d349f39d7bb8a0bc87 100644 |
--- a/pkg/analysis_server/lib/src/services/correction/namespace.dart |
+++ b/pkg/analysis_server/lib/src/services/correction/namespace.dart |
@@ -10,6 +10,17 @@ import 'package:analyzer/src/generated/resolver.dart'; |
/** |
+ * Returns the [Element] exported from the given [LibraryElement]. |
+ */ |
+Element getExportedElement(LibraryElement library, String name) { |
+ if (library == null) { |
+ return null; |
+ } |
+ return getExportNamespaceForLibrary(library)[name]; |
+} |
+ |
+ |
+/** |
* Returns the namespace of the given [ExportElement]. |
*/ |
Map<String, Element> getExportNamespaceForDirective(ExportElement exp) { |
@@ -30,17 +41,6 @@ Map<String, Element> getExportNamespaceForLibrary(LibraryElement library) { |
/** |
- * Returns the [Element] exported from the given [LibraryElement]. |
- */ |
-Element getExportedElement(LibraryElement library, String name) { |
- if (library == null) { |
- return null; |
- } |
- return getExportNamespaceForLibrary(library)[name]; |
-} |
- |
- |
-/** |
* Returns the [ImportElement] that is referenced by [prefixNode] with |
* an [PrefixElement], maybe `null`. |
*/ |