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

Unified Diff: sdk/lib/utf/utf_stream.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/utf/utf_stream.dart
diff --git a/sdk/lib/utf/utf_stream.dart b/sdk/lib/utf/utf_stream.dart
index 71dc76de7b233458525f3a305cef61bad4dd0d56..00717b83b0ae7356e36ce510d5ec82aa4016bdf9 100644
--- a/sdk/lib/utf/utf_stream.dart
+++ b/sdk/lib/utf/utf_stream.dart
@@ -22,7 +22,7 @@ abstract class _StringDecoder
_StringDecoder(int this._replacementChar);
- void handleData(List<int> bytes, StreamSink<String> sink) {
+ void handleData(List<int> bytes, EventSink<String> sink) {
_buffer = <int>[];
List<int> carry = _carry;
_carry = null;
@@ -69,7 +69,7 @@ abstract class _StringDecoder
_buffer = null;
}
- void handleDone(StreamSink<String> sink) {
+ void handleDone(EventSink<String> sink) {
if (_carry != null) {
sink.add(new String.fromCharCodes(
new List.filled(_carry.length, _replacementChar)));
@@ -142,7 +142,7 @@ class Utf8DecoderTransformer extends _StringDecoder {
abstract class _StringEncoder
extends StreamEventTransformer<String, List<int>> {
- void handleData(String data, StreamSink<List<int>> sink) {
+ void handleData(String data, EventSink<List<int>> sink) {
sink.add(_processString(data));
}

Powered by Google App Engine
This is Rietveld 408576698