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 2ea06db019e9b83432daf98b20d344282d85b821..e513c86670a689b8a61d7850a0926f6921dcc9af 100644 |
--- a/pkg/analyzer_plugin/lib/src/utilities/navigation/navigation.dart |
+++ b/pkg/analyzer_plugin/lib/src/utilities/navigation/navigation.dart |
@@ -10,6 +10,32 @@ import 'package:analyzer_plugin/utilities/navigation/navigation.dart'; |
import 'package:analyzer_plugin/utilities/pair.dart'; |
/** |
+ * A concrete implementation of [DartNavigationRequest]. |
+ */ |
+class DartNavigationRequestImpl implements DartNavigationRequest { |
+ @override |
+ final ResourceProvider resourceProvider; |
+ |
+ @override |
+ final int length; |
+ |
+ @override |
+ final int offset; |
+ |
+ @override |
+ final ResolveResult result; |
+ |
+ /** |
+ * Initialize a newly create request with the given data. |
+ */ |
+ DartNavigationRequestImpl( |
+ this.resourceProvider, this.offset, this.length, this.result); |
+ |
+ @override |
+ String get path => result.path; |
+} |
+ |
+/** |
* A concrete implementation of [NavigationCollector]. |
*/ |
class NavigationCollectorImpl implements NavigationCollector { |
@@ -83,26 +109,3 @@ class NavigationCollectorImpl implements NavigationCollector { |
return index; |
} |
} |
- |
-/** |
- * A concrete implementation of [NavigationRequest]. |
- */ |
-class NavigationRequestImpl implements NavigationRequest { |
- @override |
- final ResourceProvider resourceProvider; |
- |
- @override |
- final int length; |
- |
- @override |
- final int offset; |
- |
- @override |
- final ResolveResult result; |
- |
- /** |
- * Initialize a newly create request with the given data. |
- */ |
- NavigationRequestImpl( |
- this.resourceProvider, this.offset, this.length, this.result); |
-} |