| OLD | NEW |
| 1 var _interceptors; | 1 var _interceptors; |
| 2 (function(exports) { | 2 (function(exports) { |
| 3 'use strict'; | 3 'use strict'; |
| 4 // Function _symbolToString: (Symbol) → String | 4 // Function _symbolToString: (Symbol) → String |
| 5 function _symbolToString(symbol) { | 5 function _symbolToString(symbol) { |
| 6 return _internal.Symbol.getName(dart.as(symbol, _internal.Symbol)); | 6 return _internal.Symbol.getName(dart.as(symbol, _internal.Symbol)); |
| 7 } | 7 } |
| 8 // Function _symbolMapToStringMap: (Map<Symbol, dynamic>) → dynamic | 8 // Function _symbolMapToStringMap: (Map<Symbol, dynamic>) → dynamic |
| 9 function _symbolMapToStringMap(map) { | 9 function _symbolMapToStringMap(map) { |
| 10 if (map === null) | 10 if (map === null) |
| (...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 553 } | 553 } |
| 554 return JSFixedArray; | 554 return JSFixedArray; |
| 555 }); | 555 }); |
| 556 let JSFixedArray = JSFixedArray$(dynamic); | 556 let JSFixedArray = JSFixedArray$(dynamic); |
| 557 let JSExtendableArray$ = dart.generic(function(E) { | 557 let JSExtendableArray$ = dart.generic(function(E) { |
| 558 class JSExtendableArray extends JSMutableArray$(E) { | 558 class JSExtendableArray extends JSMutableArray$(E) { |
| 559 } | 559 } |
| 560 return JSExtendableArray; | 560 return JSExtendableArray; |
| 561 }); | 561 }); |
| 562 let JSExtendableArray = JSExtendableArray$(dynamic); | 562 let JSExtendableArray = JSExtendableArray$(dynamic); |
| 563 let _handleIEtoString = Symbol('_handleIEtoString'); |
| 564 let _isInt32 = Symbol('_isInt32'); |
| 565 let _tdivFast = Symbol('_tdivFast'); |
| 566 let _tdivSlow = Symbol('_tdivSlow'); |
| 567 let _shlPositive = Symbol('_shlPositive'); |
| 568 let _shrReceiverPositive = Symbol('_shrReceiverPositive'); |
| 569 let _shrOtherPositive = Symbol('_shrOtherPositive'); |
| 570 let _shrBothPositive = Symbol('_shrBothPositive'); |
| 563 class JSNumber extends Interceptor { | 571 class JSNumber extends Interceptor { |
| 564 JSNumber() { | 572 JSNumber() { |
| 565 super.Interceptor(); | 573 super.Interceptor(); |
| 566 } | 574 } |
| 567 compareTo(b) { | 575 compareTo(b) { |
| 568 if (!dart.is(b, core.num)) | 576 if (!dart.is(b, core.num)) |
| 569 throw new core.ArgumentError(b); | 577 throw new core.ArgumentError(b); |
| 570 if (this['<'](b)) { | 578 if (this['<'](b)) { |
| 571 return -1; | 579 return -1; |
| 572 } else if (this['>'](b)) { | 580 } else if (this['>'](b)) { |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 709 _js_helper.checkInt(radix); | 717 _js_helper.checkInt(radix); |
| 710 if (dart.notNull(radix < 2) || dart.notNull(radix > 36)) | 718 if (dart.notNull(radix < 2) || dart.notNull(radix > 36)) |
| 711 throw new core.RangeError(radix); | 719 throw new core.RangeError(radix); |
| 712 let result = this.toString(radix); | 720 let result = this.toString(radix); |
| 713 let rightParenCode = 41; | 721 let rightParenCode = 41; |
| 714 if (result.codeUnitAt(result.length - 1) !== rightParenCode) { | 722 if (result.codeUnitAt(result.length - 1) !== rightParenCode) { |
| 715 return result; | 723 return result; |
| 716 } | 724 } |
| 717 return _handleIEtoString(result); | 725 return _handleIEtoString(result); |
| 718 } | 726 } |
| 719 static _handleIEtoString(result) { | 727 static [_handleIEtoString](result) { |
| 720 let match = /^([\da-z]+)(?:\.([\da-z]+))?\(e\+(\d+)\)$/.exec(result); | 728 let match = /^([\da-z]+)(?:\.([\da-z]+))?\(e\+(\d+)\)$/.exec(result); |
| 721 if (match === null) { | 729 if (match === null) { |
| 722 throw new core.UnsupportedError(`Unexpected toString result: ${result}`)
; | 730 throw new core.UnsupportedError(`Unexpected toString result: ${result}`)
; |
| 723 } | 731 } |
| 724 let result = dart.dindex(match, 1); | 732 let result = dart.dindex(match, 1); |
| 725 let exponent = +dart.dindex(match, 3); | 733 let exponent = +dart.dindex(match, 3); |
| 726 if (dart.dindex(match, 2) !== null) { | 734 if (dart.dindex(match, 2) !== null) { |
| 727 result = result + dart.dindex(match, 2); | 735 result = result + dart.dindex(match, 2); |
| 728 exponent = dart.dindex(match, 2).length; | 736 exponent = dart.dindex(match, 2).length; |
| 729 } | 737 } |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 769 if (result === 0) | 777 if (result === 0) |
| 770 return 0; | 778 return 0; |
| 771 if (dart.notNull(result) > 0) | 779 if (dart.notNull(result) > 0) |
| 772 return result; | 780 return result; |
| 773 if (dart.notNull(other) < 0) { | 781 if (dart.notNull(other) < 0) { |
| 774 return dart.notNull(result) - dart.notNull(other); | 782 return dart.notNull(result) - dart.notNull(other); |
| 775 } else { | 783 } else { |
| 776 return dart.notNull(result) + dart.notNull(other); | 784 return dart.notNull(result) + dart.notNull(other); |
| 777 } | 785 } |
| 778 } | 786 } |
| 779 _isInt32(value) { | 787 [_isInt32](value) { |
| 780 return (value | 0) === value; | 788 return (value | 0) === value; |
| 781 } | 789 } |
| 782 ['~/'](other) { | 790 ['~/'](other) { |
| 783 if (false) | 791 if (false) |
| 784 this._tdivFast(other); | 792 this[_tdivFast](other); |
| 785 if (dart.notNull(dart.notNull(dart.notNull(this._isInt32(this)) && dart.no
tNull(this._isInt32(other))) && dart.notNull(0 !== other)) && dart.notNull(-1 !=
= other)) { | 793 if (dart.notNull(dart.notNull(dart.notNull(this[_isInt32](this)) && dart.n
otNull(this[_isInt32](other))) && dart.notNull(0 !== other)) && dart.notNull(-1
!== other)) { |
| 786 return this / other | 0; | 794 return this / other | 0; |
| 787 } else { | 795 } else { |
| 788 return this._tdivSlow(other); | 796 return this[_tdivSlow](other); |
| 789 } | 797 } |
| 790 } | 798 } |
| 791 _tdivFast(other) { | 799 [_tdivFast](other) { |
| 792 return this._isInt32(this) ? this / other | 0 : (this / other).toInt(); | 800 return this[_isInt32](this) ? this / other | 0 : (this / other).toInt(); |
| 793 } | 801 } |
| 794 _tdivSlow(other) { | 802 [_tdivSlow](other) { |
| 795 if (!dart.is(other, core.num)) | 803 if (!dart.is(other, core.num)) |
| 796 throw new core.ArgumentError(other); | 804 throw new core.ArgumentError(other); |
| 797 return (this / other).toInt(); | 805 return (this / other).toInt(); |
| 798 } | 806 } |
| 799 ['<<'](other) { | 807 ['<<'](other) { |
| 800 if (!dart.is(other, core.num)) | 808 if (!dart.is(other, core.num)) |
| 801 throw new core.ArgumentError(other); | 809 throw new core.ArgumentError(other); |
| 802 if (dart.notNull(other) < 0) | 810 if (dart.notNull(other) < 0) |
| 803 throw new core.ArgumentError(other); | 811 throw new core.ArgumentError(other); |
| 804 return this._shlPositive(other); | 812 return this[_shlPositive](other); |
| 805 } | 813 } |
| 806 _shlPositive(other) { | 814 [_shlPositive](other) { |
| 807 return dart.as(other > 31 ? 0 : this << other >>> 0, core.num); | 815 return dart.as(other > 31 ? 0 : this << other >>> 0, core.num); |
| 808 } | 816 } |
| 809 ['>>'](other) { | 817 ['>>'](other) { |
| 810 if (false) | 818 if (false) |
| 811 this._shrReceiverPositive(other); | 819 this[_shrReceiverPositive](other); |
| 812 if (!dart.is(other, core.num)) | 820 if (!dart.is(other, core.num)) |
| 813 throw new core.ArgumentError(other); | 821 throw new core.ArgumentError(other); |
| 814 if (dart.notNull(other) < 0) | 822 if (dart.notNull(other) < 0) |
| 815 throw new core.ArgumentError(other); | 823 throw new core.ArgumentError(other); |
| 816 return this._shrOtherPositive(other); | 824 return this[_shrOtherPositive](other); |
| 817 } | 825 } |
| 818 _shrOtherPositive(other) { | 826 [_shrOtherPositive](other) { |
| 819 return dart.as(dart.notNull(this) > 0 ? this._shrBothPositive(other) : thi
s >> (dart.notNull(other) > 31 ? 31 : other) >>> 0, core.num); | 827 return dart.as(dart.notNull(this) > 0 ? this[_shrBothPositive](other) : th
is >> (dart.notNull(other) > 31 ? 31 : other) >>> 0, core.num); |
| 820 } | 828 } |
| 821 _shrReceiverPositive(other) { | 829 [_shrReceiverPositive](other) { |
| 822 if (dart.notNull(other) < 0) | 830 if (dart.notNull(other) < 0) |
| 823 throw new core.ArgumentError(other); | 831 throw new core.ArgumentError(other); |
| 824 return this._shrBothPositive(other); | 832 return this[_shrBothPositive](other); |
| 825 } | 833 } |
| 826 _shrBothPositive(other) { | 834 [_shrBothPositive](other) { |
| 827 return dart.as(other > 31 ? 0 : this >>> other, core.num); | 835 return dart.as(other > 31 ? 0 : this >>> other, core.num); |
| 828 } | 836 } |
| 829 ['&'](other) { | 837 ['&'](other) { |
| 830 if (!dart.is(other, core.num)) | 838 if (!dart.is(other, core.num)) |
| 831 throw new core.ArgumentError(other); | 839 throw new core.ArgumentError(other); |
| 832 return dart.as((this & other) >>> 0, core.num); | 840 return dart.as((this & other) >>> 0, core.num); |
| 833 } | 841 } |
| 834 ['|'](other) { | 842 ['|'](other) { |
| 835 if (!dart.is(other, core.num)) | 843 if (!dart.is(other, core.num)) |
| 836 throw new core.ArgumentError(other); | 844 throw new core.ArgumentError(other); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 860 if (!dart.is(other, core.num)) | 868 if (!dart.is(other, core.num)) |
| 861 throw new core.ArgumentError(other); | 869 throw new core.ArgumentError(other); |
| 862 return this >= other; | 870 return this >= other; |
| 863 } | 871 } |
| 864 get runtimeType() { | 872 get runtimeType() { |
| 865 return core.num; | 873 return core.num; |
| 866 } | 874 } |
| 867 } | 875 } |
| 868 JSNumber._MIN_INT32 = -2147483648; | 876 JSNumber._MIN_INT32 = -2147483648; |
| 869 JSNumber._MAX_INT32 = 2147483647; | 877 JSNumber._MAX_INT32 = 2147483647; |
| 878 let _bitCount = Symbol('_bitCount'); |
| 879 let _shru = Symbol('_shru'); |
| 880 let _shrs = Symbol('_shrs'); |
| 881 let _ors = Symbol('_ors'); |
| 882 let _spread = Symbol('_spread'); |
| 870 class JSInt extends JSNumber { | 883 class JSInt extends JSNumber { |
| 871 JSInt() { | 884 JSInt() { |
| 872 super.JSNumber(); | 885 super.JSNumber(); |
| 873 } | 886 } |
| 874 get isEven() { | 887 get isEven() { |
| 875 return this['&'](1) === 0; | 888 return this['&'](1) === 0; |
| 876 } | 889 } |
| 877 get isOdd() { | 890 get isOdd() { |
| 878 return this['&'](1) === 1; | 891 return this['&'](1) === 1; |
| 879 } | 892 } |
| 880 toUnsigned(width) { | 893 toUnsigned(width) { |
| 881 return dart.notNull(this['&']((1 << width) - 1)); | 894 return dart.notNull(this['&']((1 << width) - 1)); |
| 882 } | 895 } |
| 883 toSigned(width) { | 896 toSigned(width) { |
| 884 let signMask = 1 << width - 1; | 897 let signMask = 1 << width - 1; |
| 885 return dart.notNull(dart.notNull(this['&'](signMask - 1)) - dart.notNull(t
his['&'](signMask))); | 898 return dart.notNull(dart.notNull(this['&'](signMask - 1)) - dart.notNull(t
his['&'](signMask))); |
| 886 } | 899 } |
| 887 get bitLength() { | 900 get bitLength() { |
| 888 let nonneg = dart.notNull(this['<'](0) ? dart.notNull(dart.throw_("Unimple
mented PrefixExpression: -this")) - 1 : this); | 901 let nonneg = dart.notNull(this['<'](0) ? dart.notNull(dart.throw_("Unimple
mented PrefixExpression: -this")) - 1 : this); |
| 889 if (nonneg >= 4294967296) { | 902 if (nonneg >= 4294967296) { |
| 890 nonneg = (nonneg / 4294967296).truncate(); | 903 nonneg = (nonneg / 4294967296).truncate(); |
| 891 return _bitCount(_spread(nonneg)) + 32; | 904 return _bitCount(_spread(nonneg)) + 32; |
| 892 } | 905 } |
| 893 return _bitCount(_spread(nonneg)); | 906 return _bitCount(_spread(nonneg)); |
| 894 } | 907 } |
| 895 static _bitCount(i) { | 908 static [_bitCount](i) { |
| 896 i = dart.as(dart.dbinary(_shru(i, 0), '-', dart.dbinary(_shru(i, 1), '&',
1431655765)), core.int); | 909 i = dart.as(dart.dbinary(_shru(i, 0), '-', dart.dbinary(_shru(i, 1), '&',
1431655765)), core.int); |
| 897 i = dart.notNull((i & 858993459)['+'](dart.dbinary(_shru(i, 2), '&', 85899
3459))); | 910 i = dart.notNull((i & 858993459)['+'](dart.dbinary(_shru(i, 2), '&', 85899
3459))); |
| 898 i = 252645135 & dart.notNull(i['+'](_shru(i, 4))); | 911 i = 252645135 & dart.notNull(i['+'](_shru(i, 4))); |
| 899 i = dart.as(_shru(i, 8), core.int); | 912 i = dart.as(_shru(i, 8), core.int); |
| 900 i = dart.as(_shru(i, 16), core.int); | 913 i = dart.as(_shru(i, 16), core.int); |
| 901 return i & 63; | 914 return i & 63; |
| 902 } | 915 } |
| 903 static _shru(value, shift) { | 916 static [_shru](value, shift) { |
| 904 return value >>> shift; | 917 return value >>> shift; |
| 905 } | 918 } |
| 906 static _shrs(value, shift) { | 919 static [_shrs](value, shift) { |
| 907 return value >> shift; | 920 return value >> shift; |
| 908 } | 921 } |
| 909 static _ors(a, b) { | 922 static [_ors](a, b) { |
| 910 return a | b; | 923 return a | b; |
| 911 } | 924 } |
| 912 static _spread(i) { | 925 static [_spread](i) { |
| 913 i = dart.as(_ors(i, dart.as(_shrs(i, 1), core.int)), core.int); | 926 i = dart.as(_ors(i, dart.as(_shrs(i, 1), core.int)), core.int); |
| 914 i = dart.as(_ors(i, dart.as(_shrs(i, 2), core.int)), core.int); | 927 i = dart.as(_ors(i, dart.as(_shrs(i, 2), core.int)), core.int); |
| 915 i = dart.as(_ors(i, dart.as(_shrs(i, 4), core.int)), core.int); | 928 i = dart.as(_ors(i, dart.as(_shrs(i, 4), core.int)), core.int); |
| 916 i = dart.as(_ors(i, dart.as(_shrs(i, 8), core.int)), core.int); | 929 i = dart.as(_ors(i, dart.as(_shrs(i, 8), core.int)), core.int); |
| 917 i = dart.as(_shru(dart.as(_ors(i, dart.as(_shrs(i, 16), core.int)), core.i
nt), 0), core.int); | 930 i = dart.as(_shru(dart.as(_ors(i, dart.as(_shrs(i, 16), core.int)), core.i
nt), 0), core.int); |
| 918 return i; | 931 return i; |
| 919 } | 932 } |
| 920 get runtimeType() { | 933 get runtimeType() { |
| 921 return core.int; | 934 return core.int; |
| 922 } | 935 } |
| 923 ['~']() { | 936 ['~']() { |
| 924 return dart.as(~this >>> 0, core.int); | 937 return dart.as(~this >>> 0, core.int); |
| 925 } | 938 } |
| 926 } | 939 } |
| 927 class JSDouble extends JSNumber { | 940 class JSDouble extends JSNumber { |
| 928 JSDouble() { | 941 JSDouble() { |
| 929 super.JSNumber(); | 942 super.JSNumber(); |
| 930 } | 943 } |
| 931 get runtimeType() { | 944 get runtimeType() { |
| 932 return core.double; | 945 return core.double; |
| 933 } | 946 } |
| 934 } | 947 } |
| 935 class JSPositiveInt extends JSInt { | 948 class JSPositiveInt extends JSInt { |
| 936 } | 949 } |
| 937 class JSUInt32 extends JSPositiveInt { | 950 class JSUInt32 extends JSPositiveInt { |
| 938 } | 951 } |
| 939 class JSUInt31 extends JSUInt32 { | 952 class JSUInt31 extends JSUInt32 { |
| 940 } | 953 } |
| 954 let _defaultSplit = Symbol('_defaultSplit'); |
| 955 let _isWhitespace = Symbol('_isWhitespace'); |
| 956 let _skipLeadingWhitespace = Symbol('_skipLeadingWhitespace'); |
| 957 let _skipTrailingWhitespace = Symbol('_skipTrailingWhitespace'); |
| 941 class JSString extends Interceptor { | 958 class JSString extends Interceptor { |
| 942 JSString() { | 959 JSString() { |
| 943 super.Interceptor(); | 960 super.Interceptor(); |
| 944 } | 961 } |
| 945 codeUnitAt(index) { | 962 codeUnitAt(index) { |
| 946 if (!(typeof index == number)) | 963 if (!(typeof index == number)) |
| 947 throw new core.ArgumentError(index); | 964 throw new core.ArgumentError(index); |
| 948 if (index < 0) | 965 if (index < 0) |
| 949 throw new core.RangeError.value(index); | 966 throw new core.RangeError.value(index); |
| 950 if (index >= this.length) | 967 if (index >= this.length) |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1011 return dart.as(_js_helper.stringReplaceFirstUnchecked(this, from, to, star
tIndex), core.String); | 1028 return dart.as(_js_helper.stringReplaceFirstUnchecked(this, from, to, star
tIndex), core.String); |
| 1012 } | 1029 } |
| 1013 split(pattern) { | 1030 split(pattern) { |
| 1014 _js_helper.checkNull(pattern); | 1031 _js_helper.checkNull(pattern); |
| 1015 if (typeof pattern == string) { | 1032 if (typeof pattern == string) { |
| 1016 return dart.as(this.split(pattern), core.List$(core.String)); | 1033 return dart.as(this.split(pattern), core.List$(core.String)); |
| 1017 } else if (dart.notNull(dart.is(pattern, _js_helper.JSSyntaxRegExp)) && da
rt.notNull(_js_helper.regExpCaptureCount(pattern) === 0)) { | 1034 } else if (dart.notNull(dart.is(pattern, _js_helper.JSSyntaxRegExp)) && da
rt.notNull(_js_helper.regExpCaptureCount(pattern) === 0)) { |
| 1018 let re = _js_helper.regExpGetNative(pattern); | 1035 let re = _js_helper.regExpGetNative(pattern); |
| 1019 return dart.as(this.split(re), core.List$(core.String)); | 1036 return dart.as(this.split(re), core.List$(core.String)); |
| 1020 } else { | 1037 } else { |
| 1021 return this._defaultSplit(pattern); | 1038 return this[_defaultSplit](pattern); |
| 1022 } | 1039 } |
| 1023 } | 1040 } |
| 1024 _defaultSplit(pattern) { | 1041 [_defaultSplit](pattern) { |
| 1025 let result = new List.from([]); | 1042 let result = new List.from([]); |
| 1026 let start = 0; | 1043 let start = 0; |
| 1027 let length = 1; | 1044 let length = 1; |
| 1028 for (let match of pattern.allMatches(this)) { | 1045 for (let match of pattern.allMatches(this)) { |
| 1029 let matchStart = dart.as(dart.dload(match, 'start'), core.int); | 1046 let matchStart = dart.as(dart.dload(match, 'start'), core.int); |
| 1030 let matchEnd = dart.as(dart.dload(match, 'end'), core.int); | 1047 let matchEnd = dart.as(dart.dload(match, 'end'), core.int); |
| 1031 length = matchEnd - matchStart; | 1048 length = matchEnd - matchStart; |
| 1032 if (dart.notNull(length === 0) && dart.notNull(start === matchStart)) { | 1049 if (dart.notNull(length === 0) && dart.notNull(start === matchStart)) { |
| 1033 continue; | 1050 continue; |
| 1034 } | 1051 } |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1072 if (endIndex > this.length) | 1089 if (endIndex > this.length) |
| 1073 throw new core.RangeError.value(endIndex); | 1090 throw new core.RangeError.value(endIndex); |
| 1074 return this.substring(startIndex, endIndex); | 1091 return this.substring(startIndex, endIndex); |
| 1075 } | 1092 } |
| 1076 toLowerCase() { | 1093 toLowerCase() { |
| 1077 return this.toLowerCase(); | 1094 return this.toLowerCase(); |
| 1078 } | 1095 } |
| 1079 toUpperCase() { | 1096 toUpperCase() { |
| 1080 return this.toUpperCase(); | 1097 return this.toUpperCase(); |
| 1081 } | 1098 } |
| 1082 static _isWhitespace(codeUnit) { | 1099 static [_isWhitespace](codeUnit) { |
| 1083 if (codeUnit < 256) { | 1100 if (codeUnit < 256) { |
| 1084 switch (codeUnit) { | 1101 switch (codeUnit) { |
| 1085 case 9: | 1102 case 9: |
| 1086 case 10: | 1103 case 10: |
| 1087 case 11: | 1104 case 11: |
| 1088 case 12: | 1105 case 12: |
| 1089 case 13: | 1106 case 13: |
| 1090 case 32: | 1107 case 32: |
| 1091 case 133: | 1108 case 133: |
| 1092 case 160: | 1109 case 160: |
| (...skipping 20 matching lines...) Expand all Loading... |
| 1113 case 8233: | 1130 case 8233: |
| 1114 case 8239: | 1131 case 8239: |
| 1115 case 8287: | 1132 case 8287: |
| 1116 case 12288: | 1133 case 12288: |
| 1117 case 65279: | 1134 case 65279: |
| 1118 return true; | 1135 return true; |
| 1119 default: | 1136 default: |
| 1120 return false; | 1137 return false; |
| 1121 } | 1138 } |
| 1122 } | 1139 } |
| 1123 static _skipLeadingWhitespace(string, index) { | 1140 static [_skipLeadingWhitespace](string, index) { |
| 1124 let SPACE = 32; | 1141 let SPACE = 32; |
| 1125 let CARRIAGE_RETURN = 13; | 1142 let CARRIAGE_RETURN = 13; |
| 1126 while (index < string.length) { | 1143 while (index < string.length) { |
| 1127 let codeUnit = string.codeUnitAt(index); | 1144 let codeUnit = string.codeUnitAt(index); |
| 1128 if (dart.notNull(dart.notNull(codeUnit !== SPACE) && dart.notNull(codeUn
it !== CARRIAGE_RETURN)) && dart.notNull(!dart.notNull(_isWhitespace(codeUnit)))
) { | 1145 if (dart.notNull(dart.notNull(codeUnit !== SPACE) && dart.notNull(codeUn
it !== CARRIAGE_RETURN)) && dart.notNull(!dart.notNull(_isWhitespace(codeUnit)))
) { |
| 1129 break; | 1146 break; |
| 1130 } | 1147 } |
| 1131 index++; | 1148 index++; |
| 1132 } | 1149 } |
| 1133 return index; | 1150 return index; |
| 1134 } | 1151 } |
| 1135 static _skipTrailingWhitespace(string, index) { | 1152 static [_skipTrailingWhitespace](string, index) { |
| 1136 let SPACE = 32; | 1153 let SPACE = 32; |
| 1137 let CARRIAGE_RETURN = 13; | 1154 let CARRIAGE_RETURN = 13; |
| 1138 while (index > 0) { | 1155 while (index > 0) { |
| 1139 let codeUnit = string.codeUnitAt(index - 1); | 1156 let codeUnit = string.codeUnitAt(index - 1); |
| 1140 if (dart.notNull(dart.notNull(codeUnit !== SPACE) && dart.notNull(codeUn
it !== CARRIAGE_RETURN)) && dart.notNull(!dart.notNull(_isWhitespace(codeUnit)))
) { | 1157 if (dart.notNull(dart.notNull(codeUnit !== SPACE) && dart.notNull(codeUn
it !== CARRIAGE_RETURN)) && dart.notNull(!dart.notNull(_isWhitespace(codeUnit)))
) { |
| 1141 break; | 1158 break; |
| 1142 } | 1159 } |
| 1143 index--; | 1160 index--; |
| 1144 } | 1161 } |
| 1145 return index; | 1162 return index; |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1340 return this.length; | 1357 return this.length; |
| 1341 } | 1358 } |
| 1342 get(index) { | 1359 get(index) { |
| 1343 if (!(typeof index == number)) | 1360 if (!(typeof index == number)) |
| 1344 throw new core.ArgumentError(index); | 1361 throw new core.ArgumentError(index); |
| 1345 if (dart.notNull(index >= this.length) || dart.notNull(index < 0)) | 1362 if (dart.notNull(index >= this.length) || dart.notNull(index < 0)) |
| 1346 throw new core.RangeError.value(index); | 1363 throw new core.RangeError.value(index); |
| 1347 return this[index]; | 1364 return this[index]; |
| 1348 } | 1365 } |
| 1349 } | 1366 } |
| 1367 let _string = Symbol('_string'); |
| 1350 class _CodeUnits extends _internal.UnmodifiableListBase$(core.int) { | 1368 class _CodeUnits extends _internal.UnmodifiableListBase$(core.int) { |
| 1351 _CodeUnits(_string) { | 1369 _CodeUnits($_string) { |
| 1352 this._string = _string; | 1370 this[_string] = $_string; |
| 1353 super.UnmodifiableListBase(); | 1371 super.UnmodifiableListBase(); |
| 1354 } | 1372 } |
| 1355 get length() { | 1373 get length() { |
| 1356 return this._string.length; | 1374 return this[_string].length; |
| 1357 } | 1375 } |
| 1358 get(i) { | 1376 get(i) { |
| 1359 return this._string.codeUnitAt(i); | 1377 return this[_string].codeUnitAt(i); |
| 1360 } | 1378 } |
| 1361 } | 1379 } |
| 1362 // Exports: | 1380 // Exports: |
| 1363 exports.getInterceptor = getInterceptor; | 1381 exports.getInterceptor = getInterceptor; |
| 1364 exports.getDispatchProperty = getDispatchProperty; | 1382 exports.getDispatchProperty = getDispatchProperty; |
| 1365 exports.setDispatchProperty = setDispatchProperty; | 1383 exports.setDispatchProperty = setDispatchProperty; |
| 1366 exports.makeDispatchRecord = makeDispatchRecord; | 1384 exports.makeDispatchRecord = makeDispatchRecord; |
| 1367 exports.dispatchRecordInterceptor = dispatchRecordInterceptor; | 1385 exports.dispatchRecordInterceptor = dispatchRecordInterceptor; |
| 1368 exports.dispatchRecordProto = dispatchRecordProto; | 1386 exports.dispatchRecordProto = dispatchRecordProto; |
| 1369 exports.dispatchRecordExtension = dispatchRecordExtension; | 1387 exports.dispatchRecordExtension = dispatchRecordExtension; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 1392 exports.JSExtendableArray = JSExtendableArray; | 1410 exports.JSExtendableArray = JSExtendableArray; |
| 1393 exports.JSExtendableArray$ = JSExtendableArray$; | 1411 exports.JSExtendableArray$ = JSExtendableArray$; |
| 1394 exports.JSNumber = JSNumber; | 1412 exports.JSNumber = JSNumber; |
| 1395 exports.JSInt = JSInt; | 1413 exports.JSInt = JSInt; |
| 1396 exports.JSDouble = JSDouble; | 1414 exports.JSDouble = JSDouble; |
| 1397 exports.JSPositiveInt = JSPositiveInt; | 1415 exports.JSPositiveInt = JSPositiveInt; |
| 1398 exports.JSUInt32 = JSUInt32; | 1416 exports.JSUInt32 = JSUInt32; |
| 1399 exports.JSUInt31 = JSUInt31; | 1417 exports.JSUInt31 = JSUInt31; |
| 1400 exports.JSString = JSString; | 1418 exports.JSString = JSString; |
| 1401 })(_interceptors || (_interceptors = {})); | 1419 })(_interceptors || (_interceptors = {})); |
| OLD | NEW |