| OLD | NEW |
| 1 var convert = dart.defineLibrary(convert, {}); | 1 var convert = dart.defineLibrary(convert, {}); |
| 2 var core = dart.import(core); | 2 var core = dart.import(core); |
| 3 var async = dart.import(async); | 3 var async = dart.import(async); |
| 4 var typed_data = dart.import(typed_data); | 4 var typed_data = dart.import(typed_data); |
| 5 var _internal = dart.import(_internal); | 5 var _internal = dart.import(_internal); |
| 6 var collection = dart.import(collection); | 6 var collection = dart.import(collection); |
| 7 (function(exports, core, async, typed_data, _internal, collection) { | 7 (function(exports, core, async, typed_data, _internal, collection) { |
| 8 'use strict'; | 8 'use strict'; |
| 9 let Codec$ = dart.generic(function(S, T) { | 9 let Codec$ = dart.generic(function(S, T) { |
| 10 class Codec extends core.Object { | 10 class Codec extends core.Object { |
| (...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 353 if (dart.notNull(start) < dart.notNull(end)) { | 353 if (dart.notNull(start) < dart.notNull(end)) { |
| 354 this[_utf8Sink].addSlice(source, start, end, isLast); | 354 this[_utf8Sink].addSlice(source, start, end, isLast); |
| 355 } else if (isLast) { | 355 } else if (isLast) { |
| 356 this.close(); | 356 this.close(); |
| 357 } | 357 } |
| 358 } | 358 } |
| 359 } | 359 } |
| 360 dart.setSignature(_ErrorHandlingAsciiDecoderSink, { | 360 dart.setSignature(_ErrorHandlingAsciiDecoderSink, { |
| 361 methods: () => ({ | 361 methods: () => ({ |
| 362 close: dart.functionType(dart.void, []), | 362 close: dart.functionType(dart.void, []), |
| 363 add: dart.functionType(dart.void, [core.List$(core.int)]), | 363 add: dart.functionType(dart.void, [core.List$(core.int)]) |
| 364 addSlice: dart.functionType(dart.void, [core.List$(core.int), core.int, co
re.int, core.bool]) | |
| 365 }) | 364 }) |
| 366 }); | 365 }); |
| 367 class _SimpleAsciiDecoderSink extends ByteConversionSinkBase { | 366 class _SimpleAsciiDecoderSink extends ByteConversionSinkBase { |
| 368 _SimpleAsciiDecoderSink(sink) { | 367 _SimpleAsciiDecoderSink(sink) { |
| 369 this[_sink] = sink; | 368 this[_sink] = sink; |
| 370 } | 369 } |
| 371 close() { | 370 close() { |
| 372 this[_sink].close(); | 371 this[_sink].close(); |
| 373 } | 372 } |
| 374 add(source) { | 373 add(source) { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 388 } | 387 } |
| 389 this.add(source); | 388 this.add(source); |
| 390 } | 389 } |
| 391 if (isLast) | 390 if (isLast) |
| 392 this.close(); | 391 this.close(); |
| 393 } | 392 } |
| 394 } | 393 } |
| 395 dart.setSignature(_SimpleAsciiDecoderSink, { | 394 dart.setSignature(_SimpleAsciiDecoderSink, { |
| 396 methods: () => ({ | 395 methods: () => ({ |
| 397 close: dart.functionType(dart.void, []), | 396 close: dart.functionType(dart.void, []), |
| 398 add: dart.functionType(dart.void, [core.List$(core.int)]), | 397 add: dart.functionType(dart.void, [core.List$(core.int)]) |
| 399 addSlice: dart.functionType(dart.void, [core.List$(core.int), core.int, co
re.int, core.bool]) | |
| 400 }) | 398 }) |
| 401 }); | 399 }); |
| 402 class _ByteAdapterSink extends ByteConversionSinkBase { | 400 class _ByteAdapterSink extends ByteConversionSinkBase { |
| 403 _ByteAdapterSink(sink) { | 401 _ByteAdapterSink(sink) { |
| 404 this[_sink] = sink; | 402 this[_sink] = sink; |
| 405 } | 403 } |
| 406 add(chunk) { | 404 add(chunk) { |
| 407 return this[_sink].add(chunk); | 405 return this[_sink].add(chunk); |
| 408 } | 406 } |
| 409 close() { | 407 close() { |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 625 this.escapeLtGt = escapeLtGt; | 623 this.escapeLtGt = escapeLtGt; |
| 626 this.escapeQuot = escapeQuot; | 624 this.escapeQuot = escapeQuot; |
| 627 this.escapeApos = escapeApos; | 625 this.escapeApos = escapeApos; |
| 628 this.escapeSlash = escapeSlash; | 626 this.escapeSlash = escapeSlash; |
| 629 } | 627 } |
| 630 toString() { | 628 toString() { |
| 631 return this[_name]; | 629 return this[_name]; |
| 632 } | 630 } |
| 633 } | 631 } |
| 634 dart.defineNamedConstructor(HtmlEscapeMode, '_'); | 632 dart.defineNamedConstructor(HtmlEscapeMode, '_'); |
| 635 dart.setSignature(HtmlEscapeMode, { | 633 dart.setSignature(HtmlEscapeMode, {}); |
| 636 methods: () => ({toString: dart.functionType(core.String, [])}) | |
| 637 }); | |
| 638 HtmlEscapeMode.UNKNOWN = dart.const(new HtmlEscapeMode._('unknown', true, true
, true, true)); | 634 HtmlEscapeMode.UNKNOWN = dart.const(new HtmlEscapeMode._('unknown', true, true
, true, true)); |
| 639 let _convert = Symbol('_convert'); | 635 let _convert = Symbol('_convert'); |
| 640 class HtmlEscape extends Converter$(core.String, core.String) { | 636 class HtmlEscape extends Converter$(core.String, core.String) { |
| 641 HtmlEscape(mode) { | 637 HtmlEscape(mode) { |
| 642 if (mode === void 0) | 638 if (mode === void 0) |
| 643 mode = HtmlEscapeMode.UNKNOWN; | 639 mode = HtmlEscapeMode.UNKNOWN; |
| 644 this.mode = mode; | 640 this.mode = mode; |
| 645 super.Converter(); | 641 super.Converter(); |
| 646 } | 642 } |
| 647 convert(text) { | 643 convert(text) { |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 756 super.Error(); | 752 super.Error(); |
| 757 } | 753 } |
| 758 toString() { | 754 toString() { |
| 759 if (this.cause != null) { | 755 if (this.cause != null) { |
| 760 return "Converting object to an encodable object failed."; | 756 return "Converting object to an encodable object failed."; |
| 761 } else { | 757 } else { |
| 762 return "Converting object did not return an encodable object."; | 758 return "Converting object did not return an encodable object."; |
| 763 } | 759 } |
| 764 } | 760 } |
| 765 } | 761 } |
| 766 dart.setSignature(JsonUnsupportedObjectError, { | 762 dart.setSignature(JsonUnsupportedObjectError, {}); |
| 767 methods: () => ({toString: dart.functionType(core.String, [])}) | |
| 768 }); | |
| 769 class JsonCyclicError extends JsonUnsupportedObjectError { | 763 class JsonCyclicError extends JsonUnsupportedObjectError { |
| 770 JsonCyclicError(object) { | 764 JsonCyclicError(object) { |
| 771 super.JsonUnsupportedObjectError(object); | 765 super.JsonUnsupportedObjectError(object); |
| 772 } | 766 } |
| 773 toString() { | 767 toString() { |
| 774 return "Cyclic error in JSON stringify"; | 768 return "Cyclic error in JSON stringify"; |
| 775 } | 769 } |
| 776 } | 770 } |
| 777 dart.setSignature(JsonCyclicError, { | 771 dart.setSignature(JsonCyclicError, {}); |
| 778 methods: () => ({toString: dart.functionType(core.String, [])}) | |
| 779 }); | |
| 780 let _reviver = Symbol('_reviver'); | 772 let _reviver = Symbol('_reviver'); |
| 781 let _toEncodable$ = Symbol('_toEncodable'); | 773 let _toEncodable$ = Symbol('_toEncodable'); |
| 782 class JsonCodec extends Codec$(core.Object, core.String) { | 774 class JsonCodec extends Codec$(core.Object, core.String) { |
| 783 JsonCodec(opts) { | 775 JsonCodec(opts) { |
| 784 let reviver = opts && 'reviver' in opts ? opts.reviver : null; | 776 let reviver = opts && 'reviver' in opts ? opts.reviver : null; |
| 785 let toEncodable = opts && 'toEncodable' in opts ? opts.toEncodable : null; | 777 let toEncodable = opts && 'toEncodable' in opts ? opts.toEncodable : null; |
| 786 this[_reviver] = reviver; | 778 this[_reviver] = reviver; |
| 787 this[_toEncodable$] = toEncodable; | 779 this[_toEncodable$] = toEncodable; |
| 788 super.Codec(); | 780 super.Codec(); |
| 789 } | 781 } |
| (...skipping 806 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1596 } | 1588 } |
| 1597 if (isLast) { | 1589 if (isLast) { |
| 1598 this.close(); | 1590 this.close(); |
| 1599 } | 1591 } |
| 1600 } | 1592 } |
| 1601 } | 1593 } |
| 1602 dart.setSignature(_Latin1DecoderSink, { | 1594 dart.setSignature(_Latin1DecoderSink, { |
| 1603 methods: () => ({ | 1595 methods: () => ({ |
| 1604 close: dart.functionType(dart.void, []), | 1596 close: dart.functionType(dart.void, []), |
| 1605 add: dart.functionType(dart.void, [core.List$(core.int)]), | 1597 add: dart.functionType(dart.void, [core.List$(core.int)]), |
| 1606 [_addSliceToSink]: dart.functionType(dart.void, [core.List$(core.int), cor
e.int, core.int, core.bool]), | 1598 [_addSliceToSink]: dart.functionType(dart.void, [core.List$(core.int), cor
e.int, core.int, core.bool]) |
| 1607 addSlice: dart.functionType(dart.void, [core.List$(core.int), core.int, co
re.int, core.bool]) | |
| 1608 }) | 1599 }) |
| 1609 }); | 1600 }); |
| 1610 class _Latin1AllowInvalidDecoderSink extends _Latin1DecoderSink { | 1601 class _Latin1AllowInvalidDecoderSink extends _Latin1DecoderSink { |
| 1611 _Latin1AllowInvalidDecoderSink(sink) { | 1602 _Latin1AllowInvalidDecoderSink(sink) { |
| 1612 super._Latin1DecoderSink(sink); | 1603 super._Latin1DecoderSink(sink); |
| 1613 } | 1604 } |
| 1614 addSlice(source, start, end, isLast) { | 1605 addSlice(source, start, end, isLast) { |
| 1615 core.RangeError.checkValidRange(start, end, source[core.$length]); | 1606 core.RangeError.checkValidRange(start, end, source[core.$length]); |
| 1616 for (let i = start; dart.notNull(i) < dart.notNull(end); i = dart.notNull(
i) + 1) { | 1607 for (let i = start; dart.notNull(i) < dart.notNull(end); i = dart.notNull(
i) + 1) { |
| 1617 let char = source[core.$get](i); | 1608 let char = source[core.$get](i); |
| 1618 if (dart.notNull(char) > dart.notNull(_LATIN1_MASK) || dart.notNull(char
) < 0) { | 1609 if (dart.notNull(char) > dart.notNull(_LATIN1_MASK) || dart.notNull(char
) < 0) { |
| 1619 if (dart.notNull(i) > dart.notNull(start)) | 1610 if (dart.notNull(i) > dart.notNull(start)) |
| 1620 this[_addSliceToSink](source, start, i, false); | 1611 this[_addSliceToSink](source, start, i, false); |
| 1621 this[_addSliceToSink](dart.const(dart.setType([65533], core.List$(core
.int))), 0, 1, false); | 1612 this[_addSliceToSink](dart.const(dart.setType([65533], core.List$(core
.int))), 0, 1, false); |
| 1622 start = dart.notNull(i) + 1; | 1613 start = dart.notNull(i) + 1; |
| 1623 } | 1614 } |
| 1624 } | 1615 } |
| 1625 if (dart.notNull(start) < dart.notNull(end)) { | 1616 if (dart.notNull(start) < dart.notNull(end)) { |
| 1626 this[_addSliceToSink](source, start, end, isLast); | 1617 this[_addSliceToSink](source, start, end, isLast); |
| 1627 } | 1618 } |
| 1628 if (isLast) { | 1619 if (isLast) { |
| 1629 this.close(); | 1620 this.close(); |
| 1630 } | 1621 } |
| 1631 } | 1622 } |
| 1632 } | 1623 } |
| 1633 dart.setSignature(_Latin1AllowInvalidDecoderSink, { | 1624 dart.setSignature(_Latin1AllowInvalidDecoderSink, {}); |
| 1634 methods: () => ({addSlice: dart.functionType(dart.void, [core.List$(core.int
), core.int, core.int, core.bool])}) | |
| 1635 }); | |
| 1636 class LineSplitter extends Converter$(core.String, core.List$(core.String)) { | 1625 class LineSplitter extends Converter$(core.String, core.List$(core.String)) { |
| 1637 LineSplitter() { | 1626 LineSplitter() { |
| 1638 super.Converter(); | 1627 super.Converter(); |
| 1639 } | 1628 } |
| 1640 convert(data) { | 1629 convert(data) { |
| 1641 let lines = new (core.List$(core.String))(); | 1630 let lines = new (core.List$(core.String))(); |
| 1642 _LineSplitterSink._addSlice(data, 0, data.length, true, dart.bind(lines, c
ore.$add)); | 1631 _LineSplitterSink._addSlice(data, 0, data.length, true, dart.bind(lines, c
ore.$add)); |
| 1643 return lines; | 1632 return lines; |
| 1644 } | 1633 } |
| 1645 startChunkedConversion(sink) { | 1634 startChunkedConversion(sink) { |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1871 asUtf8Sink(allowMalformed) { | 1860 asUtf8Sink(allowMalformed) { |
| 1872 return new _Utf8StringSinkAdapter(this, this[_stringSink], allowMalformed)
; | 1861 return new _Utf8StringSinkAdapter(this, this[_stringSink], allowMalformed)
; |
| 1873 } | 1862 } |
| 1874 asStringSink() { | 1863 asStringSink() { |
| 1875 return new ClosableStringSink.fromStringSink(this[_stringSink], dart.bind(
this, 'close')); | 1864 return new ClosableStringSink.fromStringSink(this[_stringSink], dart.bind(
this, 'close')); |
| 1876 } | 1865 } |
| 1877 } | 1866 } |
| 1878 dart.setSignature(_StringSinkConversionSink, { | 1867 dart.setSignature(_StringSinkConversionSink, { |
| 1879 methods: () => ({ | 1868 methods: () => ({ |
| 1880 close: dart.functionType(dart.void, []), | 1869 close: dart.functionType(dart.void, []), |
| 1881 addSlice: dart.functionType(dart.void, [core.String, core.int, core.int, c
ore.bool]), | 1870 addSlice: dart.functionType(dart.void, [core.String, core.int, core.int, c
ore.bool]) |
| 1882 add: dart.functionType(dart.void, [core.String]), | |
| 1883 asUtf8Sink: dart.functionType(ByteConversionSink, [core.bool]), | |
| 1884 asStringSink: dart.functionType(ClosableStringSink, []) | |
| 1885 }) | 1871 }) |
| 1886 }); | 1872 }); |
| 1887 class _StringCallbackSink extends _StringSinkConversionSink { | 1873 class _StringCallbackSink extends _StringSinkConversionSink { |
| 1888 _StringCallbackSink(callback) { | 1874 _StringCallbackSink(callback) { |
| 1889 this[_callback] = callback; | 1875 this[_callback] = callback; |
| 1890 super._StringSinkConversionSink(new core.StringBuffer()); | 1876 super._StringSinkConversionSink(new core.StringBuffer()); |
| 1891 } | 1877 } |
| 1892 close() { | 1878 close() { |
| 1893 let buffer = dart.as(this[_stringSink], core.StringBuffer); | 1879 let buffer = dart.as(this[_stringSink], core.StringBuffer); |
| 1894 let accumulated = dart.toString(buffer); | 1880 let accumulated = dart.toString(buffer); |
| 1895 buffer.clear(); | 1881 buffer.clear(); |
| 1896 this[_callback](accumulated); | 1882 this[_callback](accumulated); |
| 1897 } | 1883 } |
| 1898 asUtf8Sink(allowMalformed) { | 1884 asUtf8Sink(allowMalformed) { |
| 1899 return new _Utf8StringSinkAdapter(this, this[_stringSink], allowMalformed)
; | 1885 return new _Utf8StringSinkAdapter(this, this[_stringSink], allowMalformed)
; |
| 1900 } | 1886 } |
| 1901 } | 1887 } |
| 1902 dart.setSignature(_StringCallbackSink, { | 1888 dart.setSignature(_StringCallbackSink, {}); |
| 1903 methods: () => ({ | |
| 1904 close: dart.functionType(dart.void, []), | |
| 1905 asUtf8Sink: dart.functionType(ByteConversionSink, [core.bool]) | |
| 1906 }) | |
| 1907 }); | |
| 1908 class _StringAdapterSink extends StringConversionSinkBase { | 1889 class _StringAdapterSink extends StringConversionSinkBase { |
| 1909 _StringAdapterSink(sink) { | 1890 _StringAdapterSink(sink) { |
| 1910 this[_sink] = sink; | 1891 this[_sink] = sink; |
| 1911 } | 1892 } |
| 1912 add(str) { | 1893 add(str) { |
| 1913 return this[_sink].add(str); | 1894 return this[_sink].add(str); |
| 1914 } | 1895 } |
| 1915 addSlice(str, start, end, isLast) { | 1896 addSlice(str, start, end, isLast) { |
| 1916 if (start == 0 && end == str.length) { | 1897 if (start == 0 && end == str.length) { |
| 1917 this.add(str); | 1898 this.add(str); |
| 1918 } else { | 1899 } else { |
| 1919 this.add(str.substring(start, end)); | 1900 this.add(str.substring(start, end)); |
| 1920 } | 1901 } |
| 1921 if (isLast) | 1902 if (isLast) |
| 1922 this.close(); | 1903 this.close(); |
| 1923 } | 1904 } |
| 1924 close() { | 1905 close() { |
| 1925 return this[_sink].close(); | 1906 return this[_sink].close(); |
| 1926 } | 1907 } |
| 1927 } | 1908 } |
| 1928 dart.setSignature(_StringAdapterSink, { | 1909 dart.setSignature(_StringAdapterSink, { |
| 1929 methods: () => ({ | 1910 methods: () => ({ |
| 1930 add: dart.functionType(dart.void, [core.String]), | |
| 1931 addSlice: dart.functionType(dart.void, [core.String, core.int, core.int, c
ore.bool]), | 1911 addSlice: dart.functionType(dart.void, [core.String, core.int, core.int, c
ore.bool]), |
| 1932 close: dart.functionType(dart.void, []) | 1912 close: dart.functionType(dart.void, []) |
| 1933 }) | 1913 }) |
| 1934 }); | 1914 }); |
| 1935 let _decoder = Symbol('_decoder'); | 1915 let _decoder = Symbol('_decoder'); |
| 1936 class _Utf8StringSinkAdapter extends ByteConversionSink { | 1916 class _Utf8StringSinkAdapter extends ByteConversionSink { |
| 1937 _Utf8StringSinkAdapter(sink, stringSink, allowMalformed) { | 1917 _Utf8StringSinkAdapter(sink, stringSink, allowMalformed) { |
| 1938 this[_sink] = sink; | 1918 this[_sink] = sink; |
| 1939 this[_decoder] = new _Utf8Decoder(stringSink, allowMalformed); | 1919 this[_decoder] = new _Utf8Decoder(stringSink, allowMalformed); |
| 1940 super.ByteConversionSink(); | 1920 super.ByteConversionSink(); |
| (...skipping 784 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2725 methods: () => ({ | 2705 methods: () => ({ |
| 2726 get: dart.functionType(dart.dynamic, [core.Object]), | 2706 get: dart.functionType(dart.dynamic, [core.Object]), |
| 2727 set: dart.functionType(dart.void, [dart.dynamic, dart.dynamic]), | 2707 set: dart.functionType(dart.void, [dart.dynamic, dart.dynamic]), |
| 2728 addAll: dart.functionType(dart.void, [core.Map]), | 2708 addAll: dart.functionType(dart.void, [core.Map]), |
| 2729 containsValue: dart.functionType(core.bool, [core.Object]), | 2709 containsValue: dart.functionType(core.bool, [core.Object]), |
| 2730 containsKey: dart.functionType(core.bool, [core.Object]), | 2710 containsKey: dart.functionType(core.bool, [core.Object]), |
| 2731 putIfAbsent: dart.functionType(dart.dynamic, [dart.dynamic, dart.functionT
ype(dart.dynamic, [])]), | 2711 putIfAbsent: dart.functionType(dart.dynamic, [dart.dynamic, dart.functionT
ype(dart.dynamic, [])]), |
| 2732 remove: dart.functionType(dart.dynamic, [core.Object]), | 2712 remove: dart.functionType(dart.dynamic, [core.Object]), |
| 2733 clear: dart.functionType(dart.void, []), | 2713 clear: dart.functionType(dart.void, []), |
| 2734 forEach: dart.functionType(dart.void, [dart.functionType(dart.void, [dart.
dynamic, dart.dynamic])]), | 2714 forEach: dart.functionType(dart.void, [dart.functionType(dart.void, [dart.
dynamic, dart.dynamic])]), |
| 2735 toString: dart.functionType(core.String, []), | |
| 2736 [_computeKeys]: dart.functionType(core.List$(core.String), []), | 2715 [_computeKeys]: dart.functionType(core.List$(core.String), []), |
| 2737 [_upgrade]: dart.functionType(core.Map, []), | 2716 [_upgrade]: dart.functionType(core.Map, []), |
| 2738 [_process]: dart.functionType(dart.dynamic, [core.String]) | 2717 [_process]: dart.functionType(dart.dynamic, [core.String]) |
| 2739 }), | 2718 }), |
| 2740 statics: () => ({ | 2719 statics: () => ({ |
| 2741 _hasProperty: dart.functionType(core.bool, [dart.dynamic, core.String]), | 2720 _hasProperty: dart.functionType(core.bool, [dart.dynamic, core.String]), |
| 2742 _getProperty: dart.functionType(dart.dynamic, [dart.dynamic, core.String])
, | 2721 _getProperty: dart.functionType(dart.dynamic, [dart.dynamic, core.String])
, |
| 2743 _setProperty: dart.functionType(dart.dynamic, [dart.dynamic, core.String,
dart.dynamic]), | 2722 _setProperty: dart.functionType(dart.dynamic, [dart.dynamic, core.String,
dart.dynamic]), |
| 2744 _getPropertyNames: dart.functionType(core.List, [dart.dynamic]), | 2723 _getPropertyNames: dart.functionType(core.List, [dart.dynamic]), |
| 2745 _isUnprocessed: dart.functionType(core.bool, [dart.dynamic]), | 2724 _isUnprocessed: dart.functionType(core.bool, [dart.dynamic]), |
| (...skipping 14 matching lines...) Expand all Loading... |
| 2760 return this[_parent][_isUpgraded] ? dart.as(this[_parent].keys[core.$eleme
ntAt](index), core.String) : this[_parent][_computeKeys]()[core.$get](index); | 2739 return this[_parent][_isUpgraded] ? dart.as(this[_parent].keys[core.$eleme
ntAt](index), core.String) : this[_parent][_computeKeys]()[core.$get](index); |
| 2761 } | 2740 } |
| 2762 get [core.$iterator]() { | 2741 get [core.$iterator]() { |
| 2763 return this[_parent][_isUpgraded] ? this[_parent].keys[core.$iterator] : t
his[_parent][_computeKeys]()[core.$iterator]; | 2742 return this[_parent][_isUpgraded] ? this[_parent].keys[core.$iterator] : t
his[_parent][_computeKeys]()[core.$iterator]; |
| 2764 } | 2743 } |
| 2765 [core.$contains](key) { | 2744 [core.$contains](key) { |
| 2766 return this[_parent].containsKey(key); | 2745 return this[_parent].containsKey(key); |
| 2767 } | 2746 } |
| 2768 } | 2747 } |
| 2769 dart.setSignature(_JsonMapKeyIterable, { | 2748 dart.setSignature(_JsonMapKeyIterable, { |
| 2770 methods: () => ({ | 2749 methods: () => ({[core.$elementAt]: dart.functionType(core.String, [core.int
])}) |
| 2771 [core.$elementAt]: dart.functionType(core.String, [core.int]), | |
| 2772 [core.$contains]: dart.functionType(core.bool, [core.Object]) | |
| 2773 }) | |
| 2774 }); | 2750 }); |
| 2775 class _JsonDecoderSink extends _StringSinkConversionSink { | 2751 class _JsonDecoderSink extends _StringSinkConversionSink { |
| 2776 _JsonDecoderSink(reviver, sink) { | 2752 _JsonDecoderSink(reviver, sink) { |
| 2777 this[_reviver] = reviver; | 2753 this[_reviver] = reviver; |
| 2778 this[_sink] = sink; | 2754 this[_sink] = sink; |
| 2779 super._StringSinkConversionSink(new core.StringBuffer()); | 2755 super._StringSinkConversionSink(new core.StringBuffer()); |
| 2780 } | 2756 } |
| 2781 close() { | 2757 close() { |
| 2782 super.close(); | 2758 super.close(); |
| 2783 let buffer = dart.as(this[_stringSink], core.StringBuffer); | 2759 let buffer = dart.as(this[_stringSink], core.StringBuffer); |
| 2784 let accumulated = dart.toString(buffer); | 2760 let accumulated = dart.toString(buffer); |
| 2785 buffer.clear(); | 2761 buffer.clear(); |
| 2786 let decoded = _parseJson(accumulated, this[_reviver]); | 2762 let decoded = _parseJson(accumulated, this[_reviver]); |
| 2787 this[_sink].add(decoded); | 2763 this[_sink].add(decoded); |
| 2788 this[_sink].close(); | 2764 this[_sink].close(); |
| 2789 } | 2765 } |
| 2790 } | 2766 } |
| 2791 dart.setSignature(_JsonDecoderSink, { | 2767 dart.setSignature(_JsonDecoderSink, {}); |
| 2792 methods: () => ({close: dart.functionType(dart.void, [])}) | |
| 2793 }); | |
| 2794 // Exports: | 2768 // Exports: |
| 2795 exports.Codec$ = Codec$; | 2769 exports.Codec$ = Codec$; |
| 2796 exports.Codec = Codec; | 2770 exports.Codec = Codec; |
| 2797 exports.Encoding = Encoding; | 2771 exports.Encoding = Encoding; |
| 2798 exports.AsciiCodec = AsciiCodec; | 2772 exports.AsciiCodec = AsciiCodec; |
| 2799 exports.ASCII = ASCII; | 2773 exports.ASCII = ASCII; |
| 2800 exports.Converter$ = Converter$; | 2774 exports.Converter$ = Converter$; |
| 2801 exports.Converter = Converter; | 2775 exports.Converter = Converter; |
| 2802 exports.AsciiEncoder = AsciiEncoder; | 2776 exports.AsciiEncoder = AsciiEncoder; |
| 2803 exports.StringConversionSinkMixin = StringConversionSinkMixin; | 2777 exports.StringConversionSinkMixin = StringConversionSinkMixin; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 2824 exports.LineSplitter = LineSplitter; | 2798 exports.LineSplitter = LineSplitter; |
| 2825 exports.StringConversionSink = StringConversionSink; | 2799 exports.StringConversionSink = StringConversionSink; |
| 2826 exports.ClosableStringSink = ClosableStringSink; | 2800 exports.ClosableStringSink = ClosableStringSink; |
| 2827 exports.UNICODE_REPLACEMENT_CHARACTER_RUNE = UNICODE_REPLACEMENT_CHARACTER_RUN
E; | 2801 exports.UNICODE_REPLACEMENT_CHARACTER_RUNE = UNICODE_REPLACEMENT_CHARACTER_RUN
E; |
| 2828 exports.UNICODE_BOM_CHARACTER_RUNE = UNICODE_BOM_CHARACTER_RUNE; | 2802 exports.UNICODE_BOM_CHARACTER_RUNE = UNICODE_BOM_CHARACTER_RUNE; |
| 2829 exports.Utf8Codec = Utf8Codec; | 2803 exports.Utf8Codec = Utf8Codec; |
| 2830 exports.UTF8 = UTF8; | 2804 exports.UTF8 = UTF8; |
| 2831 exports.Utf8Encoder = Utf8Encoder; | 2805 exports.Utf8Encoder = Utf8Encoder; |
| 2832 exports.Utf8Decoder = Utf8Decoder; | 2806 exports.Utf8Decoder = Utf8Decoder; |
| 2833 })(convert, core, async, typed_data, _internal, collection); | 2807 })(convert, core, async, typed_data, _internal, collection); |
| OLD | NEW |