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

Side by Side Diff: pkg/analysis_server/lib/src/services/index/indexable_element.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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 src.services.index; 5 library src.services.index;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import 'package:analysis_server/src/provisional/index/index_core.dart'; 9 import 'package:analysis_server/src/provisional/index/index_core.dart';
10 import 'package:analyzer/src/generated/element.dart'; 10 import 'package:analyzer/dart/element/element.dart';
11 import 'package:analyzer/src/generated/engine.dart'; 11 import 'package:analyzer/src/generated/engine.dart';
12 import 'package:analyzer/src/generated/source.dart'; 12 import 'package:analyzer/src/generated/source.dart';
13 import 'package:analyzer/src/generated/utilities_general.dart'; 13 import 'package:analyzer/src/generated/utilities_general.dart';
14 14
15 /** 15 /**
16 * A wrapper around an [Element] that implements the [IndexableObject] interface . 16 * A wrapper around an [Element] that implements the [IndexableObject] interface .
17 */ 17 */
18 class IndexableElement implements IndexableObject { 18 class IndexableElement implements IndexableObject {
19 /** 19 /**
20 * The element being wrapped. 20 * The element being wrapped.
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 ClassElement classElement = element.enclosingElement; 165 ClassElement classElement = element.enclosingElement;
166 int constructorIndex = classElement.constructors.indexOf(element); 166 int constructorIndex = classElement.constructors.indexOf(element);
167 return _constructorKinds.putIfAbsent(constructorIndex, 167 return _constructorKinds.putIfAbsent(constructorIndex,
168 () => new IndexableElementKind._(ElementKind.CONSTRUCTOR)); 168 () => new IndexableElementKind._(ElementKind.CONSTRUCTOR));
169 } 169 }
170 ElementKind elementKind = element.kind; 170 ElementKind elementKind = element.kind;
171 return _kindMap.putIfAbsent( 171 return _kindMap.putIfAbsent(
172 elementKind, () => new IndexableElementKind._(elementKind)); 172 elementKind, () => new IndexableElementKind._(elementKind));
173 } 173 }
174 } 174 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698