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

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

Issue 2529393002: Make core libraries use generic method syntax. (Closed)
Patch Set: Fix function fingerprints for VM. Change LineSplitter. Created 4 years 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/json.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 331527ecc2fed8ab9e95b359d5f1aeef518224f1..09a327776fa18a7e994d8327c5b240b484dea50e 100644
--- a/sdk/lib/convert/line_splitter.dart
+++ b/sdk/lib/convert/line_splitter.dart
@@ -9,7 +9,7 @@ const int _LF = 10;
const int _CR = 13;
/**
- * A [Converter] that splits a [String] into individual lines.
+ * A [StreamTranformer] that splits a [String] into individual lines.
*
* A line is terminated by either a CR (U+000D), a LF (U+000A), a
* CR+LF sequence (DOS line ending),
@@ -17,10 +17,7 @@ const int _CR = 13;
*
* The returned lines do not contain the line terminators.
*/
-class LineSplitter
- extends Converter<String, List<String>>/*=Object*/
- implements ChunkedConverter<String, List<String>, String, String>
- /*=StreamTransformer<String, String>*/ {
+class LineSplitter implements StreamTransformer<String, String> {
Lasse Reichstein Nielsen 2016/12/16 16:36:01 The analyzer kept saying that the class didn't cor
const LineSplitter();
@@ -83,7 +80,7 @@ class LineSplitter
return new _LineSplitterSink(sink);
}
- Stream/*<String>*/ bind(Stream/*<String>*/ stream) {
+ Stream<String> bind(Stream<String> stream) {
return new Stream<String>.eventTransformed(
stream,
(EventSink<String> sink) => new _LineSplitterEventSink(sink));
« no previous file with comments | « sdk/lib/convert/json.dart ('k') | sdk/lib/convert/utf.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698