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; |