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

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

Issue 1908943004: Fix void foo(..) => ... to use { } instead. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Upload 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/html_escape.dart ('k') | sdk/lib/io/bytes_builder.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/convert/string_conversion.dart
diff --git a/sdk/lib/convert/string_conversion.dart b/sdk/lib/convert/string_conversion.dart
index 9c32673c8bc2d683221890b8b6bda46f513d8885..bdfd39b27e636017ebcdfdce396846fb446d1257 100644
--- a/sdk/lib/convert/string_conversion.dart
+++ b/sdk/lib/convert/string_conversion.dart
@@ -93,13 +93,14 @@ class _ClosableStringSink implements ClosableStringSink {
_ClosableStringSink(this._sink, this._callback);
- void close() => _callback();
+ void close() { _callback(); }
- void writeCharCode(int charCode) => _sink.writeCharCode(charCode);
- void write(Object o) => _sink.write(o);
- void writeln([Object o = ""]) => _sink.writeln(o);
- void writeAll(Iterable objects, [String separator = ""])
- => _sink.writeAll(objects, separator);
+ void writeCharCode(int charCode) { _sink.writeCharCode(charCode); }
+ void write(Object o) { _sink.write(o); }
+ void writeln([Object o = ""]) { _sink.writeln(o); }
+ void writeAll(Iterable objects, [String separator = ""]) {
+ _sink.writeAll(objects, separator);
+ }
}
/**
@@ -177,7 +178,7 @@ abstract class StringConversionSinkMixin implements StringConversionSink {
void addSlice(String str, int start, int end, bool isLast);
void close();
- void add(String str) => addSlice(str, 0, str.length, false);
+ void add(String str) { addSlice(str, 0, str.length, false); }
ByteConversionSink asUtf8Sink(bool allowMalformed) {
return new _Utf8ConversionSink(this, allowMalformed);
@@ -207,7 +208,7 @@ class _StringSinkConversionSink extends StringConversionSinkBase {
if (isLast) close();
}
- void add(String str) => _stringSink.write(str);
+ void add(String str) { _stringSink.write(str); }
ByteConversionSink asUtf8Sink(bool allowMalformed) {
return new _Utf8StringSinkAdapter(this, _stringSink, allowMalformed);
@@ -253,7 +254,7 @@ class _StringAdapterSink extends StringConversionSinkBase {
_StringAdapterSink(this._sink);
- void add(String str) => _sink.add(str);
+ void add(String str) { _sink.add(str); }
void addSlice(String str, int start, int end, bool isLast) {
if (start == 0 && end == str.length) {
@@ -264,7 +265,7 @@ class _StringAdapterSink extends StringConversionSinkBase {
if (isLast) close();
}
- void close() => _sink.close();
+ void close() { _sink.close(); }
}
« no previous file with comments | « sdk/lib/convert/html_escape.dart ('k') | sdk/lib/io/bytes_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698