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

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

Issue 2894883002: Remove more libraries directives from server (Closed)
Patch Set: Created 3 years, 7 months 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;
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698