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

Unified Diff: sdk/lib/convert/line_splitter.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 | « sdk/lib/convert/latin1.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/line_splitter.dart
diff --git a/sdk/lib/convert/line_splitter.dart b/sdk/lib/convert/line_splitter.dart
index a9c94488a6c366e35d8650785403ef71338aac88..b9023f4c8fb246bfa235ef8c9e20ffa8120ac9c1 100644
--- a/sdk/lib/convert/line_splitter.dart
+++ b/sdk/lib/convert/line_splitter.dart
@@ -17,8 +17,7 @@ const int _CR = 13;
*
* The returned lines do not contain the line terminators.
*/
-class LineSplitter extends
- ChunkedConverter<String, List<String>, String, String> {
+class LineSplitter extends Converter<String, List<String>> {
const LineSplitter();
@@ -80,6 +79,9 @@ class LineSplitter extends
}
return new _LineSplitterSink(sink);
}
+
+ // Override the base-class' bind, to provide a better type.
+ Stream<String> bind(Stream<String> stream) => super.bind(stream);
}
// TODO(floitsch): deal with utf8.
« no previous file with comments | « sdk/lib/convert/latin1.dart ('k') | sdk/lib/convert/utf.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698