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

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

Issue 3001413002: Remove uses of the old plugin model from the analysis server (Closed)
Patch Set: Created 3 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: pkg/analysis_server/lib/src/domains/analysis/navigation.dart
diff --git a/pkg/analysis_server/lib/src/domains/analysis/navigation.dart b/pkg/analysis_server/lib/src/domains/analysis/navigation.dart
index 5bde26f2c319cc610d8780b801ab876c60e8511b..8459dff590f9d0c30a14e8c36b06dc4c9b719481 100644
--- a/pkg/analysis_server/lib/src/domains/analysis/navigation.dart
+++ b/pkg/analysis_server/lib/src/domains/analysis/navigation.dart
@@ -5,34 +5,9 @@
import 'dart:collection';
import 'package:analysis_server/plugin/analysis/navigation/navigation_core.dart';
-import 'package:analysis_server/src/analysis_server.dart';
import 'package:analysis_server/src/collections.dart';
import 'package:analysis_server/src/protocol_server.dart' as protocol;
-import 'package:analyzer/exception/exception.dart';
-import 'package:analyzer/src/generated/engine.dart'
- show AnalysisContext, AnalysisEngine;
-import 'package:analyzer/src/generated/source.dart' show Source, SourceRange;
-
-/**
- * Compute all known navigation information for the given part of [source].
- */
-NavigationCollectorImpl computeNavigation(AnalysisServer server,
- AnalysisContext context, Source source, int offset, int length) {
- NavigationCollectorImpl collector = new NavigationCollectorImpl();
- List<NavigationContributor> contributors =
- server.serverPlugin.navigationContributors;
- for (NavigationContributor contributor in contributors) {
- try {
- contributor.computeNavigation(collector, context, source, offset, length);
- } catch (exception, stackTrace) {
- AnalysisEngine.instance.logger.logError(
- 'Exception from navigation contributor: ${contributor.runtimeType}',
- new CaughtException(exception, stackTrace));
- }
- }
- collector.createRegions();
- return collector;
-}
+import 'package:analyzer/src/generated/source.dart' show SourceRange;
/**
* A concrete implementation of [NavigationCollector].
« no previous file with comments | « pkg/analysis_server/lib/src/domain_completion.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