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

Unified Diff: pkg/analyzer_plugin/lib/src/protocol/protocol_internal.dart

Issue 2679093004: Add an interface for request parameters (Closed)
Patch Set: Created 3 years, 10 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/protocol/protocol_internal.dart
diff --git a/pkg/analyzer_plugin/lib/src/protocol/protocol_internal.dart b/pkg/analyzer_plugin/lib/src/protocol/protocol_internal.dart
index 7033784e106e21dfa2162f63a514838214be904a..adb066467c9e75d30ae8ec51b03f9f9ef876eb99 100644
--- a/pkg/analyzer_plugin/lib/src/protocol/protocol_internal.dart
+++ b/pkg/analyzer_plugin/lib/src/protocol/protocol_internal.dart
@@ -471,6 +471,14 @@ class RequestDecoder extends JsonDecoder {
}
}
+abstract class RequestParams implements HasToJson {
+ /**
+ * Return a request whose parameters are taken from this object and that has
+ * the given [id].
+ */
+ Request toRequest(String id);
+}
+
/**
* JsonDecoder for decoding responses from the server. This is intended to be
* used only for testing. Errors are reported using bare [Exception] objects.
« no previous file with comments | « pkg/analyzer_plugin/lib/protocol/generated_protocol.dart ('k') | pkg/analyzer_plugin/tool/spec/codegen_dart_protocol.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698