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

Unified 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 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 cd678f4c7ae058a68e88b45879091c9a99b86de8..b4eac9f60563673abb82849e06b37d3bdf6124a8 100644
--- a/test/dart_codegen/expect/convert/converter.dart
+++ b/test/dart_codegen/expect/convert/converter.dart
@@ -1,28 +1,21 @@
part of dart.convert;
-
-abstract class Converter<S, T> implements StreamTransformer {
- const Converter();
- T convert(S input);
- Converter<S, dynamic> fuse(Converter<T, dynamic> other) {
- return new _FusedConverter<S, T, dynamic>(this, other);
+ abstract class Converter<S, T> implements StreamTransformer {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) {
- throw new UnsupportedError(
- "This converter does not support chunked conversions: $this");
+ ChunkedConversionSink startChunkedConversion(Sink 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 bind(Stream source) {
+ return new Stream.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) => DDC$RT.cast(__x4, dynamic, T, "CastGeneral",
- """line 58, column 25 of dart:convert/converter.dart: """, __x4 is T,
- false))(_second.convert(_first.convert(input)));
- ChunkedConversionSink startChunkedConversion(Sink sink) {
- return _first.startChunkedConversion(_second.startChunkedConversion(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) => DDC$RT.cast(__x4, dynamic, T, "CastGeneral", """line 58, column 25 of dart:convert/converter.dart: """, __x4 is T, false))(_second.convert(_first.convert(input)));
+ ChunkedConversionSink startChunkedConversion(Sink sink) {
+return _first.startChunkedConversion(_second.startChunkedConversion(sink));
+}
}

Powered by Google App Engine
This is Rietveld 408576698