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

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

Issue 1365663002: Tweak navigation for 'part of' directives. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/analysis_server/test/analysis/notification_navigation_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/domains/analysis/navigation_dart.dart
diff --git a/pkg/analysis_server/lib/src/domains/analysis/navigation_dart.dart b/pkg/analysis_server/lib/src/domains/analysis/navigation_dart.dart
index 182f7621196c91c9b336753ba21c3ef9a05c1c1f..671e752564a5d2a66a5aa6a4f55485a4587736b5 100644
--- a/pkg/analysis_server/lib/src/domains/analysis/navigation_dart.dart
+++ b/pkg/analysis_server/lib/src/domains/analysis/navigation_dart.dart
@@ -137,8 +137,7 @@ class _DartNavigationComputerVisitor extends RecursiveAstVisitor {
@override
visitPartOfDirective(PartOfDirective node) {
- computer._addRegion_tokenStart_nodeEnd(
- node.keyword, node.libraryName, node.element);
+ computer._addRegionForNode(node.libraryName, node.element);
super.visitPartOfDirective(node);
}
@@ -256,12 +255,6 @@ class _DartNavigationCollector {
_addRegion(offset, length, element);
}
- void _addRegion_tokenStart_nodeEnd(Token a, AstNode b, Element element) {
- int offset = a.offset;
- int length = b.end - offset;
- _addRegion(offset, length, element);
- }
-
void _addRegionForNode(AstNode node, Element element) {
int offset = node.offset;
int length = node.length;
« no previous file with comments | « no previous file | pkg/analysis_server/test/analysis/notification_navigation_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698