Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Unified Diff: pkg/analysis_server/lib/src/services/correction/namespace.dart

Issue 725143004: Format and sort analyzer and analysis_server packages. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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`.
*/

Powered by Google App Engine
This is Rietveld 408576698