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

Unified Diff: pkg/analysis_server/lib/src/channel/channel.dart

Issue 1881553002: Revert "Steps towards making the convert library strong-mode compliant." (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « CHANGELOG.md ('k') | runtime/lib/convert_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/channel/channel.dart
diff --git a/pkg/analysis_server/lib/src/channel/channel.dart b/pkg/analysis_server/lib/src/channel/channel.dart
index bee6f359fe7df2d4420b771eba183c1b4dad40b9..f3e473de8458edfe0545bf5ceddb340be4c0e2e5 100644
--- a/pkg/analysis_server/lib/src/channel/channel.dart
+++ b/pkg/analysis_server/lib/src/channel/channel.dart
@@ -85,13 +85,12 @@ abstract class ClientCommunicationChannel {
* Instances of the class [JsonStreamDecoder] convert JSON strings to JSON
* maps.
*/
-class JsonStreamDecoder extends
- ChunkedConverter<String, Map, String, Map> {
+class JsonStreamDecoder extends Converter<String, Map> {
@override
Map convert(String text) => JSON.decode(text);
@override
- ChunkedConversionSink<String> startChunkedConversion(Sink<Map> sink) =>
+ ChunkedConversionSink startChunkedConversion(Sink sink) =>
new ChannelChunkSink<String, Map>(this, sink);
}
@@ -99,26 +98,24 @@ class JsonStreamDecoder extends
* Instances of the class [NotificationConverter] convert JSON maps to
* [Notification]s.
*/
-class NotificationConverter extends
- ChunkedConverter<Map, Notification, Map, Notification> {
+class NotificationConverter extends Converter<Map, Notification> {
@override
Notification convert(Map json) => new Notification.fromJson(json);
@override
- ChunkedConversionSink<Map> startChunkedConversion(Sink<Notification> sink) =>
+ ChunkedConversionSink startChunkedConversion(Sink sink) =>
new ChannelChunkSink<Map, Notification>(this, sink);
}
/**
* Instances of the class [ResponseConverter] convert JSON maps to [Response]s.
*/
-class ResponseConverter extends
- ChunkedConverter<Map, Response, Map, Response> {
+class ResponseConverter extends Converter<Map, Response> {
@override
Response convert(Map json) => new Response.fromJson(json);
@override
- ChunkedConversionSink<Map> startChunkedConversion(Sink<Response> sink) =>
+ ChunkedConversionSink startChunkedConversion(Sink sink) =>
new ChannelChunkSink<Map, Response>(this, sink);
}
« no previous file with comments | « CHANGELOG.md ('k') | runtime/lib/convert_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698