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

Side by Side Diff: pkg/analysis_server/lib/src/domains/analysis/navigation.dart

Issue 2328043002: Move exception support to its own library (Closed)
Patch Set: Created 4 years, 3 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) 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
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 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/domain_analysis.dart ('k') | pkg/analysis_server/lib/src/domains/analysis/occurrences.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698