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

Unified Diff: sdk/lib/convert/json.dart

Issue 20374003: Add transformer support to Converters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Upload Created 7 years, 5 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 | « sdk/lib/convert/converter.dart ('k') | sdk/lib/convert/utf.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/convert/json.dart
diff --git a/sdk/lib/convert/json.dart b/sdk/lib/convert/json.dart
index 36c638195c1cff0fa29c555cd851f900437ca9ab..035a89e46eadc760edb811d0071046131d2ab09d 100644
--- a/sdk/lib/convert/json.dart
+++ b/sdk/lib/convert/json.dart
@@ -118,6 +118,9 @@ class JsonEncoder extends Converter<Object, String> {
}
return new _JsonEncoderSink(sink);
}
+
+ // Override the base-classes bind, to provide a better type.
+ Stream<String> bind(Stream<Object> stream) => super.bind(stream);
}
/**
@@ -190,6 +193,9 @@ class JsonDecoder extends Converter<String, Object> {
ChunkedConversionSink<Object> sink) {
return new _JsonDecoderSink(_reviver, sink);
}
+
+ // Override the base-classes bind, to provide a better type.
+ Stream<Object> bind(Stream<String> stream) => super.bind(stream);
}
/**
« no previous file with comments | « sdk/lib/convert/converter.dart ('k') | sdk/lib/convert/utf.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698