| OLD | NEW |
| 1 var collection; | 1 var collection; |
| 2 (function(exports) { | 2 (function(exports) { |
| 3 'use strict'; | 3 'use strict'; |
| 4 let _source = Symbol('_source'); | 4 let _source = Symbol('_source'); |
| 5 let UnmodifiableListView$ = dart.generic(function(E) { | 5 let UnmodifiableListView$ = dart.generic(function(E) { |
| 6 class UnmodifiableListView extends _internal.UnmodifiableListBase$(E) { | 6 class UnmodifiableListView extends _internal.UnmodifiableListBase$(E) { |
| 7 UnmodifiableListView(source) { | 7 UnmodifiableListView(source) { |
| 8 this[_source] = source; | 8 this[_source] = source; |
| 9 super.UnmodifiableListBase(); | 9 super.UnmodifiableListBase(); |
| 10 } | 10 } |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 } | 218 } |
| 219 let value = iterator.current; | 219 let value = iterator.current; |
| 220 while (iterator.moveNext()) { | 220 while (iterator.moveNext()) { |
| 221 value = combine(value, iterator.current); | 221 value = combine(value, iterator.current); |
| 222 } | 222 } |
| 223 return value; | 223 return value; |
| 224 } | 224 } |
| 225 [core.$fold](initialValue, combine) { | 225 [core.$fold](initialValue, combine) { |
| 226 let value = initialValue; | 226 let value = initialValue; |
| 227 for (let element of this) | 227 for (let element of this) |
| 228 value = dart.dinvokef(combine, value, element); | 228 value = dart.dcall(combine, value, element); |
| 229 return value; | 229 return value; |
| 230 } | 230 } |
| 231 [core.$every](f) { | 231 [core.$every](f) { |
| 232 for (let element of this) { | 232 for (let element of this) { |
| 233 if (!dart.notNull(f(element))) | 233 if (!dart.notNull(f(element))) |
| 234 return false; | 234 return false; |
| 235 } | 235 } |
| 236 return true; | 236 return true; |
| 237 } | 237 } |
| 238 [core.$join](separator) { | 238 [core.$join](separator) { |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 464 } | 464 } |
| 465 let value = iterator.current; | 465 let value = iterator.current; |
| 466 while (iterator.moveNext()) { | 466 while (iterator.moveNext()) { |
| 467 value = combine(value, iterator.current); | 467 value = combine(value, iterator.current); |
| 468 } | 468 } |
| 469 return value; | 469 return value; |
| 470 } | 470 } |
| 471 [core.$fold](initialValue, combine) { | 471 [core.$fold](initialValue, combine) { |
| 472 let value = initialValue; | 472 let value = initialValue; |
| 473 for (let element of this) | 473 for (let element of this) |
| 474 value = dart.dinvokef(combine, value, element); | 474 value = dart.dcall(combine, value, element); |
| 475 return value; | 475 return value; |
| 476 } | 476 } |
| 477 [core.$every](f) { | 477 [core.$every](f) { |
| 478 for (let element of this) { | 478 for (let element of this) { |
| 479 if (!dart.notNull(f(element))) | 479 if (!dart.notNull(f(element))) |
| 480 return false; | 480 return false; |
| 481 } | 481 } |
| 482 return true; | 482 return true; |
| 483 } | 483 } |
| 484 [core.$join](separator) { | 484 [core.$join](separator) { |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 665 } | 665 } |
| 666 let value = iterator.current; | 666 let value = iterator.current; |
| 667 while (iterator.moveNext()) { | 667 while (iterator.moveNext()) { |
| 668 value = combine(value, iterator.current); | 668 value = combine(value, iterator.current); |
| 669 } | 669 } |
| 670 return value; | 670 return value; |
| 671 } | 671 } |
| 672 [core.$fold](initialValue, combine) { | 672 [core.$fold](initialValue, combine) { |
| 673 let value = initialValue; | 673 let value = initialValue; |
| 674 for (let element of this) | 674 for (let element of this) |
| 675 value = dart.dinvokef(combine, value, element); | 675 value = dart.dcall(combine, value, element); |
| 676 return value; | 676 return value; |
| 677 } | 677 } |
| 678 [core.$every](f) { | 678 [core.$every](f) { |
| 679 for (let element of this) { | 679 for (let element of this) { |
| 680 if (!dart.notNull(f(element))) | 680 if (!dart.notNull(f(element))) |
| 681 return false; | 681 return false; |
| 682 } | 682 } |
| 683 return true; | 683 return true; |
| 684 } | 684 } |
| 685 [core.$join](separator) { | 685 [core.$join](separator) { |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 920 } else { | 920 } else { |
| 921 ultimate = it.current; | 921 ultimate = it.current; |
| 922 count = dart.notNull(count) + 1; | 922 count = dart.notNull(count) + 1; |
| 923 dart.assert(dart.notNull(count) < dart.notNull(MAX_COUNT)); | 923 dart.assert(dart.notNull(count) < dart.notNull(MAX_COUNT)); |
| 924 while (it.moveNext()) { | 924 while (it.moveNext()) { |
| 925 penultimate = ultimate; | 925 penultimate = ultimate; |
| 926 ultimate = it.current; | 926 ultimate = it.current; |
| 927 count = dart.notNull(count) + 1; | 927 count = dart.notNull(count) + 1; |
| 928 if (dart.notNull(count) > dart.notNull(MAX_COUNT)) { | 928 if (dart.notNull(count) > dart.notNull(MAX_COUNT)) { |
| 929 while (dart.notNull(length) > dart.notNull(LENGTH_LIMIT) - dart.
notNull(ELLIPSIS_SIZE) - dart.notNull(OVERHEAD) && dart.notNull(count) > dart.no
tNull(HEAD_COUNT)) { | 929 while (dart.notNull(length) > dart.notNull(LENGTH_LIMIT) - dart.
notNull(ELLIPSIS_SIZE) - dart.notNull(OVERHEAD) && dart.notNull(count) > dart.no
tNull(HEAD_COUNT)) { |
| 930 length = dart.notNull(length) - dart.notNull(dart.as(dart.dbin
ary(dart.dload(parts[core.$removeLast](), 'length'), '+', OVERHEAD), core.int)); | 930 length = dart.notNull(length) - dart.notNull(dart.as(dart.dsen
d(dart.dload(parts[core.$removeLast](), 'length'), '+', OVERHEAD), core.int)); |
| 931 count = dart.notNull(count) - 1; | 931 count = dart.notNull(count) - 1; |
| 932 } | 932 } |
| 933 parts[core.$add]("..."); | 933 parts[core.$add]("..."); |
| 934 return; | 934 return; |
| 935 } | 935 } |
| 936 } | 936 } |
| 937 penultimateString = `${penultimate}`; | 937 penultimateString = `${penultimate}`; |
| 938 ultimateString = `${ultimate}`; | 938 ultimateString = `${ultimate}`; |
| 939 length = dart.notNull(length) + (dart.notNull(ultimateString.length)
+ dart.notNull(penultimateString.length) + 2 * dart.notNull(OVERHEAD)); | 939 length = dart.notNull(length) + (dart.notNull(ultimateString.length)
+ dart.notNull(penultimateString.length) + 2 * dart.notNull(OVERHEAD)); |
| 940 } | 940 } |
| 941 } | 941 } |
| 942 let elision = null; | 942 let elision = null; |
| 943 if (dart.notNull(count) > dart.notNull(parts[core.$length]) + dart.notNu
ll(TAIL_COUNT)) { | 943 if (dart.notNull(count) > dart.notNull(parts[core.$length]) + dart.notNu
ll(TAIL_COUNT)) { |
| 944 elision = "..."; | 944 elision = "..."; |
| 945 length = dart.notNull(length) + (dart.notNull(ELLIPSIS_SIZE) + dart.no
tNull(OVERHEAD)); | 945 length = dart.notNull(length) + (dart.notNull(ELLIPSIS_SIZE) + dart.no
tNull(OVERHEAD)); |
| 946 } | 946 } |
| 947 while (dart.notNull(length) > dart.notNull(LENGTH_LIMIT) && dart.notNull
(parts[core.$length]) > dart.notNull(HEAD_COUNT)) { | 947 while (dart.notNull(length) > dart.notNull(LENGTH_LIMIT) && dart.notNull
(parts[core.$length]) > dart.notNull(HEAD_COUNT)) { |
| 948 length = dart.notNull(length) - dart.notNull(dart.as(dart.dbinary(dart
.dload(parts[core.$removeLast](), 'length'), '+', OVERHEAD), core.int)); | 948 length = dart.notNull(length) - dart.notNull(dart.as(dart.dsend(dart.d
load(parts[core.$removeLast](), 'length'), '+', OVERHEAD), core.int)); |
| 949 if (elision == null) { | 949 if (elision == null) { |
| 950 elision = "..."; | 950 elision = "..."; |
| 951 length = dart.notNull(length) + (dart.notNull(ELLIPSIS_SIZE) + dart.
notNull(OVERHEAD)); | 951 length = dart.notNull(length) + (dart.notNull(ELLIPSIS_SIZE) + dart.
notNull(OVERHEAD)); |
| 952 } | 952 } |
| 953 } | 953 } |
| 954 if (elision != null) { | 954 if (elision != null) { |
| 955 parts[core.$add](elision); | 955 parts[core.$add](elision); |
| 956 } | 956 } |
| 957 parts[core.$add](penultimateString); | 957 parts[core.$add](penultimateString); |
| 958 parts[core.$add](ultimateString); | 958 parts[core.$add](ultimateString); |
| (...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1457 if (length != this[core.$length]) { | 1457 if (length != this[core.$length]) { |
| 1458 throw new core.ConcurrentModificationError(this); | 1458 throw new core.ConcurrentModificationError(this); |
| 1459 } | 1459 } |
| 1460 } | 1460 } |
| 1461 return value; | 1461 return value; |
| 1462 } | 1462 } |
| 1463 [core.$fold](initialValue, combine) { | 1463 [core.$fold](initialValue, combine) { |
| 1464 let value = initialValue; | 1464 let value = initialValue; |
| 1465 let length = this[core.$length]; | 1465 let length = this[core.$length]; |
| 1466 for (let i = 0; dart.notNull(i) < dart.notNull(length); i = dart.notNull
(i) + 1) { | 1466 for (let i = 0; dart.notNull(i) < dart.notNull(length); i = dart.notNull
(i) + 1) { |
| 1467 value = dart.dinvokef(combine, value, this[core.$get](i)); | 1467 value = dart.dcall(combine, value, this[core.$get](i)); |
| 1468 if (length != this[core.$length]) { | 1468 if (length != this[core.$length]) { |
| 1469 throw new core.ConcurrentModificationError(this); | 1469 throw new core.ConcurrentModificationError(this); |
| 1470 } | 1470 } |
| 1471 } | 1471 } |
| 1472 return value; | 1472 return value; |
| 1473 } | 1473 } |
| 1474 [core.$skip](count) { | 1474 [core.$skip](count) { |
| 1475 return new (_internal.SubListIterable$(E))(this, count, null); | 1475 return new (_internal.SubListIterable$(E))(this, count, null); |
| 1476 } | 1476 } |
| 1477 [core.$skipWhile](test) { | 1477 [core.$skipWhile](test) { |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1535 ListMixin[_filter](this, test, false); | 1535 ListMixin[_filter](this, test, false); |
| 1536 } | 1536 } |
| 1537 [core.$retainWhere](test) { | 1537 [core.$retainWhere](test) { |
| 1538 ListMixin[_filter](this, test, true); | 1538 ListMixin[_filter](this, test, true); |
| 1539 } | 1539 } |
| 1540 static [_filter](source, test, retainMatching) { | 1540 static [_filter](source, test, retainMatching) { |
| 1541 let retained = new core.List.from([]); | 1541 let retained = new core.List.from([]); |
| 1542 let length = source[core.$length]; | 1542 let length = source[core.$length]; |
| 1543 for (let i = 0; dart.notNull(i) < dart.notNull(length); i = dart.notNull
(i) + 1) { | 1543 for (let i = 0; dart.notNull(i) < dart.notNull(length); i = dart.notNull
(i) + 1) { |
| 1544 let element = source[core.$get](i); | 1544 let element = source[core.$get](i); |
| 1545 if (dart.dinvokef(test, element) == retainMatching) { | 1545 if (dart.dcall(test, element) == retainMatching) { |
| 1546 retained[core.$add](element); | 1546 retained[core.$add](element); |
| 1547 } | 1547 } |
| 1548 if (length != source[core.$length]) { | 1548 if (length != source[core.$length]) { |
| 1549 throw new core.ConcurrentModificationError(source); | 1549 throw new core.ConcurrentModificationError(source); |
| 1550 } | 1550 } |
| 1551 } | 1551 } |
| 1552 if (retained[core.$length] != source[core.$length]) { | 1552 if (retained[core.$length] != source[core.$length]) { |
| 1553 source[core.$setRange](0, retained[core.$length], retained); | 1553 source[core.$setRange](0, retained[core.$length], retained); |
| 1554 source[core.$length] = retained[core.$length]; | 1554 source[core.$length] = retained[core.$length]; |
| 1555 } | 1555 } |
| (...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2002 map.set(key, v); | 2002 map.set(key, v); |
| 2003 return v; | 2003 return v; |
| 2004 } | 2004 } |
| 2005 static clear(map) { | 2005 static clear(map) { |
| 2006 for (let k of map.keys[core.$toList]()) { | 2006 for (let k of map.keys[core.$toList]()) { |
| 2007 map.remove(k); | 2007 map.remove(k); |
| 2008 } | 2008 } |
| 2009 } | 2009 } |
| 2010 static forEach(map, f) { | 2010 static forEach(map, f) { |
| 2011 for (let k of map.keys) { | 2011 for (let k of map.keys) { |
| 2012 dart.dinvokef(f, k, map.get(k)); | 2012 dart.dcall(f, k, map.get(k)); |
| 2013 } | 2013 } |
| 2014 } | 2014 } |
| 2015 static getValues(map) { | 2015 static getValues(map) { |
| 2016 return map.keys[core.$map](key => map.get(key)); | 2016 return map.keys[core.$map](key => map.get(key)); |
| 2017 } | 2017 } |
| 2018 static length(map) { | 2018 static length(map) { |
| 2019 return map.keys[core.$length]; | 2019 return map.keys[core.$length]; |
| 2020 } | 2020 } |
| 2021 static isEmpty(map) { | 2021 static isEmpty(map) { |
| 2022 return map.keys[core.$isEmpty]; | 2022 return map.keys[core.$isEmpty]; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 2051 } | 2051 } |
| 2052 static [_id](x) { | 2052 static [_id](x) { |
| 2053 return x; | 2053 return x; |
| 2054 } | 2054 } |
| 2055 static [_fillMapWithMappedIterable](map, iterable, key, value) { | 2055 static [_fillMapWithMappedIterable](map, iterable, key, value) { |
| 2056 if (key == null) | 2056 if (key == null) |
| 2057 key = Maps[_id]; | 2057 key = Maps[_id]; |
| 2058 if (value == null) | 2058 if (value == null) |
| 2059 value = Maps[_id]; | 2059 value = Maps[_id]; |
| 2060 for (let element of iterable) { | 2060 for (let element of iterable) { |
| 2061 map.set(dart.dinvokef(key, element), dart.dinvokef(value, element)); | 2061 map.set(dart.dcall(key, element), dart.dcall(value, element)); |
| 2062 } | 2062 } |
| 2063 } | 2063 } |
| 2064 static [_fillMapWithIterables](map, keys, values) { | 2064 static [_fillMapWithIterables](map, keys, values) { |
| 2065 let keyIterator = keys[core.$iterator]; | 2065 let keyIterator = keys[core.$iterator]; |
| 2066 let valueIterator = values[core.$iterator]; | 2066 let valueIterator = values[core.$iterator]; |
| 2067 let hasNextKey = keyIterator.moveNext(); | 2067 let hasNextKey = keyIterator.moveNext(); |
| 2068 let hasNextValue = valueIterator.moveNext(); | 2068 let hasNextValue = valueIterator.moveNext(); |
| 2069 while (dart.notNull(hasNextKey) && dart.notNull(hasNextValue)) { | 2069 while (dart.notNull(hasNextKey) && dart.notNull(hasNextValue)) { |
| 2070 map.set(keyIterator.current, valueIterator.current); | 2070 map.set(keyIterator.current, valueIterator.current); |
| 2071 hasNextKey = keyIterator.moveNext(); | 2071 hasNextKey = keyIterator.moveNext(); |
| (...skipping 793 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2865 return this[_comparator](key1, key2); | 2865 return this[_comparator](key1, key2); |
| 2866 } | 2866 } |
| 2867 [_internal$]() { | 2867 [_internal$]() { |
| 2868 this[_comparator] = null; | 2868 this[_comparator] = null; |
| 2869 this[_validKey] = null; | 2869 this[_validKey] = null; |
| 2870 super._SplayTree(); | 2870 super._SplayTree(); |
| 2871 } | 2871 } |
| 2872 get(key) { | 2872 get(key) { |
| 2873 if (key == null) | 2873 if (key == null) |
| 2874 throw new core.ArgumentError(key); | 2874 throw new core.ArgumentError(key); |
| 2875 if (!dart.notNull(dart.dinvokef(this[_validKey], key))) | 2875 if (!dart.notNull(dart.dcall(this[_validKey], key))) |
| 2876 return null; | 2876 return null; |
| 2877 if (this[_root] != null) { | 2877 if (this[_root] != null) { |
| 2878 let comp = this[_splay](dart.as(key, K)); | 2878 let comp = this[_splay](dart.as(key, K)); |
| 2879 if (comp == 0) { | 2879 if (comp == 0) { |
| 2880 let mapRoot = dart.as(this[_root], _SplayTreeMapNode); | 2880 let mapRoot = dart.as(this[_root], _SplayTreeMapNode); |
| 2881 return dart.as(mapRoot.value, V); | 2881 return dart.as(mapRoot.value, V); |
| 2882 } | 2882 } |
| 2883 } | 2883 } |
| 2884 return null; | 2884 return null; |
| 2885 } | 2885 } |
| 2886 remove(key) { | 2886 remove(key) { |
| 2887 if (!dart.notNull(dart.dinvokef(this[_validKey], key))) | 2887 if (!dart.notNull(dart.dcall(this[_validKey], key))) |
| 2888 return null; | 2888 return null; |
| 2889 let mapRoot = dart.as(this[_remove](dart.as(key, K)), _SplayTreeMapNode)
; | 2889 let mapRoot = dart.as(this[_remove](dart.as(key, K)), _SplayTreeMapNode)
; |
| 2890 if (mapRoot != null) | 2890 if (mapRoot != null) |
| 2891 return dart.as(mapRoot.value, V); | 2891 return dart.as(mapRoot.value, V); |
| 2892 return null; | 2892 return null; |
| 2893 } | 2893 } |
| 2894 set(key, value) { | 2894 set(key, value) { |
| 2895 if (key == null) | 2895 if (key == null) |
| 2896 throw new core.ArgumentError(key); | 2896 throw new core.ArgumentError(key); |
| 2897 let comp = this[_splay](key); | 2897 let comp = this[_splay](key); |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2941 f(node.key, node.value); | 2941 f(node.key, node.value); |
| 2942 } | 2942 } |
| 2943 } | 2943 } |
| 2944 get length() { | 2944 get length() { |
| 2945 return this[_count]; | 2945 return this[_count]; |
| 2946 } | 2946 } |
| 2947 clear() { | 2947 clear() { |
| 2948 this[_clear](); | 2948 this[_clear](); |
| 2949 } | 2949 } |
| 2950 containsKey(key) { | 2950 containsKey(key) { |
| 2951 return dart.notNull(dart.dinvokef(this[_validKey], key)) && this[_splay]
(dart.as(key, K)) == 0; | 2951 return dart.notNull(dart.dcall(this[_validKey], key)) && this[_splay](da
rt.as(key, K)) == 0; |
| 2952 } | 2952 } |
| 2953 containsValue(value) { | 2953 containsValue(value) { |
| 2954 let found = false; | 2954 let found = false; |
| 2955 let initialSplayCount = this[_splayCount]; | 2955 let initialSplayCount = this[_splayCount]; |
| 2956 // Function visit: (_SplayTreeMapNode<dynamic, dynamic>) → bool | 2956 // Function visit: (_SplayTreeMapNode<dynamic, dynamic>) → bool |
| 2957 function visit(node) { | 2957 function visit(node) { |
| 2958 while (node != null) { | 2958 while (node != null) { |
| 2959 if (dart.equals(node.value, value)) | 2959 if (dart.equals(node.value, value)) |
| 2960 return true; | 2960 return true; |
| 2961 if (initialSplayCount != this[_splayCount]) { | 2961 if (initialSplayCount != this[_splayCount]) { |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3209 compare = null; | 3209 compare = null; |
| 3210 if (isValidKey === void 0) | 3210 if (isValidKey === void 0) |
| 3211 isValidKey = null; | 3211 isValidKey = null; |
| 3212 let result = new (SplayTreeSet$(E))(compare, isValidKey); | 3212 let result = new (SplayTreeSet$(E))(compare, isValidKey); |
| 3213 for (let element of dart.as(elements, core.Iterable$(E))) { | 3213 for (let element of dart.as(elements, core.Iterable$(E))) { |
| 3214 result.add(element); | 3214 result.add(element); |
| 3215 } | 3215 } |
| 3216 return result; | 3216 return result; |
| 3217 } | 3217 } |
| 3218 [_compare](e1, e2) { | 3218 [_compare](e1, e2) { |
| 3219 return dart.dinvokef(this[_comparator], e1, e2); | 3219 return dart.dcall(this[_comparator], e1, e2); |
| 3220 } | 3220 } |
| 3221 get [core.$iterator]() { | 3221 get [core.$iterator]() { |
| 3222 return new (_SplayTreeKeyIterator$(E))(this); | 3222 return new (_SplayTreeKeyIterator$(E))(this); |
| 3223 } | 3223 } |
| 3224 get [core.$length]() { | 3224 get [core.$length]() { |
| 3225 return this[_count]; | 3225 return this[_count]; |
| 3226 } | 3226 } |
| 3227 get [core.$isEmpty]() { | 3227 get [core.$isEmpty]() { |
| 3228 return this[_root] == null; | 3228 return this[_root] == null; |
| 3229 } | 3229 } |
| (...skipping 11 matching lines...) Expand all Loading... |
| 3241 return dart.as(this[_last].key, E); | 3241 return dart.as(this[_last].key, E); |
| 3242 } | 3242 } |
| 3243 get [core.$single]() { | 3243 get [core.$single]() { |
| 3244 if (this[_count] == 0) | 3244 if (this[_count] == 0) |
| 3245 throw _internal.IterableElementError.noElement(); | 3245 throw _internal.IterableElementError.noElement(); |
| 3246 if (dart.notNull(this[_count]) > 1) | 3246 if (dart.notNull(this[_count]) > 1) |
| 3247 throw _internal.IterableElementError.tooMany(); | 3247 throw _internal.IterableElementError.tooMany(); |
| 3248 return this[_root].key; | 3248 return this[_root].key; |
| 3249 } | 3249 } |
| 3250 [core.$contains](object) { | 3250 [core.$contains](object) { |
| 3251 return dart.notNull(dart.dinvokef(this[_validKey], object)) && this[_spl
ay](dart.as(object, E)) == 0; | 3251 return dart.notNull(dart.dcall(this[_validKey], object)) && this[_splay]
(dart.as(object, E)) == 0; |
| 3252 } | 3252 } |
| 3253 add(element) { | 3253 add(element) { |
| 3254 let compare = this[_splay](element); | 3254 let compare = this[_splay](element); |
| 3255 if (compare == 0) | 3255 if (compare == 0) |
| 3256 return false; | 3256 return false; |
| 3257 this[_addNewRoot](dart.as(new _SplayTreeNode(element), _SplayTreeNode$(E
)), compare); | 3257 this[_addNewRoot](dart.as(new _SplayTreeNode(element), _SplayTreeNode$(E
)), compare); |
| 3258 return true; | 3258 return true; |
| 3259 } | 3259 } |
| 3260 remove(object) { | 3260 remove(object) { |
| 3261 if (!dart.notNull(dart.dinvokef(this[_validKey], object))) | 3261 if (!dart.notNull(dart.dcall(this[_validKey], object))) |
| 3262 return false; | 3262 return false; |
| 3263 return this[_remove](dart.as(object, E)) != null; | 3263 return this[_remove](dart.as(object, E)) != null; |
| 3264 } | 3264 } |
| 3265 addAll(elements) { | 3265 addAll(elements) { |
| 3266 for (let element of elements) { | 3266 for (let element of elements) { |
| 3267 let compare = this[_splay](element); | 3267 let compare = this[_splay](element); |
| 3268 if (compare != 0) { | 3268 if (compare != 0) { |
| 3269 this[_addNewRoot](dart.as(new _SplayTreeNode(element), _SplayTreeNod
e$(E)), compare); | 3269 this[_addNewRoot](dart.as(new _SplayTreeNode(element), _SplayTreeNod
e$(E)), compare); |
| 3270 } | 3270 } |
| 3271 } | 3271 } |
| 3272 } | 3272 } |
| 3273 removeAll(elements) { | 3273 removeAll(elements) { |
| 3274 for (let element of elements) { | 3274 for (let element of elements) { |
| 3275 if (dart.dinvokef(this[_validKey], element)) | 3275 if (dart.dcall(this[_validKey], element)) |
| 3276 this[_remove](dart.as(element, E)); | 3276 this[_remove](dart.as(element, E)); |
| 3277 } | 3277 } |
| 3278 } | 3278 } |
| 3279 retainAll(elements) { | 3279 retainAll(elements) { |
| 3280 let retainSet = new (SplayTreeSet$(E))(dart.as(this[_comparator], dart.f
unctionType(core.int, [E, E])), this[_validKey]); | 3280 let retainSet = new (SplayTreeSet$(E))(dart.as(this[_comparator], dart.f
unctionType(core.int, [E, E])), this[_validKey]); |
| 3281 let modificationCount = this[_modificationCount]; | 3281 let modificationCount = this[_modificationCount]; |
| 3282 for (let object of elements) { | 3282 for (let object of elements) { |
| 3283 if (modificationCount != this[_modificationCount]) { | 3283 if (modificationCount != this[_modificationCount]) { |
| 3284 throw new core.ConcurrentModificationError(this); | 3284 throw new core.ConcurrentModificationError(this); |
| 3285 } | 3285 } |
| 3286 if (dart.notNull(dart.dinvokef(this[_validKey], object)) && this[_spla
y](dart.as(object, E)) == 0) | 3286 if (dart.notNull(dart.dcall(this[_validKey], object)) && this[_splay](
dart.as(object, E)) == 0) |
| 3287 retainSet.add(this[_root].key); | 3287 retainSet.add(this[_root].key); |
| 3288 } | 3288 } |
| 3289 if (retainSet[_count] != this[_count]) { | 3289 if (retainSet[_count] != this[_count]) { |
| 3290 this[_root] = retainSet[_root]; | 3290 this[_root] = retainSet[_root]; |
| 3291 this[_count] = retainSet[_count]; | 3291 this[_count] = retainSet[_count]; |
| 3292 this[_modificationCount] = dart.notNull(this[_modificationCount]) + 1; | 3292 this[_modificationCount] = dart.notNull(this[_modificationCount]) + 1; |
| 3293 } | 3293 } |
| 3294 } | 3294 } |
| 3295 lookup(object) { | 3295 lookup(object) { |
| 3296 if (!dart.notNull(dart.dinvokef(this[_validKey], object))) | 3296 if (!dart.notNull(dart.dcall(this[_validKey], object))) |
| 3297 return null; | 3297 return null; |
| 3298 let comp = this[_splay](dart.as(object, E)); | 3298 let comp = this[_splay](dart.as(object, E)); |
| 3299 if (comp != 0) | 3299 if (comp != 0) |
| 3300 return null; | 3300 return null; |
| 3301 return this[_root].key; | 3301 return this[_root].key; |
| 3302 } | 3302 } |
| 3303 intersection(other) { | 3303 intersection(other) { |
| 3304 let result = new (SplayTreeSet$(E))(dart.as(this[_comparator], dart.func
tionType(core.int, [E, E])), this[_validKey]); | 3304 let result = new (SplayTreeSet$(E))(dart.as(this[_comparator], dart.func
tionType(core.int, [E, E])), this[_validKey]); |
| 3305 for (let element of this) { | 3305 for (let element of this) { |
| 3306 if (other[core.$contains](element)) | 3306 if (other[core.$contains](element)) |
| (...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3654 let _hashCode = Symbol('_hashCode'); | 3654 let _hashCode = Symbol('_hashCode'); |
| 3655 let _CustomHashMap$ = dart.generic(function(K, V) { | 3655 let _CustomHashMap$ = dart.generic(function(K, V) { |
| 3656 class _CustomHashMap extends _HashMap$(K, V) { | 3656 class _CustomHashMap extends _HashMap$(K, V) { |
| 3657 _CustomHashMap(equals$, hashCode$, validKey) { | 3657 _CustomHashMap(equals$, hashCode$, validKey) { |
| 3658 this[_equals] = equals$; | 3658 this[_equals] = equals$; |
| 3659 this[_hashCode] = hashCode$; | 3659 this[_hashCode] = hashCode$; |
| 3660 this[_validKey] = dart.as(validKey != null ? validKey : v => dart.is(v,
K), _Predicate); | 3660 this[_validKey] = dart.as(validKey != null ? validKey : v => dart.is(v,
K), _Predicate); |
| 3661 super._HashMap(); | 3661 super._HashMap(); |
| 3662 } | 3662 } |
| 3663 get(key) { | 3663 get(key) { |
| 3664 if (!dart.notNull(dart.dinvokef(this[_validKey], key))) | 3664 if (!dart.notNull(dart.dcall(this[_validKey], key))) |
| 3665 return null; | 3665 return null; |
| 3666 return super[_get](key); | 3666 return super[_get](key); |
| 3667 } | 3667 } |
| 3668 set(key, value) { | 3668 set(key, value) { |
| 3669 super[_set](key, value); | 3669 super[_set](key, value); |
| 3670 } | 3670 } |
| 3671 containsKey(key) { | 3671 containsKey(key) { |
| 3672 if (!dart.notNull(dart.dinvokef(this[_validKey], key))) | 3672 if (!dart.notNull(dart.dcall(this[_validKey], key))) |
| 3673 return false; | 3673 return false; |
| 3674 return super[_containsKey](key); | 3674 return super[_containsKey](key); |
| 3675 } | 3675 } |
| 3676 remove(key) { | 3676 remove(key) { |
| 3677 if (!dart.notNull(dart.dinvokef(this[_validKey], key))) | 3677 if (!dart.notNull(dart.dcall(this[_validKey], key))) |
| 3678 return null; | 3678 return null; |
| 3679 return super[_remove](key); | 3679 return super[_remove](key); |
| 3680 } | 3680 } |
| 3681 [_computeHashCode](key) { | 3681 [_computeHashCode](key) { |
| 3682 return this[_hashCode](dart.as(key, K)) & 0x3ffffff; | 3682 return this[_hashCode](dart.as(key, K)) & 0x3ffffff; |
| 3683 } | 3683 } |
| 3684 [_findBucketIndex](bucket, key) { | 3684 [_findBucketIndex](bucket, key) { |
| 3685 if (bucket == null) | 3685 if (bucket == null) |
| 3686 return -1; | 3686 return -1; |
| 3687 let length = bucket.length; | 3687 let length = bucket.length; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 3704 this[_map] = map$; | 3704 this[_map] = map$; |
| 3705 super.IterableBase(); | 3705 super.IterableBase(); |
| 3706 } | 3706 } |
| 3707 get [core.$length]() { | 3707 get [core.$length]() { |
| 3708 return dart.as(dart.dload(this[_map], '_length'), core.int); | 3708 return dart.as(dart.dload(this[_map], '_length'), core.int); |
| 3709 } | 3709 } |
| 3710 get [core.$isEmpty]() { | 3710 get [core.$isEmpty]() { |
| 3711 return dart.equals(dart.dload(this[_map], '_length'), 0); | 3711 return dart.equals(dart.dload(this[_map], '_length'), 0); |
| 3712 } | 3712 } |
| 3713 get [core.$iterator]() { | 3713 get [core.$iterator]() { |
| 3714 return new (HashMapKeyIterator$(E))(this[_map], dart.as(dart.dinvoke(thi
s[_map], '_computeKeys'), core.List)); | 3714 return new (HashMapKeyIterator$(E))(this[_map], dart.as(dart.dsend(this[
_map], '_computeKeys'), core.List)); |
| 3715 } | 3715 } |
| 3716 [core.$contains](element) { | 3716 [core.$contains](element) { |
| 3717 return dart.as(dart.dinvoke(this[_map], 'containsKey', element), core.bo
ol); | 3717 return dart.as(dart.dsend(this[_map], 'containsKey', element), core.bool
); |
| 3718 } | 3718 } |
| 3719 [core.$forEach](f) { | 3719 [core.$forEach](f) { |
| 3720 let keys = dart.as(dart.dinvoke(this[_map], '_computeKeys'), core.List); | 3720 let keys = dart.as(dart.dsend(this[_map], '_computeKeys'), core.List); |
| 3721 for (let i = 0, length = keys.length; dart.notNull(i) < dart.notNull(len
gth); i = dart.notNull(i) + 1) { | 3721 for (let i = 0, length = keys.length; dart.notNull(i) < dart.notNull(len
gth); i = dart.notNull(i) + 1) { |
| 3722 f(dart.as(keys[i], E)); | 3722 f(dart.as(keys[i], E)); |
| 3723 if (keys !== dart.dload(this[_map], '_keys')) { | 3723 if (keys !== dart.dload(this[_map], '_keys')) { |
| 3724 throw new core.ConcurrentModificationError(this[_map]); | 3724 throw new core.ConcurrentModificationError(this[_map]); |
| 3725 } | 3725 } |
| 3726 } | 3726 } |
| 3727 } | 3727 } |
| 3728 } | 3728 } |
| 3729 HashMapKeyIterable[dart.implements] = () => [_internal.EfficientLength]; | 3729 HashMapKeyIterable[dart.implements] = () => [_internal.EfficientLength]; |
| 3730 return HashMapKeyIterable; | 3730 return HashMapKeyIterable; |
| (...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4057 let _LinkedIdentityHashMap = _LinkedIdentityHashMap$(); | 4057 let _LinkedIdentityHashMap = _LinkedIdentityHashMap$(); |
| 4058 let _LinkedCustomHashMap$ = dart.generic(function(K, V) { | 4058 let _LinkedCustomHashMap$ = dart.generic(function(K, V) { |
| 4059 class _LinkedCustomHashMap extends _LinkedHashMap$(K, V) { | 4059 class _LinkedCustomHashMap extends _LinkedHashMap$(K, V) { |
| 4060 _LinkedCustomHashMap(equals$, hashCode$, validKey) { | 4060 _LinkedCustomHashMap(equals$, hashCode$, validKey) { |
| 4061 this[_equals] = equals$; | 4061 this[_equals] = equals$; |
| 4062 this[_hashCode] = hashCode$; | 4062 this[_hashCode] = hashCode$; |
| 4063 this[_validKey] = dart.as(validKey != null ? validKey : v => dart.is(v,
K), _Predicate); | 4063 this[_validKey] = dart.as(validKey != null ? validKey : v => dart.is(v,
K), _Predicate); |
| 4064 super._LinkedHashMap(); | 4064 super._LinkedHashMap(); |
| 4065 } | 4065 } |
| 4066 get(key) { | 4066 get(key) { |
| 4067 if (!dart.notNull(dart.dinvokef(this[_validKey], key))) | 4067 if (!dart.notNull(dart.dcall(this[_validKey], key))) |
| 4068 return null; | 4068 return null; |
| 4069 return super[_get](key); | 4069 return super[_get](key); |
| 4070 } | 4070 } |
| 4071 set(key, value) { | 4071 set(key, value) { |
| 4072 super[_set](key, value); | 4072 super[_set](key, value); |
| 4073 } | 4073 } |
| 4074 containsKey(key) { | 4074 containsKey(key) { |
| 4075 if (!dart.notNull(dart.dinvokef(this[_validKey], key))) | 4075 if (!dart.notNull(dart.dcall(this[_validKey], key))) |
| 4076 return false; | 4076 return false; |
| 4077 return super[_containsKey](key); | 4077 return super[_containsKey](key); |
| 4078 } | 4078 } |
| 4079 remove(key) { | 4079 remove(key) { |
| 4080 if (!dart.notNull(dart.dinvokef(this[_validKey], key))) | 4080 if (!dart.notNull(dart.dcall(this[_validKey], key))) |
| 4081 return null; | 4081 return null; |
| 4082 return super[_remove](key); | 4082 return super[_remove](key); |
| 4083 } | 4083 } |
| 4084 [_computeHashCode](key) { | 4084 [_computeHashCode](key) { |
| 4085 return this[_hashCode](dart.as(key, K)) & 0x3ffffff; | 4085 return this[_hashCode](dart.as(key, K)) & 0x3ffffff; |
| 4086 } | 4086 } |
| 4087 [_findBucketIndex](bucket, key) { | 4087 [_findBucketIndex](bucket, key) { |
| 4088 if (bucket == null) | 4088 if (bucket == null) |
| 4089 return -1; | 4089 return -1; |
| 4090 let length = bucket.length; | 4090 let length = bucket.length; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 4116 get [core.$length]() { | 4116 get [core.$length]() { |
| 4117 return dart.as(dart.dload(this[_map], '_length'), core.int); | 4117 return dart.as(dart.dload(this[_map], '_length'), core.int); |
| 4118 } | 4118 } |
| 4119 get [core.$isEmpty]() { | 4119 get [core.$isEmpty]() { |
| 4120 return dart.equals(dart.dload(this[_map], '_length'), 0); | 4120 return dart.equals(dart.dload(this[_map], '_length'), 0); |
| 4121 } | 4121 } |
| 4122 get [core.$iterator]() { | 4122 get [core.$iterator]() { |
| 4123 return new (LinkedHashMapKeyIterator$(E))(this[_map], dart.as(dart.dload
(this[_map], '_modifications'), core.int)); | 4123 return new (LinkedHashMapKeyIterator$(E))(this[_map], dart.as(dart.dload
(this[_map], '_modifications'), core.int)); |
| 4124 } | 4124 } |
| 4125 [core.$contains](element) { | 4125 [core.$contains](element) { |
| 4126 return dart.as(dart.dinvoke(this[_map], 'containsKey', element), core.bo
ol); | 4126 return dart.as(dart.dsend(this[_map], 'containsKey', element), core.bool
); |
| 4127 } | 4127 } |
| 4128 [core.$forEach](f) { | 4128 [core.$forEach](f) { |
| 4129 let cell = dart.as(dart.dload(this[_map], '_first'), LinkedHashMapCell); | 4129 let cell = dart.as(dart.dload(this[_map], '_first'), LinkedHashMapCell); |
| 4130 let modifications = dart.as(dart.dload(this[_map], '_modifications'), co
re.int); | 4130 let modifications = dart.as(dart.dload(this[_map], '_modifications'), co
re.int); |
| 4131 while (cell != null) { | 4131 while (cell != null) { |
| 4132 f(dart.as(cell[_key], E)); | 4132 f(dart.as(cell[_key], E)); |
| 4133 if (!dart.equals(modifications, dart.dload(this[_map], '_modifications
'))) { | 4133 if (!dart.equals(modifications, dart.dload(this[_map], '_modifications
'))) { |
| 4134 throw new core.ConcurrentModificationError(this[_map]); | 4134 throw new core.ConcurrentModificationError(this[_map]); |
| 4135 } | 4135 } |
| 4136 cell = cell[_next]; | 4136 cell = cell[_next]; |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4453 } | 4453 } |
| 4454 return -1; | 4454 return -1; |
| 4455 } | 4455 } |
| 4456 [_computeHashCode](element) { | 4456 [_computeHashCode](element) { |
| 4457 return this[_hasher](dart.as(element, E)) & 0x3ffffff; | 4457 return this[_hasher](dart.as(element, E)) & 0x3ffffff; |
| 4458 } | 4458 } |
| 4459 add(object) { | 4459 add(object) { |
| 4460 return super[_add](object); | 4460 return super[_add](object); |
| 4461 } | 4461 } |
| 4462 [core.$contains](object) { | 4462 [core.$contains](object) { |
| 4463 if (!dart.notNull(dart.dinvokef(this[_validKey], object))) | 4463 if (!dart.notNull(dart.dcall(this[_validKey], object))) |
| 4464 return false; | 4464 return false; |
| 4465 return super[_contains](object); | 4465 return super[_contains](object); |
| 4466 } | 4466 } |
| 4467 lookup(object) { | 4467 lookup(object) { |
| 4468 if (!dart.notNull(dart.dinvokef(this[_validKey], object))) | 4468 if (!dart.notNull(dart.dcall(this[_validKey], object))) |
| 4469 return null; | 4469 return null; |
| 4470 return super[_lookup](object); | 4470 return super[_lookup](object); |
| 4471 } | 4471 } |
| 4472 remove(object) { | 4472 remove(object) { |
| 4473 if (!dart.notNull(dart.dinvokef(this[_validKey], object))) | 4473 if (!dart.notNull(dart.dcall(this[_validKey], object))) |
| 4474 return false; | 4474 return false; |
| 4475 return super[_remove](object); | 4475 return super[_remove](object); |
| 4476 } | 4476 } |
| 4477 } | 4477 } |
| 4478 return _CustomHashSet; | 4478 return _CustomHashSet; |
| 4479 }); | 4479 }); |
| 4480 let _CustomHashSet = _CustomHashSet$(); | 4480 let _CustomHashSet = _CustomHashSet$(); |
| 4481 let HashSetIterator$ = dart.generic(function(E) { | 4481 let HashSetIterator$ = dart.generic(function(E) { |
| 4482 class HashSetIterator extends core.Object { | 4482 class HashSetIterator extends core.Object { |
| 4483 HashSetIterator(set$, elements$) { | 4483 HashSetIterator(set$, elements$) { |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4825 } | 4825 } |
| 4826 return -1; | 4826 return -1; |
| 4827 } | 4827 } |
| 4828 [_computeHashCode](element) { | 4828 [_computeHashCode](element) { |
| 4829 return this[_hasher](dart.as(element, E)) & 0x3ffffff; | 4829 return this[_hasher](dart.as(element, E)) & 0x3ffffff; |
| 4830 } | 4830 } |
| 4831 add(element) { | 4831 add(element) { |
| 4832 return super[_add](element); | 4832 return super[_add](element); |
| 4833 } | 4833 } |
| 4834 [core.$contains](object) { | 4834 [core.$contains](object) { |
| 4835 if (!dart.notNull(dart.dinvokef(this[_validKey], object))) | 4835 if (!dart.notNull(dart.dcall(this[_validKey], object))) |
| 4836 return false; | 4836 return false; |
| 4837 return super[_contains](object); | 4837 return super[_contains](object); |
| 4838 } | 4838 } |
| 4839 lookup(object) { | 4839 lookup(object) { |
| 4840 if (!dart.notNull(dart.dinvokef(this[_validKey], object))) | 4840 if (!dart.notNull(dart.dcall(this[_validKey], object))) |
| 4841 return null; | 4841 return null; |
| 4842 return super[_lookup](object); | 4842 return super[_lookup](object); |
| 4843 } | 4843 } |
| 4844 remove(object) { | 4844 remove(object) { |
| 4845 if (!dart.notNull(dart.dinvokef(this[_validKey], object))) | 4845 if (!dart.notNull(dart.dcall(this[_validKey], object))) |
| 4846 return false; | 4846 return false; |
| 4847 return super[_remove](object); | 4847 return super[_remove](object); |
| 4848 } | 4848 } |
| 4849 containsAll(elements) { | 4849 containsAll(elements) { |
| 4850 for (let element of elements) { | 4850 for (let element of elements) { |
| 4851 if (!dart.notNull(dart.dinvokef(this[_validKey], element)) || !dart.no
tNull(this[core.$contains](element))) | 4851 if (!dart.notNull(dart.dcall(this[_validKey], element)) || !dart.notNu
ll(this[core.$contains](element))) |
| 4852 return false; | 4852 return false; |
| 4853 } | 4853 } |
| 4854 return true; | 4854 return true; |
| 4855 } | 4855 } |
| 4856 removeAll(elements) { | 4856 removeAll(elements) { |
| 4857 for (let element of elements) { | 4857 for (let element of elements) { |
| 4858 if (dart.dinvokef(this[_validKey], element)) { | 4858 if (dart.dcall(this[_validKey], element)) { |
| 4859 super[_remove](element); | 4859 super[_remove](element); |
| 4860 } | 4860 } |
| 4861 } | 4861 } |
| 4862 } | 4862 } |
| 4863 } | 4863 } |
| 4864 return _LinkedCustomHashSet; | 4864 return _LinkedCustomHashSet; |
| 4865 }); | 4865 }); |
| 4866 let _LinkedCustomHashSet = _LinkedCustomHashSet$(); | 4866 let _LinkedCustomHashSet = _LinkedCustomHashSet$(); |
| 4867 class LinkedHashSetCell extends core.Object { | 4867 class LinkedHashSetCell extends core.Object { |
| 4868 LinkedHashSetCell(element$) { | 4868 LinkedHashSetCell(element$) { |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4959 exports.LinkedHashMapKeyIterable$ = LinkedHashMapKeyIterable$; | 4959 exports.LinkedHashMapKeyIterable$ = LinkedHashMapKeyIterable$; |
| 4960 exports.LinkedHashMapKeyIterable = LinkedHashMapKeyIterable; | 4960 exports.LinkedHashMapKeyIterable = LinkedHashMapKeyIterable; |
| 4961 exports.LinkedHashMapKeyIterator$ = LinkedHashMapKeyIterator$; | 4961 exports.LinkedHashMapKeyIterator$ = LinkedHashMapKeyIterator$; |
| 4962 exports.LinkedHashMapKeyIterator = LinkedHashMapKeyIterator; | 4962 exports.LinkedHashMapKeyIterator = LinkedHashMapKeyIterator; |
| 4963 exports.HashSetIterator$ = HashSetIterator$; | 4963 exports.HashSetIterator$ = HashSetIterator$; |
| 4964 exports.HashSetIterator = HashSetIterator; | 4964 exports.HashSetIterator = HashSetIterator; |
| 4965 exports.LinkedHashSetCell = LinkedHashSetCell; | 4965 exports.LinkedHashSetCell = LinkedHashSetCell; |
| 4966 exports.LinkedHashSetIterator$ = LinkedHashSetIterator$; | 4966 exports.LinkedHashSetIterator$ = LinkedHashSetIterator$; |
| 4967 exports.LinkedHashSetIterator = LinkedHashSetIterator; | 4967 exports.LinkedHashSetIterator = LinkedHashSetIterator; |
| 4968 })(collection || (collection = {})); | 4968 })(collection || (collection = {})); |
| OLD | NEW |