OLD | NEW |
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 domains.analysis.navigation; | 5 library domains.analysis.navigation; |
6 | 6 |
7 import 'dart:collection'; | 7 import 'dart:collection'; |
8 | 8 |
9 import 'package:analysis_server/plugin/analysis/navigation/navigation_core.dart'
; | 9 import 'package:analysis_server/plugin/analysis/navigation/navigation_core.dart'
; |
10 import 'package:analysis_server/src/analysis_server.dart'; | 10 import 'package:analysis_server/src/analysis_server.dart'; |
11 import 'package:analysis_server/src/collections.dart'; | 11 import 'package:analysis_server/src/collections.dart'; |
12 import 'package:analysis_server/src/protocol_server.dart' as protocol; | 12 import 'package:analysis_server/src/protocol_server.dart' as protocol; |
| 13 import 'package:analyzer/exception/exception.dart'; |
13 import 'package:analyzer/src/generated/engine.dart' | 14 import 'package:analyzer/src/generated/engine.dart' |
14 show AnalysisContext, AnalysisEngine; | 15 show AnalysisContext, AnalysisEngine; |
15 import 'package:analyzer/src/generated/java_engine.dart' show CaughtException; | |
16 import 'package:analyzer/src/generated/source.dart' show Source, SourceRange; | 16 import 'package:analyzer/src/generated/source.dart' show Source, SourceRange; |
17 | 17 |
18 /** | 18 /** |
19 * Compute all known navigation information for the given part of [source]. | 19 * Compute all known navigation information for the given part of [source]. |
20 */ | 20 */ |
21 NavigationCollectorImpl computeNavigation(AnalysisServer server, | 21 NavigationCollectorImpl computeNavigation(AnalysisServer server, |
22 AnalysisContext context, Source source, int offset, int length) { | 22 AnalysisContext context, Source source, int offset, int length) { |
23 NavigationCollectorImpl collector = new NavigationCollectorImpl(); | 23 NavigationCollectorImpl collector = new NavigationCollectorImpl(); |
24 List<NavigationContributor> contributors = | 24 List<NavigationContributor> contributors = |
25 server.serverPlugin.navigationContributors; | 25 server.serverPlugin.navigationContributors; |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 location.offset, | 110 location.offset, |
111 location.length, | 111 location.length, |
112 location.startLine, | 112 location.startLine, |
113 location.startColumn); | 113 location.startColumn); |
114 targets.add(target); | 114 targets.add(target); |
115 targetMap[pair] = index; | 115 targetMap[pair] = index; |
116 } | 116 } |
117 return index; | 117 return index; |
118 } | 118 } |
119 } | 119 } |
OLD | NEW |