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

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

Issue 12192021: Revert "Remove Sink and move CollectionSink to async." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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/dart2js.dart
diff --git a/sdk/lib/_internal/compiler/implementation/dart2js.dart b/sdk/lib/_internal/compiler/implementation/dart2js.dart
index a2a4c37235982059f048b9c82b3f72ec977b2f71..d66579f6b6d5b0a941fa87e2c60a1d39f9814bf0 100644
--- a/sdk/lib/_internal/compiler/implementation/dart2js.dart
+++ b/sdk/lib/_internal/compiler/implementation/dart2js.dart
@@ -263,7 +263,7 @@ void compile(List<String> argv) {
}
}
- StreamSink<String> outputProvider(String name, String extension) {
+ Sink<String> outputProvider(String name, String extension) {
Uri uri;
String sourceMapFileName;
bool isPrimaryOutput = false;
@@ -314,8 +314,8 @@ void compile(List<String> argv) {
}
// TODO(ahe): Get rid of this class if http://dartbug.com/8118 is fixed.
-class CountingSink implements StreamSink<String> {
- final StreamSink<String> sink;
+class CountingSink implements Sink<String> {
+ final Sink<String> sink;
int count = 0;
CountingSink(this.sink);
@@ -325,8 +325,6 @@ class CountingSink implements StreamSink<String> {
count += value.length;
}
- signalError(AsyncError error) => sink.signalError(error);
-
close() => sink.close();
}
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/compiler.dart ('k') | sdk/lib/_internal/compiler/implementation/dart2jslib.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698