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 analysis.type_hierarhy; | 5 library analysis.type_hierarhy; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 import 'dart:collection'; | 8 import 'dart:collection'; |
9 | 9 |
10 import 'package:analysis_server/src/protocol_server.dart' | 10 import 'package:analysis_server/src/protocol_server.dart' |
11 show TypeHierarchyItem, convertElement; | 11 show TypeHierarchyItem, convertElement; |
12 import 'package:analysis_server/src/services/search/hierarchy.dart'; | 12 import 'package:analysis_server/src/services/search/hierarchy.dart'; |
13 import 'package:analysis_server/src/services/search/search_engine.dart'; | 13 import 'package:analysis_server/src/services/search/search_engine.dart'; |
14 import 'package:analyzer/src/generated/element.dart'; | 14 import 'package:analyzer/dart/element/element.dart'; |
| 15 import 'package:analyzer/dart/element/type.dart'; |
15 | 16 |
16 /** | 17 /** |
17 * A computer for a type hierarchy of an [Element]. | 18 * A computer for a type hierarchy of an [Element]. |
18 */ | 19 */ |
19 class TypeHierarchyComputer { | 20 class TypeHierarchyComputer { |
20 final SearchEngine _searchEngine; | 21 final SearchEngine _searchEngine; |
21 | 22 |
22 Element _pivotElement; | 23 Element _pivotElement; |
23 LibraryElement _pivotLibrary; | 24 LibraryElement _pivotLibrary; |
24 ElementKind _pivotKind; | 25 ElementKind _pivotKind; |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 return null; | 197 return null; |
197 } | 198 } |
198 if (result != null) { | 199 if (result != null) { |
199 return result; | 200 return result; |
200 } | 201 } |
201 } | 202 } |
202 // not found | 203 // not found |
203 return null; | 204 return null; |
204 } | 205 } |
205 } | 206 } |
OLD | NEW |