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

Side by Side Diff: test/dart_codegen/expect/convert/converter.dart

Issue 963593002: Disable formatting and add new-lines to make tests faster. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 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 unified diff | Download patch
OLDNEW
1 part of dart.convert; 1 part of dart.convert;
2 2 abstract class Converter<S, T> implements StreamTransformer {const Converter();
3 abstract class Converter<S, T> implements StreamTransformer { 3 T convert(S input);
4 const Converter(); 4 Converter<S, dynamic> fuse(Converter<T, dynamic> other) {
5 T convert(S input); 5 return new _FusedConverter<S, T, dynamic>(this, other);
6 Converter<S, dynamic> fuse(Converter<T, dynamic> other) {
7 return new _FusedConverter<S, T, dynamic>(this, other);
8 } 6 }
9 ChunkedConversionSink startChunkedConversion(Sink sink) { 7 ChunkedConversionSink startChunkedConversion(Sink sink) {
10 throw new UnsupportedError( 8 throw new UnsupportedError("This converter does not support chunked conversion s: $this");
11 "This converter does not support chunked conversions: $this");
12 } 9 }
13 Stream bind(Stream source) { 10 Stream bind(Stream source) {
14 return new Stream.eventTransformed( 11 return new Stream.eventTransformed(source, (EventSink sink) => new _ConverterS treamEventSink(this, sink));
15 source, (EventSink sink) => new _ConverterStreamEventSink(this, sink));
16 } 12 }
17 } 13 }
18 class _FusedConverter<S, M, T> extends Converter<S, T> { 14 class _FusedConverter<S, M, T> extends Converter<S, T> {final Converter _first;
19 final Converter _first; 15 final Converter _second;
20 final Converter _second; 16 _FusedConverter(this._first, this._second);
21 _FusedConverter(this._first, this._second); 17 T convert(S input) => ((__x4) => DDC$RT.cast(__x4, dynamic, T, "CastGeneral", " ""line 58, column 25 of dart:convert/converter.dart: """, __x4 is T, false))(_se cond.convert(_first.convert(input)));
22 T convert(S input) => ((__x4) => DDC$RT.cast(__x4, dynamic, T, "CastGeneral", 18 ChunkedConversionSink startChunkedConversion(Sink sink) {
23 """line 58, column 25 of dart:convert/converter.dart: """, __x4 is T, 19 return _first.startChunkedConversion(_second.startChunkedConversion(sink));
24 false))(_second.convert(_first.convert(input)));
25 ChunkedConversionSink startChunkedConversion(Sink sink) {
26 return _first.startChunkedConversion(_second.startChunkedConversion(sink));
27 }
28 } 20 }
21 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698