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

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

Issue 959003003: Typecheck constructor initializers properly (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Rebase Created 5 years, 9 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 const AsciiCodec ASCII = const AsciiCodec(); 2 const AsciiCodec ASCII = const AsciiCodec();
3 const int _ASCII_MASK = 0x7F; 3 const int _ASCII_MASK = 0x7F;
4 class AsciiCodec extends Encoding {final bool _allowInvalid; 4 class AsciiCodec extends Encoding {final bool _allowInvalid;
5 const AsciiCodec({ 5 const AsciiCodec({
6 bool allowInvalid : false} 6 bool allowInvalid : false}
7 ) : _allowInvalid = allowInvalid; 7 ) : _allowInvalid = allowInvalid;
8 String get name => "us-ascii"; 8 String get name => "us-ascii";
9 String decode(List<int> bytes, { 9 String decode(List<int> bytes, {
10 bool allowInvalid} 10 bool allowInvalid}
(...skipping 27 matching lines...) Expand all
38 return DDC$RT.cast(result, DDC$RT.type((List<dynamic> _) { 38 return DDC$RT.cast(result, DDC$RT.type((List<dynamic> _) {
39 } 39 }
40 ), DDC$RT.type((List<int> _) { 40 ), DDC$RT.type((List<int> _) {
41 } 41 }
42 ), "CastDynamic", """line 96, column 12 of dart:convert/ascii.dart: """, result is List<int>, false); 42 ), "CastDynamic", """line 96, column 12 of dart:convert/ascii.dart: """, result is List<int>, false);
43 } 43 }
44 StringConversionSink startChunkedConversion(Sink<List<int>> sink) { 44 StringConversionSink startChunkedConversion(Sink<List<int>> sink) {
45 if (sink is! ByteConversionSink) { 45 if (sink is! ByteConversionSink) {
46 sink = new ByteConversionSink.from(sink); 46 sink = new ByteConversionSink.from(sink);
47 } 47 }
48 return new _UnicodeSubsetEncoderSink(_subsetMask, sink); 48 return new _UnicodeSubsetEncoderSink(_subsetMask, DDC$RT.cast(sink, DDC$RT.type ((Sink<List<int>> _) {
49 }
50 ), ByteConversionSink, "CastGeneral", """line 109, column 55 of dart:convert/asc ii.dart: """, sink is ByteConversionSink, true));
49 } 51 }
50 Stream<List<int>> bind(Stream<String> stream) => ((__x0) => DDC$RT.cast(__x0, D DC$RT.type((DDC$async$.Stream<dynamic> _) { 52 Stream<List<int>> bind(Stream<String> stream) => ((__x0) => DDC$RT.cast(__x0, D DC$RT.type((DDC$async$.Stream<dynamic> _) {
51 } 53 }
52 ), DDC$RT.type((DDC$async$.Stream<List<int>> _) { 54 ), DDC$RT.type((DDC$async$.Stream<List<int>> _) {
53 } 55 }
54 ), "CastDynamic", """line 113, column 52 of dart:convert/ascii.dart: """, __x0 i s DDC$async$.Stream<List<int>>, false))(super.bind(stream)); 56 ), "CastDynamic", """line 113, column 52 of dart:convert/ascii.dart: """, __x0 i s DDC$async$.Stream<List<int>>, false))(super.bind(stream));
55 } 57 }
56 class AsciiEncoder extends _UnicodeSubsetEncoder {const AsciiEncoder() : super( _ASCII_MASK); 58 class AsciiEncoder extends _UnicodeSubsetEncoder {const AsciiEncoder() : super( _ASCII_MASK);
57 } 59 }
58 class _UnicodeSubsetEncoderSink extends StringConversionSinkBase {final ByteCon versionSink _sink; 60 class _UnicodeSubsetEncoderSink extends StringConversionSinkBase {final ByteCon versionSink _sink;
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 RangeError.checkValidRange(start, end, length); 174 RangeError.checkValidRange(start, end, length);
173 if (start < end) { 175 if (start < end) {
174 if (start != 0 || end != length) { 176 if (start != 0 || end != length) {
175 source = source.sublist(start, end); 177 source = source.sublist(start, end);
176 } 178 }
177 add(source); 179 add(source);
178 } 180 }
179 if (isLast) close(); 181 if (isLast) close();
180 } 182 }
181 } 183 }
OLDNEW
« no previous file with comments | « test/dart_codegen/expect/collection/splay_tree.dart ('k') | test/dart_codegen/expect/convert/byte_conversion.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698