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

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

Issue 2953093002: Update the plugin API (Closed)
Patch Set: Update FixesRequest Created 3 years, 6 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
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);
-}
« no previous file with comments | « pkg/analyzer_plugin/lib/src/utilities/fixes/fixes.dart ('k') | pkg/analyzer_plugin/lib/utilities/assist/assist.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698