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

Unified Diff: sdk/lib/io/websocket_impl.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/io/stdio.dart ('k') | tests/lib/convert/close_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/websocket_impl.dart
diff --git a/sdk/lib/io/websocket_impl.dart b/sdk/lib/io/websocket_impl.dart
index 6acd661bebc42fc99e914c2e40aa4d0477c1e962..0972e84be2e3c547b7ee315470b94933f41ff392 100644
--- a/sdk/lib/io/websocket_impl.dart
+++ b/sdk/lib/io/websocket_impl.dart
@@ -105,10 +105,11 @@ class _WebSocketProtocolTransformer implements StreamTransformer, EventSink {
});
}
- void addError(Object error, [StackTrace stackTrace]) =>
- _eventSink.addError(error, stackTrace);
+ void addError(Object error, [StackTrace stackTrace]) {
+ _eventSink.addError(error, stackTrace);
+ }
- void close() => _eventSink.close();
+ void close() { _eventSink.close(); }
/**
* Process data received from the underlying communication channel.
@@ -677,8 +678,9 @@ class _WebSocketOutgoingTransformer implements StreamTransformer, EventSink {
addFrame(opcode, data);
}
- void addError(Object error, [StackTrace stackTrace]) =>
- _eventSink.addError(error, stackTrace);
+ void addError(Object error, [StackTrace stackTrace]) {
+ _eventSink.addError(error, stackTrace);
+ }
void close() {
int code = webSocket._outCloseCode;
@@ -1161,9 +1163,10 @@ class _WebSocketImpl extends Stream with _ServiceObject implements WebSocket {
int get closeCode => _closeCode;
String get closeReason => _closeReason;
- void add(data) => _sink.add(data);
- void addError(error, [StackTrace stackTrace]) =>
- _sink.addError(error, stackTrace);
+ void add(data) { _sink.add(data); }
+ void addError(error, [StackTrace stackTrace]) {
+ _sink.addError(error, stackTrace);
+ }
Future addStream(Stream stream) => _sink.addStream(stream);
Future get done => _sink.done;
« no previous file with comments | « sdk/lib/io/stdio.dart ('k') | tests/lib/convert/close_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698