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

Unified Diff: pkg/analyzer_plugin/lib/src/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 | « no previous file | pkg/analyzer_plugin/lib/utilities/navigation/navigation.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer_plugin/lib/src/utilities/navigation/navigation.dart
diff --git a/pkg/analyzer_plugin/lib/src/utilities/navigation/navigation.dart b/pkg/analyzer_plugin/lib/src/utilities/navigation/navigation.dart
index e513c86670a689b8a61d7850a0926f6921dcc9af..1062970658771d723440c02a518b667314184c12 100644
--- a/pkg/analyzer_plugin/lib/src/utilities/navigation/navigation.dart
+++ b/pkg/analyzer_plugin/lib/src/utilities/navigation/navigation.dart
@@ -59,6 +59,12 @@ class NavigationCollectorImpl implements NavigationCollector {
final Map<String, int> fileMap = <String, int>{};
@override
+ void addRange(
+ SourceRange range, ElementKind targetKind, Location targetLocation) {
+ addRegion(range.offset, range.length, targetKind, targetLocation);
+ }
+
+ @override
void addRegion(
int offset, int length, ElementKind targetKind, Location targetLocation) {
SourceRange range = new SourceRange(offset, length);
« no previous file with comments | « no previous file | pkg/analyzer_plugin/lib/utilities/navigation/navigation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698