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

Unified Diff: pkg/analyzer_plugin/lib/utilities/assist/assist.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/utilities/assist/assist.dart
diff --git a/pkg/analyzer_plugin/lib/utilities/assist/assist.dart b/pkg/analyzer_plugin/lib/utilities/assist/assist.dart
index aafa87a60d2a89526ef809b7ad9fa1648f58ae5a..587235f5338484eff02211a50d9b6269f8ac7fb3 100644
--- a/pkg/analyzer_plugin/lib/utilities/assist/assist.dart
+++ b/pkg/analyzer_plugin/lib/utilities/assist/assist.dart
@@ -31,7 +31,8 @@ abstract class AssistContributor {
* Contribute assists for the location in the file specified by the given
* [request] into the given [collector].
*/
- void computeAssists(AssistRequest request, AssistCollector collector);
+ void computeAssists(
+ covariant AssistRequest request, AssistCollector collector);
}
/**
@@ -95,7 +96,15 @@ abstract class AssistRequest {
* Return the resource provider associated with this request.
*/
ResourceProvider get resourceProvider;
+}
+/**
+ * The information about a requested set of assists when computing assists in a
+ * `.dart` file.
+ *
+ * Clients may not extend, implement or mix-in this class.
+ */
+abstract class DartAssistRequest implements AssistRequest {
/**
* The analysis result for the file in which the assists are being requested.
*/

Powered by Google App Engine
This is Rietveld 408576698