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

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

Issue 1059763003: Inference casts to dynamic, fuzzy types handled (Closed) Base URL: git@github.com:dart-lang/dart-dev-compiler.git@master
Patch Set: 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 unified diff | Download patch
OLDNEW
1 part of dart.convert; 1 part of dart.convert;
2 class JsonUnsupportedObjectError extends Error {final unsupportedObject; 2 class JsonUnsupportedObjectError extends Error {final unsupportedObject;
3 final cause; 3 final cause;
4 JsonUnsupportedObjectError(this.unsupportedObject, { 4 JsonUnsupportedObjectError(this.unsupportedObject, {
5 this.cause} 5 this.cause}
6 ); 6 );
7 String toString() { 7 String toString() {
8 if (cause != null) { 8 if (cause != null) {
9 return "Converting object to an encodable object failed."; 9 return "Converting object to an encodable object failed.";
10 } 10 }
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 for (int i = 1; i < list.length; i++) { 325 for (int i = 1; i < list.length; i++) {
326 writeString(','); 326 writeString(',');
327 writeObject(list[i]); 327 writeObject(list[i]);
328 } 328 }
329 } 329 }
330 writeString(']'); 330 writeString(']');
331 } 331 }
332 void writeMap(Map<String, Object> map) { 332 void writeMap(Map<String, Object> map) {
333 writeString('{'); 333 writeString('{');
334 String separator = '"'; 334 String separator = '"';
335 map.forEach(((__x21) => DEVC$RT.cast(__x21, __t18, __t15, "InferableClosure", " ""line 721, column 17 of dart:convert/json.dart: """, __x21 is __t15, false))((S tring key, value) { 335 map.forEach((String key, value) {
336 writeString(separator); 336 writeString(separator);
337 separator = ',"'; 337 separator = ',"';
338 writeStringContent(key); 338 writeStringContent(key);
339 writeString('":'); 339 writeString('":');
340 writeObject(value); 340 writeObject(value);
341 } 341 }
342 )); 342 );
343 writeString('}'); 343 writeString('}');
344 } 344 }
345 } 345 }
346 abstract class _JsonPrettyPrintMixin implements _JsonStringifier {int _indentLe vel = 0; 346 abstract class _JsonPrettyPrintMixin implements _JsonStringifier {int _indentLe vel = 0;
347 void writeIndentation(indentLevel); 347 void writeIndentation(indentLevel);
348 void writeList(List list) { 348 void writeList(List list) {
349 if (list.isEmpty) { 349 if (list.isEmpty) {
350 writeString('[]'); 350 writeString('[]');
351 } 351 }
352 else { 352 else {
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
539 for (int i = 0; i < indentLength; i++) { 539 for (int i = 0; i < indentLength; i++) {
540 writeByte(indent[i]); 540 writeByte(indent[i]);
541 } 541 }
542 } 542 }
543 } 543 }
544 } 544 }
545 } 545 }
546 typedef Object __t6(Object __u7); 546 typedef Object __t6(Object __u7);
547 typedef dynamic __t8(dynamic __u9); 547 typedef dynamic __t8(dynamic __u9);
548 typedef dynamic __t11(Object __u12); 548 typedef dynamic __t11(Object __u12);
549 typedef void __t15(String __u16, Object __u17);
550 typedef dynamic __t18(String __u19, dynamic __u20);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698