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; |