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

Unified Diff: test/dart_codegen/expect/convert/chunked_conversion.dart

Issue 1148283010: Remove dart backend (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « test/dart_codegen/expect/convert/byte_conversion.dart ('k') | test/dart_codegen/expect/convert/codec.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/dart_codegen/expect/convert/chunked_conversion.dart
diff --git a/test/dart_codegen/expect/convert/chunked_conversion.dart b/test/dart_codegen/expect/convert/chunked_conversion.dart
deleted file mode 100644
index cb58fe433a8f0985f584ce35c4ccdd40c9615002..0000000000000000000000000000000000000000
--- a/test/dart_codegen/expect/convert/chunked_conversion.dart
+++ /dev/null
@@ -1,31 +0,0 @@
-part of dart.convert;
- typedef void _ChunkedConversionCallback<T>(T accumulated);
- abstract class ChunkedConversionSink<T> implements Sink<T> {ChunkedConversionSink();
- factory ChunkedConversionSink.withCallback(void callback(List<T> accumulated)) = _SimpleCallbackSink;
- void add(T chunk);
- void close();
-}
- class _SimpleCallbackSink<T> extends ChunkedConversionSink<T> {final _ChunkedConversionCallback<List<T>> _callback;
- final List<T> _accumulated = <T> [];
- _SimpleCallbackSink(this._callback);
- void add(T chunk) {
-_accumulated.add(chunk);
-}
- void close() {
-_callback(_accumulated);
-}
-}
- class _EventSinkAdapter<T> implements ChunkedConversionSink<T> {final EventSink<T> _sink;
- _EventSinkAdapter(this._sink);
- void add(T data) => _sink.add(data);
- void close() => _sink.close();
-}
- class _ConverterStreamEventSink<S, T> implements EventSink<S> {final EventSink<T> _eventSink;
- ChunkedConversionSink _chunkedSink;
- _ConverterStreamEventSink(Converter converter, EventSink<T> sink) : this._eventSink = sink, _chunkedSink = converter.startChunkedConversion(sink);
- void add(S o) => _chunkedSink.add(o);
- void addError(Object error, [StackTrace stackTrace]) {
-_eventSink.addError(error, stackTrace);
-}
- void close() => _chunkedSink.close();
-}
« no previous file with comments | « test/dart_codegen/expect/convert/byte_conversion.dart ('k') | test/dart_codegen/expect/convert/codec.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698