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

Unified Diff: sdk/lib/convert/byte_conversion.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/ascii.dart ('k') | sdk/lib/convert/chunked_conversion.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/convert/byte_conversion.dart
diff --git a/sdk/lib/convert/byte_conversion.dart b/sdk/lib/convert/byte_conversion.dart
index 4c1ede46e91026579325360826b5bcbf31d5b2b7..aaeac3e16047563277c4bc374b068d8875484e2d 100644
--- a/sdk/lib/convert/byte_conversion.dart
+++ b/sdk/lib/convert/byte_conversion.dart
@@ -17,10 +17,9 @@ part of dart.convert;
*/
abstract class ByteConversionSink extends ChunkedConversionSink<List<int>> {
ByteConversionSink();
- factory ByteConversionSink.withCallback(void callback(List<int> accumulated))
- = _ByteCallbackSink;
- factory ByteConversionSink.from(Sink<List<int>> sink)
- = _ByteAdapterSink;
+ factory ByteConversionSink.withCallback(
+ void callback(List<int> accumulated)) = _ByteCallbackSink;
+ factory ByteConversionSink.from(Sink<List<int>> sink) = _ByteAdapterSink;
/**
* Adds the next [chunk] to `this`.
@@ -43,7 +42,6 @@ abstract class ByteConversionSink extends ChunkedConversionSink<List<int>> {
* inputs.
*/
abstract class ByteConversionSinkBase extends ByteConversionSink {
-
void add(List<int> chunk);
void close();
@@ -64,8 +62,13 @@ class _ByteAdapterSink extends ByteConversionSinkBase {
_ByteAdapterSink(this._sink);
- void add(List<int> chunk) { _sink.add(chunk); }
- void close() { _sink.close(); }
+ void add(List<int> chunk) {
+ _sink.add(chunk);
+ }
+
+ void close() {
+ _sink.close();
+ }
}
/**
« no previous file with comments | « sdk/lib/convert/ascii.dart ('k') | sdk/lib/convert/chunked_conversion.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698