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

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

Issue 1112403004: SDK fixes (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Formatting fix Created 5 years, 8 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: test/dart_codegen/expect/convert/converter.dart
diff --git a/test/dart_codegen/expect/convert/converter.dart b/test/dart_codegen/expect/convert/converter.dart
index 3fea86e2aa535caf8577628510fc27a1090ca05b..70171087bc55d41ec555b4f1996b8da7f6e02cb0 100644
--- a/test/dart_codegen/expect/convert/converter.dart
+++ b/test/dart_codegen/expect/convert/converter.dart
@@ -1,21 +1,21 @@
part of dart.convert;
- abstract class Converter<S, T> implements StreamTransformer {const Converter();
+ abstract class Converter<S, T> implements StreamTransformer<S, T> {const Converter();
T convert(S input);
Converter<S, dynamic> fuse(Converter<T, dynamic> other) {
return new _FusedConverter<S, T, dynamic>(this, other);
}
- ChunkedConversionSink startChunkedConversion(Sink sink) {
+ ChunkedConversionSink startChunkedConversion(Sink<T> sink) {
throw new UnsupportedError("This converter does not support chunked conversions: $this");
}
- Stream bind(Stream source) {
- return new Stream.eventTransformed(source, (EventSink sink) => new _ConverterStreamEventSink(this, sink));
+ Stream<T> bind(Stream<S> source) {
+ return new Stream<T>.eventTransformed(source, (EventSink sink) => new _ConverterStreamEventSink(this, sink));
}
}
class _FusedConverter<S, M, T> extends Converter<S, T> {final Converter _first;
final Converter _second;
_FusedConverter(this._first, this._second);
- T convert(S input) => ((__x4) => DEVC$RT.cast(__x4, dynamic, T, "CompositeCast", """line 58, column 25 of dart:convert/converter.dart: """, __x4 is T, false))(_second.convert(_first.convert(input)));
- ChunkedConversionSink startChunkedConversion(Sink sink) {
+ T convert(S input) => ((__x2) => DEVC$RT.cast(__x2, dynamic, T, "CompositeCast", """line 58, column 25 of dart:convert/converter.dart: """, __x2 is T, false))(_second.convert(_first.convert(input)));
+ ChunkedConversionSink startChunkedConversion(Sink<T> sink) {
return _first.startChunkedConversion(_second.startChunkedConversion(sink));
}
}

Powered by Google App Engine
This is Rietveld 408576698