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

Unified Diff: sdk/lib/io/data_transformer.dart

Issue 12610006: Renamed StreamSink to EventSink. Renamed signalError to addError. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Changed inheritance back! Now create StreamSink instead of EventSink where we create them. Created 7 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
Index: sdk/lib/io/data_transformer.dart
diff --git a/sdk/lib/io/data_transformer.dart b/sdk/lib/io/data_transformer.dart
index 3daf351922a9f25f3cb323233440c558c6a44748..e75335bd49cb077cd80fe9ffa31439030b7fbd65 100644
--- a/sdk/lib/io/data_transformer.dart
+++ b/sdk/lib/io/data_transformer.dart
@@ -39,7 +39,7 @@ class _FilterTransformer extends StreamEventTransformer<List<int>, List<int>> {
_FilterTransformer(_Filter this._filter);
- void handleData(List<int> data, StreamSink<List<int>> sink) {
+ void handleData(List<int> data, EventSink<List<int>> sink) {
if (_closed) return;
try {
_filter.process(data);
@@ -49,12 +49,12 @@ class _FilterTransformer extends StreamEventTransformer<List<int>, List<int>> {
}
} catch (e, s) {
_closed = true;
- sink.signalError(new AsyncError(e, s));
+ sink.addError(new AsyncError(e, s));
sink.close();
}
}
- void handleDone(StreamSink<List<int>> sink) {
+ void handleDone(EventSink<List<int>> sink) {
if (_closed) return;
try {
var out;
@@ -62,7 +62,7 @@ class _FilterTransformer extends StreamEventTransformer<List<int>, List<int>> {
sink.add(out);
}
} catch (e, s) {
- sink.signalError(new AsyncError(e, s));
+ sink.addError(new AsyncError(e, s));
_closed = true;
}
if (!_closed) _filter.end();

Powered by Google App Engine
This is Rietveld 408576698