| OLD | NEW |
| 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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 static const int CHAR_0 = 0x30; | 195 static const int CHAR_0 = 0x30; |
| 196 static const int BACKSLASH = 0x5c; | 196 static const int BACKSLASH = 0x5c; |
| 197 static const int CHAR_b = 0x62; | 197 static const int CHAR_b = 0x62; |
| 198 static const int CHAR_f = 0x66; | 198 static const int CHAR_f = 0x66; |
| 199 static const int CHAR_n = 0x6e; | 199 static const int CHAR_n = 0x6e; |
| 200 static const int CHAR_r = 0x72; | 200 static const int CHAR_r = 0x72; |
| 201 static const int CHAR_t = 0x74; | 201 static const int CHAR_t = 0x74; |
| 202 static const int CHAR_u = 0x75; | 202 static const int CHAR_u = 0x75; |
| 203 final List _seen = new List(); | 203 final List _seen = new List(); |
| 204 final Function _toEncodable; | 204 final Function _toEncodable; |
| 205 _JsonStringifier(Object _toEncodable(Object o)) : _toEncodable = ((__x14) => DE
VC$RT.cast(__x14, dynamic, Function, "DynamicCast", """line 547, column 24 of da
rt:convert/json.dart: """, __x14 is Function, true))((_toEncodable != null) ? _t
oEncodable : _defaultToEncodable); | 205 _JsonStringifier(Object _toEncodable(Object o)) : _toEncodable = (_toEncodable
!= null) ? _toEncodable : _defaultToEncodable; |
| 206 void writeString(String characters); | 206 void writeString(String characters); |
| 207 void writeStringSlice(String characters, int start, int end); | 207 void writeStringSlice(String characters, int start, int end); |
| 208 void writeCharCode(int charCode); | 208 void writeCharCode(int charCode); |
| 209 void writeNumber(num number); | 209 void writeNumber(num number); |
| 210 static int hexDigit(int x) => x < 10 ? 48 + x : 87 + x; | 210 static int hexDigit(int x) => x < 10 ? 48 + x : 87 + x; |
| 211 void writeStringContent(String s) { | 211 void writeStringContent(String s) { |
| 212 int offset = 0; | 212 int offset = 0; |
| 213 final int length = s.length; | 213 final int length = s.length; |
| 214 for (int i = 0; i < length; i++) { | 214 for (int i = 0; i < length; i++) { |
| 215 int charCode = s.codeUnitAt(i); | 215 int charCode = s.codeUnitAt(i); |
| (...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 __CastType6(Object __u7); | 546 typedef Object __CastType6(Object __u7); |
| 547 typedef dynamic __CastType8(dynamic __u9); | 547 typedef dynamic __CastType8(dynamic __u9); |
| 548 typedef dynamic __CastType11(Object __u12); | 548 typedef dynamic __CastType11(Object __u12); |
| OLD | NEW |