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 } | 9 } |
10 get [core.$length]() { | 10 get [core.$length]() { |
(...skipping 1590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1601 throw _internal.IterableElementError.noElement(); | 1601 throw _internal.IterableElementError.noElement(); |
1602 } | 1602 } |
1603 let result = this[core.$get](dart.notNull(this[core.$length]) - 1); | 1603 let result = this[core.$get](dart.notNull(this[core.$length]) - 1); |
1604 this[core.$length] = dart.notNull(this[core.$length]) - 1; | 1604 this[core.$length] = dart.notNull(this[core.$length]) - 1; |
1605 return result; | 1605 return result; |
1606 } | 1606 } |
1607 [core.$sort](compare) { | 1607 [core.$sort](compare) { |
1608 if (compare === void 0) | 1608 if (compare === void 0) |
1609 compare = null; | 1609 compare = null; |
1610 if (compare == null) { | 1610 if (compare == null) { |
1611 let defaultCompare = core.Comparable.compare; | 1611 let defaultCompare = dart.bind(core.Comparable, 'compare'); |
1612 compare = defaultCompare; | 1612 compare = defaultCompare; |
1613 } | 1613 } |
1614 _internal.Sort.sort(this, compare); | 1614 _internal.Sort.sort(this, compare); |
1615 } | 1615 } |
1616 [core.$shuffle](random) { | 1616 [core.$shuffle](random) { |
1617 if (random === void 0) | 1617 if (random === void 0) |
1618 random = null; | 1618 random = null; |
1619 if (random == null) | 1619 if (random == null) |
1620 random = new math.Random(); | 1620 random = new math.Random(); |
1621 let length = this[core.$length]; | 1621 let length = this[core.$length]; |
(...skipping 1238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2860 let _comparator = Symbol('_comparator'); | 2860 let _comparator = Symbol('_comparator'); |
2861 let _validKey = Symbol('_validKey'); | 2861 let _validKey = Symbol('_validKey'); |
2862 let _internal = Symbol('_internal'); | 2862 let _internal = Symbol('_internal'); |
2863 let SplayTreeMap$ = dart.generic(function(K, V) { | 2863 let SplayTreeMap$ = dart.generic(function(K, V) { |
2864 class SplayTreeMap extends _SplayTree$(K) { | 2864 class SplayTreeMap extends _SplayTree$(K) { |
2865 SplayTreeMap(compare, isValidKey) { | 2865 SplayTreeMap(compare, isValidKey) { |
2866 if (compare === void 0) | 2866 if (compare === void 0) |
2867 compare = null; | 2867 compare = null; |
2868 if (isValidKey === void 0) | 2868 if (isValidKey === void 0) |
2869 isValidKey = null; | 2869 isValidKey = null; |
2870 this[_comparator] = dart.as(compare == null ? core.Comparable.compare :
compare, core.Comparator$(K)); | 2870 this[_comparator] = dart.as(compare == null ? dart.bind(core.Comparable,
'compare') : compare, core.Comparator$(K)); |
2871 this[_validKey] = dart.as(isValidKey != null ? isValidKey : v => dart.is
(v, K), _Predicate); | 2871 this[_validKey] = dart.as(isValidKey != null ? isValidKey : v => dart.is
(v, K), _Predicate); |
2872 super._SplayTree(); | 2872 super._SplayTree(); |
2873 } | 2873 } |
2874 from(other, compare, isValidKey) { | 2874 from(other, compare, isValidKey) { |
2875 if (compare === void 0) | 2875 if (compare === void 0) |
2876 compare = null; | 2876 compare = null; |
2877 if (isValidKey === void 0) | 2877 if (isValidKey === void 0) |
2878 isValidKey = null; | 2878 isValidKey = null; |
2879 let result = new (SplayTreeMap$(K, V))(); | 2879 let result = new (SplayTreeMap$(K, V))(); |
2880 other.forEach((k, v) => { | 2880 other.forEach((k, v) => { |
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3232 }); | 3232 }); |
3233 let _SplayTreeNodeIterator = _SplayTreeNodeIterator$(); | 3233 let _SplayTreeNodeIterator = _SplayTreeNodeIterator$(); |
3234 let _clone = Symbol('_clone'); | 3234 let _clone = Symbol('_clone'); |
3235 let SplayTreeSet$ = dart.generic(function(E) { | 3235 let SplayTreeSet$ = dart.generic(function(E) { |
3236 class SplayTreeSet extends dart.mixin(_SplayTree$(E), IterableMixin$(E), Set
Mixin$(E)) { | 3236 class SplayTreeSet extends dart.mixin(_SplayTree$(E), IterableMixin$(E), Set
Mixin$(E)) { |
3237 SplayTreeSet(compare, isValidKey) { | 3237 SplayTreeSet(compare, isValidKey) { |
3238 if (compare === void 0) | 3238 if (compare === void 0) |
3239 compare = null; | 3239 compare = null; |
3240 if (isValidKey === void 0) | 3240 if (isValidKey === void 0) |
3241 isValidKey = null; | 3241 isValidKey = null; |
3242 this[_comparator] = dart.as(compare == null ? core.Comparable.compare :
compare, core.Comparator); | 3242 this[_comparator] = dart.as(compare == null ? dart.bind(core.Comparable,
'compare') : compare, core.Comparator); |
3243 this[_validKey] = dart.as(isValidKey != null ? isValidKey : v => dart.is
(v, E), _Predicate); | 3243 this[_validKey] = dart.as(isValidKey != null ? isValidKey : v => dart.is
(v, E), _Predicate); |
3244 super._SplayTree(); | 3244 super._SplayTree(); |
3245 } | 3245 } |
3246 from(elements, compare, isValidKey) { | 3246 from(elements, compare, isValidKey) { |
3247 if (compare === void 0) | 3247 if (compare === void 0) |
3248 compare = null; | 3248 compare = null; |
3249 if (isValidKey === void 0) | 3249 if (isValidKey === void 0) |
3250 isValidKey = null; | 3250 isValidKey = null; |
3251 let result = new (SplayTreeSet$(E))(compare, isValidKey); | 3251 let result = new (SplayTreeSet$(E))(compare, isValidKey); |
3252 for (let element of dart.as(elements, core.Iterable$(E))) { | 3252 for (let element of dart.as(elements, core.Iterable$(E))) { |
(...skipping 1754 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5007 exports.LinkedHashMapKeyIterable$ = LinkedHashMapKeyIterable$; | 5007 exports.LinkedHashMapKeyIterable$ = LinkedHashMapKeyIterable$; |
5008 exports.LinkedHashMapKeyIterable = LinkedHashMapKeyIterable; | 5008 exports.LinkedHashMapKeyIterable = LinkedHashMapKeyIterable; |
5009 exports.LinkedHashMapKeyIterator$ = LinkedHashMapKeyIterator$; | 5009 exports.LinkedHashMapKeyIterator$ = LinkedHashMapKeyIterator$; |
5010 exports.LinkedHashMapKeyIterator = LinkedHashMapKeyIterator; | 5010 exports.LinkedHashMapKeyIterator = LinkedHashMapKeyIterator; |
5011 exports.HashSetIterator$ = HashSetIterator$; | 5011 exports.HashSetIterator$ = HashSetIterator$; |
5012 exports.HashSetIterator = HashSetIterator; | 5012 exports.HashSetIterator = HashSetIterator; |
5013 exports.LinkedHashSetCell = LinkedHashSetCell; | 5013 exports.LinkedHashSetCell = LinkedHashSetCell; |
5014 exports.LinkedHashSetIterator$ = LinkedHashSetIterator$; | 5014 exports.LinkedHashSetIterator$ = LinkedHashSetIterator$; |
5015 exports.LinkedHashSetIterator = LinkedHashSetIterator; | 5015 exports.LinkedHashSetIterator = LinkedHashSetIterator; |
5016 })(collection || (collection = {})); | 5016 })(collection || (collection = {})); |
OLD | NEW |