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

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

Issue 959913003: cleanup patch generation to preseve comments and remove @patch (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
« no previous file with comments | « test/dart_codegen/expect/convert/json.dart ('k') | test/dart_codegen/expect/core/bool.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 part of dart.convert; 1 part of dart.convert;
2 2
3 const int UNICODE_REPLACEMENT_CHARACTER_RUNE = 0xFFFD; 3 const int UNICODE_REPLACEMENT_CHARACTER_RUNE = 0xFFFD;
4 const int UNICODE_BOM_CHARACTER_RUNE = 0xFEFF; 4 const int UNICODE_BOM_CHARACTER_RUNE = 0xFEFF;
5 const Utf8Codec UTF8 = const Utf8Codec(); 5 const Utf8Codec UTF8 = const Utf8Codec();
6 class Utf8Codec extends Encoding { 6 class Utf8Codec extends Encoding {
7 final bool _allowMalformed; 7 final bool _allowMalformed;
8 const Utf8Codec({bool allowMalformed: false}) 8 const Utf8Codec({bool allowMalformed: false})
9 : _allowMalformed = allowMalformed; 9 : _allowMalformed = allowMalformed;
10 String get name => "utf-8"; 10 String get name => "utf-8";
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 } else { 176 } else {
177 stringSink = new StringConversionSink.from(sink); 177 stringSink = new StringConversionSink.from(sink);
178 } 178 }
179 return stringSink.asUtf8Sink(_allowMalformed); 179 return stringSink.asUtf8Sink(_allowMalformed);
180 } 180 }
181 Stream<String> bind(Stream<List<int>> stream) => ((__x31) => DDC$RT.cast( 181 Stream<String> bind(Stream<List<int>> stream) => ((__x31) => DDC$RT.cast(
182 __x31, DDC$RT.type((DDC$async$.Stream<dynamic> _) {}), 182 __x31, DDC$RT.type((DDC$async$.Stream<dynamic> _) {}),
183 DDC$RT.type((DDC$async$.Stream<String> _) {}), "CastDynamic", 183 DDC$RT.type((DDC$async$.Stream<String> _) {}), "CastDynamic",
184 """line 361, column 52 of dart:convert/utf.dart: """, 184 """line 361, column 52 of dart:convert/utf.dart: """,
185 __x31 is DDC$async$.Stream<String>, false))(super.bind(stream)); 185 __x31 is DDC$async$.Stream<String>, false))(super.bind(stream));
186 @patch Converter<List<int>, dynamic> fuse(Converter<String, dynamic> next) { 186 Converter<List<int>, dynamic> fuse(Converter<String, dynamic> next) {
187 return super.fuse(next); 187 return super.fuse(next);
188 } 188 }
189 } 189 }
190 const int _ONE_BYTE_LIMIT = 0x7f; 190 const int _ONE_BYTE_LIMIT = 0x7f;
191 const int _TWO_BYTE_LIMIT = 0x7ff; 191 const int _TWO_BYTE_LIMIT = 0x7ff;
192 const int _THREE_BYTE_LIMIT = 0xffff; 192 const int _THREE_BYTE_LIMIT = 0xffff;
193 const int _FOUR_BYTE_LIMIT = 0x10ffff; 193 const int _FOUR_BYTE_LIMIT = 0x10ffff;
194 const int _SURROGATE_MASK = 0xF800; 194 const int _SURROGATE_MASK = 0xF800;
195 const int _SURROGATE_TAG_MASK = 0xFC00; 195 const int _SURROGATE_TAG_MASK = 0xFC00;
196 const int _SURROGATE_VALUE_MASK = 0x3FF; 196 const int _SURROGATE_VALUE_MASK = 0x3FF;
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 } 342 }
343 break loop; 343 break loop;
344 } 344 }
345 if (expectedUnits > 0) { 345 if (expectedUnits > 0) {
346 _value = value; 346 _value = value;
347 _expectedUnits = expectedUnits; 347 _expectedUnits = expectedUnits;
348 _extraUnits = extraUnits; 348 _extraUnits = extraUnits;
349 } 349 }
350 } 350 }
351 } 351 }
OLDNEW
« no previous file with comments | « test/dart_codegen/expect/convert/json.dart ('k') | test/dart_codegen/expect/core/bool.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698