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

Unified Diff: pkg/analysis_server/lib/plugin/analysis/navigation/navigation_core.dart

Issue 3007493002: Remove most of the remaining references to AnalysisContext (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/plugin/analysis/navigation/navigation_core.dart
diff --git a/pkg/analysis_server/lib/plugin/analysis/navigation/navigation_core.dart b/pkg/analysis_server/lib/plugin/analysis/navigation/navigation_core.dart
index 5a1c18dca03580f03cd7c9c636a79564d1b30766..6e0cc40d67cfa0250ef62bfea262990e5479d02c 100644
--- a/pkg/analysis_server/lib/plugin/analysis/navigation/navigation_core.dart
+++ b/pkg/analysis_server/lib/plugin/analysis/navigation/navigation_core.dart
@@ -2,13 +2,11 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-import 'package:analyzer/src/generated/engine.dart' show AnalysisContext;
-import 'package:analyzer/src/generated/source.dart' show Source;
import 'package:analyzer_plugin/protocol/protocol_common.dart'
show ElementKind, Location;
/**
- * An object that [NavigationContributor]s use to record navigation regions.
+ * An object used to record navigation regions.
*
* Clients may not extend, implement or mix-in this class.
*/
@@ -20,18 +18,3 @@ abstract class NavigationCollector {
void addRegion(
int offset, int length, ElementKind targetKind, Location targetLocation);
}
-
-/**
- * An object used to produce navigation regions.
- *
- * Clients may implement this class when implementing plugins.
- */
-abstract class NavigationContributor {
- /**
- * Contribute navigation regions for a subset of the content of the given
- * [source] into the given [collector]. The subset is specified by the
- * [offset] and [length]. The [context] can be used to access analysis results.
- */
- void computeNavigation(NavigationCollector collector, AnalysisContext context,
- Source source, int offset, int length);
-}

Powered by Google App Engine
This is Rietveld 408576698