OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |