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

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

Issue 1527793003: Clean up imports in analysis_server and analyzer_cli (and one missed in analyzer) (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library services.src.correction.namespace; 5 library services.src.correction.namespace;
6 6
7 import 'package:analyzer/dart/element/element.dart';
7 import 'package:analyzer/src/generated/ast.dart'; 8 import 'package:analyzer/src/generated/ast.dart';
8 import 'package:analyzer/src/generated/element.dart';
9 import 'package:analyzer/src/generated/resolver.dart'; 9 import 'package:analyzer/src/generated/resolver.dart';
10 10
11 /** 11 /**
12 * Returns the [Element] exported from the given [LibraryElement]. 12 * Returns the [Element] exported from the given [LibraryElement].
13 */ 13 */
14 Element getExportedElement(LibraryElement library, String name) { 14 Element getExportedElement(LibraryElement library, String name) {
15 if (library == null) { 15 if (library == null) {
16 return null; 16 return null;
17 } 17 }
18 return getExportNamespaceForLibrary(library)[name]; 18 return getExportNamespaceForLibrary(library)[name];
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 } 173 }
174 174
175 /** 175 /**
176 * Information about [ImportElement] and place where it is referenced using 176 * Information about [ImportElement] and place where it is referenced using
177 * [PrefixElement]. 177 * [PrefixElement].
178 */ 178 */
179 class ImportElementInfo { 179 class ImportElementInfo {
180 ImportElement element; 180 ImportElement element;
181 int periodEnd; 181 int periodEnd;
182 } 182 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698