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

Unified Diff: pkg/analyzer_plugin/lib/utilities/navigation/navigation.dart

Issue 3002343002: Add SourceRange support to navigation collector (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
« no previous file with comments | « pkg/analyzer_plugin/lib/src/utilities/navigation/navigation.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer_plugin/lib/utilities/navigation/navigation.dart
diff --git a/pkg/analyzer_plugin/lib/utilities/navigation/navigation.dart b/pkg/analyzer_plugin/lib/utilities/navigation/navigation.dart
index 7205cc6654acf24e48e8aa6b588dcc8e373c76fe..462448b29ccc9723fe6ead666ed5d822cb704ccf 100644
--- a/pkg/analyzer_plugin/lib/utilities/navigation/navigation.dart
+++ b/pkg/analyzer_plugin/lib/utilities/navigation/navigation.dart
@@ -4,6 +4,7 @@
import 'package:analyzer/dart/analysis/results.dart';
import 'package:analyzer/file_system/file_system.dart';
+import 'package:analyzer/src/generated/source.dart';
import 'package:analyzer_plugin/protocol/protocol.dart';
import 'package:analyzer_plugin/protocol/protocol_common.dart'
show ElementKind, Location;
@@ -32,6 +33,13 @@ abstract class DartNavigationRequest implements NavigationRequest {
*/
abstract class NavigationCollector {
/**
+ * Record a new navigation region corresponding to the given [range] that
+ * should navigate to the given [targetLocation].
+ */
+ void addRange(
+ SourceRange range, ElementKind targetKind, Location targetLocation);
+
+ /**
* Record a new navigation region with the given [offset] and [length] that
* should navigate to the given [targetLocation].
*/
« no previous file with comments | « pkg/analyzer_plugin/lib/src/utilities/navigation/navigation.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698