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

Unified Diff: sdk/lib/_internal/compiler/implementation/compiler.dart

Issue 12154006: Remove Sink and move CollectionSink to async. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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/_internal/compiler/implementation/compiler.dart
diff --git a/sdk/lib/_internal/compiler/implementation/compiler.dart b/sdk/lib/_internal/compiler/implementation/compiler.dart
index 01e5cc2813090a642cd612efb2c75984d6a7839b..23d8c8a3dc70f9c4e7deec238a9b9d3e9c8ec96f 100644
--- a/sdk/lib/_internal/compiler/implementation/compiler.dart
+++ b/sdk/lib/_internal/compiler/implementation/compiler.dart
@@ -1108,13 +1108,15 @@ bool invariant(Spannable spannable, var condition, {String message: null}) {
}
/// A sink that drains into /dev/null.
-class NullSink extends Sink<String> {
+class NullSink extends StreamSink<String> {
final String name;
NullSink(this.name);
add(String value) {}
+ void signalError(AsyncError error) {}
Lasse Reichstein Nielsen 2013/02/04 13:21:10 Consider throwing the error.
ahe 2013/02/04 15:27:30 The error should be thrown. You should *never* ign
+
void close() {}
toString() => name;

Powered by Google App Engine
This is Rietveld 408576698