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

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

Issue 2754013002: Format all dart: library files (Closed)
Patch Set: Format all dart: library files Created 3 years, 9 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/string_conversion.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 4e3778de08a426093d8c7008e45df37b7509f49a..9ece31720ce2f2774056eeec950123290428180e 100644
--- a/sdk/lib/convert/line_splitter.dart
+++ b/sdk/lib/convert/line_splitter.dart
@@ -18,11 +18,10 @@ 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 extends Converter<String, List<String>> /*=Object*/
+ implements
+ ChunkedConverter<String, List<String>, String, String>
+/*=StreamTransformer<String, String>*/ {
const LineSplitter();
/// Split [lines] into individual lines.
@@ -86,8 +85,7 @@ class LineSplitter
Stream/*<String>*/ bind(Stream<String> stream) {
return new Stream<String>.eventTransformed(
- stream,
- (EventSink<String> sink) => new _LineSplitterEventSink(sink));
+ stream, (EventSink<String> sink) => new _LineSplitterEventSink(sink));
}
}
@@ -126,7 +124,7 @@ class _LineSplitterSink extends StringConversionSinkBase {
end = chunk.length;
_carry = null;
} else if (_skipLeadingLF) {
- if (chunk.codeUnitAt(start) == _LF) {
+ if (chunk.codeUnitAt(start) == _LF) {
start += 1;
}
_skipLeadingLF = false;
« no previous file with comments | « sdk/lib/convert/latin1.dart ('k') | sdk/lib/convert/string_conversion.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698