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; | |
6 | |
7 import 'package:analyzer/dart/ast/ast.dart'; | 5 import 'package:analyzer/dart/ast/ast.dart'; |
8 import 'package:analyzer/dart/ast/standard_resolution_map.dart'; | 6 import 'package:analyzer/dart/ast/standard_resolution_map.dart'; |
9 import 'package:analyzer/dart/element/element.dart'; | 7 import 'package:analyzer/dart/element/element.dart'; |
10 import 'package:analyzer/src/dart/resolver/scope.dart'; | 8 import 'package:analyzer/src/dart/resolver/scope.dart'; |
11 | 9 |
12 /** | 10 /** |
13 * Returns the [Element] exported from the given [LibraryElement]. | 11 * Returns the [Element] exported from the given [LibraryElement]. |
14 */ | 12 */ |
15 Element getExportedElement(LibraryElement library, String name) { | 13 Element getExportedElement(LibraryElement library, String name) { |
16 if (library == null) { | 14 if (library == null) { |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 } | 174 } |
177 | 175 |
178 /** | 176 /** |
179 * Information about [ImportElement] and place where it is referenced using | 177 * Information about [ImportElement] and place where it is referenced using |
180 * [PrefixElement]. | 178 * [PrefixElement]. |
181 */ | 179 */ |
182 class ImportElementInfo { | 180 class ImportElementInfo { |
183 ImportElement element; | 181 ImportElement element; |
184 int periodEnd; | 182 int periodEnd; |
185 } | 183 } |
OLD | NEW |