| OLD | NEW |
| 1 var collection; | 1 var collection; |
| 2 (function(collection) { | 2 (function(collection) { |
| 3 'use strict'; | 3 'use strict'; |
| 4 let _HashMap$ = dart.generic(function(K, V) { | 4 let _HashMap$ = dart.generic(function(K, V) { |
| 5 class _HashMap extends dart.Object { | 5 class _HashMap extends dart.Object { |
| 6 _HashMap() { | 6 _HashMap() { |
| 7 this._length = 0; | 7 this._length = 0; |
| 8 this._strings = null; | 8 this._strings = null; |
| 9 this._nums = null; | 9 this._nums = null; |
| 10 this._rest = null; | 10 this._rest = null; |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 } | 280 } |
| 281 } | 281 } |
| 282 return _IdentityHashMap; | 282 return _IdentityHashMap; |
| 283 }); | 283 }); |
| 284 let _IdentityHashMap = _IdentityHashMap$(dynamic, dynamic); | 284 let _IdentityHashMap = _IdentityHashMap$(dynamic, dynamic); |
| 285 let _CustomHashMap$ = dart.generic(function(K, V) { | 285 let _CustomHashMap$ = dart.generic(function(K, V) { |
| 286 class _CustomHashMap extends _HashMap$(K, V) { | 286 class _CustomHashMap extends _HashMap$(K, V) { |
| 287 _CustomHashMap(_equals, _hashCode, validKey) { | 287 _CustomHashMap(_equals, _hashCode, validKey) { |
| 288 this._equals = _equals; | 288 this._equals = _equals; |
| 289 this._hashCode = _hashCode; | 289 this._hashCode = _hashCode; |
| 290 this._validKey = validKey !== null ? validKey : (v) => dart.is(v, K); | 290 this._validKey = dart.as(validKey !== null ? validKey : (v) => dart.is(v
, K), _Predicate); |
| 291 super._HashMap(); | 291 super._HashMap(); |
| 292 } | 292 } |
| 293 get(key) { | 293 get(key) { |
| 294 if (!dart.notNull(this._validKey(key))) | 294 if (!dart.notNull(this._validKey(key))) |
| 295 return dart.as(null, V); | 295 return dart.as(null, V); |
| 296 return super._get(key); | 296 return super._get(key); |
| 297 } | 297 } |
| 298 set(key, value) { | 298 set(key, value) { |
| 299 super._set(key, value); | 299 super._set(key, value); |
| 300 } | 300 } |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 this._map = _map; | 334 this._map = _map; |
| 335 super.IterableBase(); | 335 super.IterableBase(); |
| 336 } | 336 } |
| 337 get length() { | 337 get length() { |
| 338 return dart.as(dart.dload(this._map, '_length'), core.int); | 338 return dart.as(dart.dload(this._map, '_length'), core.int); |
| 339 } | 339 } |
| 340 get isEmpty() { | 340 get isEmpty() { |
| 341 return dart.equals(dart.dload(this._map, '_length'), 0); | 341 return dart.equals(dart.dload(this._map, '_length'), 0); |
| 342 } | 342 } |
| 343 get iterator() { | 343 get iterator() { |
| 344 return new HashMapKeyIterator(this._map, dart.dinvoke(this._map, '_compu
teKeys')); | 344 return new HashMapKeyIterator(this._map, dart.as(dart.dinvoke(this._map,
'_computeKeys'), core.List)); |
| 345 } | 345 } |
| 346 contains(element) { | 346 contains(element) { |
| 347 return dart.as(dart.dinvoke(this._map, 'containsKey', element), core.boo
l); | 347 return dart.as(dart.dinvoke(this._map, 'containsKey', element), core.boo
l); |
| 348 } | 348 } |
| 349 forEach(f) { | 349 forEach(f) { |
| 350 let keys = dart.as(dart.dinvoke(this._map, '_computeKeys'), core.List); | 350 let keys = dart.as(dart.dinvoke(this._map, '_computeKeys'), core.List); |
| 351 for (let i = 0, length = dart.as(dart.dinvokef(/* Unimplemented unknown
name */JS, 'int', '#.length', keys), core.int); i < length; i++) { | 351 for (let i = 0, length = dart.as(dart.dinvokef(/* Unimplemented unknown
name */JS, 'int', '#.length', keys), core.int); i < length; i++) { |
| 352 f(dart.as(dart.dinvokef(/* Unimplemented unknown name */JS, 'var', '#[
#]', keys, i), E)); | 352 f(dart.as(dart.dinvokef(/* Unimplemented unknown name */JS, 'var', '#[
#]', keys, i), E)); |
| 353 if (dart.dinvokef(/* Unimplemented unknown name */JS, 'bool', '# !== #
', keys, dart.dload(this._map, '_keys'))) { | 353 if (dart.dinvokef(/* Unimplemented unknown name */JS, 'bool', '# !== #
', keys, dart.dload(this._map, '_keys'))) { |
| 354 throw new core.ConcurrentModificationError(this._map); | 354 throw new core.ConcurrentModificationError(this._map); |
| (...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 673 } | 673 } |
| 674 } | 674 } |
| 675 return _LinkedIdentityHashMap; | 675 return _LinkedIdentityHashMap; |
| 676 }); | 676 }); |
| 677 let _LinkedIdentityHashMap = _LinkedIdentityHashMap$(dynamic, dynamic); | 677 let _LinkedIdentityHashMap = _LinkedIdentityHashMap$(dynamic, dynamic); |
| 678 let _LinkedCustomHashMap$ = dart.generic(function(K, V) { | 678 let _LinkedCustomHashMap$ = dart.generic(function(K, V) { |
| 679 class _LinkedCustomHashMap extends _LinkedHashMap$(K, V) { | 679 class _LinkedCustomHashMap extends _LinkedHashMap$(K, V) { |
| 680 _LinkedCustomHashMap(_equals, _hashCode, validKey) { | 680 _LinkedCustomHashMap(_equals, _hashCode, validKey) { |
| 681 this._equals = _equals; | 681 this._equals = _equals; |
| 682 this._hashCode = _hashCode; | 682 this._hashCode = _hashCode; |
| 683 this._validKey = validKey !== null ? validKey : (v) => dart.is(v, K); | 683 this._validKey = dart.as(validKey !== null ? validKey : (v) => dart.is(v
, K), _Predicate); |
| 684 super._LinkedHashMap(); | 684 super._LinkedHashMap(); |
| 685 } | 685 } |
| 686 get(key) { | 686 get(key) { |
| 687 if (!dart.notNull(this._validKey(key))) | 687 if (!dart.notNull(this._validKey(key))) |
| 688 return dart.as(null, V); | 688 return dart.as(null, V); |
| 689 return super._get(key); | 689 return super._get(key); |
| 690 } | 690 } |
| 691 set(key, value) { | 691 set(key, value) { |
| 692 super._set(key, value); | 692 super._set(key, value); |
| 693 } | 693 } |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 733 this._map = _map; | 733 this._map = _map; |
| 734 super.IterableBase(); | 734 super.IterableBase(); |
| 735 } | 735 } |
| 736 get length() { | 736 get length() { |
| 737 return dart.as(dart.dload(this._map, '_length'), core.int); | 737 return dart.as(dart.dload(this._map, '_length'), core.int); |
| 738 } | 738 } |
| 739 get isEmpty() { | 739 get isEmpty() { |
| 740 return dart.equals(dart.dload(this._map, '_length'), 0); | 740 return dart.equals(dart.dload(this._map, '_length'), 0); |
| 741 } | 741 } |
| 742 get iterator() { | 742 get iterator() { |
| 743 return new LinkedHashMapKeyIterator(this._map, dart.dload(this._map, '_m
odifications')); | 743 return new LinkedHashMapKeyIterator(this._map, dart.as(dart.dload(this._
map, '_modifications'), core.int)); |
| 744 } | 744 } |
| 745 contains(element) { | 745 contains(element) { |
| 746 return dart.as(dart.dinvoke(this._map, 'containsKey', element), core.boo
l); | 746 return dart.as(dart.dinvoke(this._map, 'containsKey', element), core.boo
l); |
| 747 } | 747 } |
| 748 forEach(f) { | 748 forEach(f) { |
| 749 let cell = dart.as(dart.dload(this._map, '_first'), LinkedHashMapCell); | 749 let cell = dart.as(dart.dload(this._map, '_first'), LinkedHashMapCell); |
| 750 let modifications = dart.as(dart.dload(this._map, '_modifications'), cor
e.int); | 750 let modifications = dart.as(dart.dload(this._map, '_modifications'), cor
e.int); |
| 751 while (cell !== null) { | 751 while (cell !== null) { |
| 752 f(dart.as(cell._key, E)); | 752 f(dart.as(cell._key, E)); |
| 753 if (modifications !== dart.dload(this._map, '_modifications')) { | 753 if (modifications !== dart.dload(this._map, '_modifications')) { |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1038 } | 1038 } |
| 1039 } | 1039 } |
| 1040 return _IdentityHashSet; | 1040 return _IdentityHashSet; |
| 1041 }); | 1041 }); |
| 1042 let _IdentityHashSet = _IdentityHashSet$(dynamic); | 1042 let _IdentityHashSet = _IdentityHashSet$(dynamic); |
| 1043 let _CustomHashSet$ = dart.generic(function(E) { | 1043 let _CustomHashSet$ = dart.generic(function(E) { |
| 1044 class _CustomHashSet extends _HashSet$(E) { | 1044 class _CustomHashSet extends _HashSet$(E) { |
| 1045 _CustomHashSet(_equality, _hasher, validKey) { | 1045 _CustomHashSet(_equality, _hasher, validKey) { |
| 1046 this._equality = _equality; | 1046 this._equality = _equality; |
| 1047 this._hasher = _hasher; | 1047 this._hasher = _hasher; |
| 1048 this._validKey = validKey !== null ? validKey : (x) => dart.is(x, E); | 1048 this._validKey = dart.as(validKey !== null ? validKey : (x) => dart.is(x
, E), _Predicate); |
| 1049 super._HashSet(); | 1049 super._HashSet(); |
| 1050 } | 1050 } |
| 1051 _newSet() { | 1051 _newSet() { |
| 1052 return new _CustomHashSet(this._equality, this._hasher, this._validKey); | 1052 return new _CustomHashSet(this._equality, this._hasher, this._validKey); |
| 1053 } | 1053 } |
| 1054 _findBucketIndex(bucket, element) { | 1054 _findBucketIndex(bucket, element) { |
| 1055 if (bucket === null) | 1055 if (bucket === null) |
| 1056 return -1; | 1056 return -1; |
| 1057 let length = dart.as(dart.dinvokef(/* Unimplemented unknown name */JS, '
int', '#.length', bucket), core.int); | 1057 let length = dart.as(dart.dinvokef(/* Unimplemented unknown name */JS, '
int', '#.length', bucket), core.int); |
| 1058 for (let i = 0; i < length; i++) { | 1058 for (let i = 0; i < length; i++) { |
| (...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1406 } | 1406 } |
| 1407 } | 1407 } |
| 1408 return _LinkedIdentityHashSet; | 1408 return _LinkedIdentityHashSet; |
| 1409 }); | 1409 }); |
| 1410 let _LinkedIdentityHashSet = _LinkedIdentityHashSet$(dynamic); | 1410 let _LinkedIdentityHashSet = _LinkedIdentityHashSet$(dynamic); |
| 1411 let _LinkedCustomHashSet$ = dart.generic(function(E) { | 1411 let _LinkedCustomHashSet$ = dart.generic(function(E) { |
| 1412 class _LinkedCustomHashSet extends _LinkedHashSet$(E) { | 1412 class _LinkedCustomHashSet extends _LinkedHashSet$(E) { |
| 1413 _LinkedCustomHashSet(_equality, _hasher, validKey) { | 1413 _LinkedCustomHashSet(_equality, _hasher, validKey) { |
| 1414 this._equality = _equality; | 1414 this._equality = _equality; |
| 1415 this._hasher = _hasher; | 1415 this._hasher = _hasher; |
| 1416 this._validKey = validKey !== null ? validKey : (x) => dart.is(x, E); | 1416 this._validKey = dart.as(validKey !== null ? validKey : (x) => dart.is(x
, E), _Predicate); |
| 1417 super._LinkedHashSet(); | 1417 super._LinkedHashSet(); |
| 1418 } | 1418 } |
| 1419 _newSet() { | 1419 _newSet() { |
| 1420 return new _LinkedCustomHashSet(this._equality, this._hasher, this._vali
dKey); | 1420 return new _LinkedCustomHashSet(this._equality, this._hasher, this._vali
dKey); |
| 1421 } | 1421 } |
| 1422 _findBucketIndex(bucket, element) { | 1422 _findBucketIndex(bucket, element) { |
| 1423 if (bucket === null) | 1423 if (bucket === null) |
| 1424 return -1; | 1424 return -1; |
| 1425 let length = dart.as(dart.dinvokef(/* Unimplemented unknown name */JS, '
int', '#.length', bucket), core.int); | 1425 let length = dart.as(dart.dinvokef(/* Unimplemented unknown name */JS, '
int', '#.length', bucket), core.int); |
| 1426 for (let i = 0; i < length; i++) { | 1426 for (let i = 0; i < length; i++) { |
| (...skipping 1215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2642 if (this.length === 0) | 2642 if (this.length === 0) |
| 2643 return ""; | 2643 return ""; |
| 2644 let buffer = new core.StringBuffer(); | 2644 let buffer = new core.StringBuffer(); |
| 2645 buffer.writeAll(this, separator); | 2645 buffer.writeAll(this, separator); |
| 2646 return buffer.toString(); | 2646 return buffer.toString(); |
| 2647 } | 2647 } |
| 2648 where(test) { | 2648 where(test) { |
| 2649 return new _internal.WhereIterable(this, test); | 2649 return new _internal.WhereIterable(this, test); |
| 2650 } | 2650 } |
| 2651 map(f) { | 2651 map(f) { |
| 2652 return new _internal.MappedListIterable(this, f); | 2652 return new _internal.MappedListIterable(this, dart.as(f, dart.throw_("Un
implemented type (dynamic) → dynamic"))); |
| 2653 } | 2653 } |
| 2654 expand(f) { | 2654 expand(f) { |
| 2655 return new _internal.ExpandIterable(this, f); | 2655 return new _internal.ExpandIterable(this, f); |
| 2656 } | 2656 } |
| 2657 reduce(combine) { | 2657 reduce(combine) { |
| 2658 let length = this.length; | 2658 let length = this.length; |
| 2659 if (length === 0) | 2659 if (length === 0) |
| 2660 throw _internal.IterableElementError.noElement(); | 2660 throw _internal.IterableElementError.noElement(); |
| 2661 let value = this.get(0); | 2661 let value = this.get(0); |
| 2662 for (let i = 1; i < length; i++) { | 2662 for (let i = 1; i < length; i++) { |
| 2663 value = combine(value, this.get(i)); | 2663 value = combine(value, this.get(i)); |
| 2664 if (length !== this.length) { | 2664 if (length !== this.length) { |
| 2665 throw new core.ConcurrentModificationError(this); | 2665 throw new core.ConcurrentModificationError(this); |
| 2666 } | 2666 } |
| 2667 } | 2667 } |
| 2668 return value; | 2668 return value; |
| 2669 } | 2669 } |
| 2670 fold(initialValue, combine) { | 2670 fold(initialValue, combine) { |
| 2671 let value = initialValue; | 2671 let value = initialValue; |
| 2672 let length = this.length; | 2672 let length = this.length; |
| 2673 for (let i = 0; i < length; i++) { | 2673 for (let i = 0; i < length; i++) { |
| 2674 value = combine(value, this.get(i)); | 2674 value = combine(value, this.get(i)); |
| 2675 if (length !== this.length) { | 2675 if (length !== this.length) { |
| 2676 throw new core.ConcurrentModificationError(this); | 2676 throw new core.ConcurrentModificationError(this); |
| 2677 } | 2677 } |
| 2678 } | 2678 } |
| 2679 return value; | 2679 return value; |
| 2680 } | 2680 } |
| 2681 skip(count) { | 2681 skip(count) { |
| 2682 return new _internal.SubListIterable(this, count, null); | 2682 return new _internal.SubListIterable(this, count, dart.as(null, core.int
)); |
| 2683 } | 2683 } |
| 2684 skipWhile(test) { | 2684 skipWhile(test) { |
| 2685 return new _internal.SkipWhileIterable(this, test); | 2685 return new _internal.SkipWhileIterable(this, test); |
| 2686 } | 2686 } |
| 2687 take(count) { | 2687 take(count) { |
| 2688 return new _internal.SubListIterable(this, 0, count); | 2688 return new _internal.SubListIterable(this, 0, count); |
| 2689 } | 2689 } |
| 2690 takeWhile(test) { | 2690 takeWhile(test) { |
| 2691 return new _internal.TakeWhileIterable(this, test); | 2691 return new _internal.TakeWhileIterable(this, test); |
| 2692 } | 2692 } |
| (...skipping 1364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4057 this.value = value; | 4057 this.value = value; |
| 4058 super._SplayTreeNode(key); | 4058 super._SplayTreeNode(key); |
| 4059 } | 4059 } |
| 4060 } | 4060 } |
| 4061 return _SplayTreeMapNode; | 4061 return _SplayTreeMapNode; |
| 4062 }); | 4062 }); |
| 4063 let _SplayTreeMapNode = _SplayTreeMapNode$(dynamic, dynamic); | 4063 let _SplayTreeMapNode = _SplayTreeMapNode$(dynamic, dynamic); |
| 4064 let _SplayTree$ = dart.generic(function(K) { | 4064 let _SplayTree$ = dart.generic(function(K) { |
| 4065 class _SplayTree extends dart.Object { | 4065 class _SplayTree extends dart.Object { |
| 4066 _SplayTree() { | 4066 _SplayTree() { |
| 4067 this._dummy = new _SplayTreeNode(null); | 4067 this._dummy = new _SplayTreeNode(dart.as(null, K)); |
| 4068 this._root = null; | 4068 this._root = null; |
| 4069 this._count = 0; | 4069 this._count = 0; |
| 4070 this._modificationCount = 0; | 4070 this._modificationCount = 0; |
| 4071 this._splayCount = 0; | 4071 this._splayCount = 0; |
| 4072 } | 4072 } |
| 4073 _splay(key) { | 4073 _splay(key) { |
| 4074 if (this._root === null) | 4074 if (this._root === null) |
| 4075 return -1; | 4075 return -1; |
| 4076 let left = this._dummy; | 4076 let left = this._dummy; |
| 4077 let right = this._dummy; | 4077 let right = this._dummy; |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4209 return _TypeTest; | 4209 return _TypeTest; |
| 4210 }); | 4210 }); |
| 4211 let _TypeTest = _TypeTest$(dynamic); | 4211 let _TypeTest = _TypeTest$(dynamic); |
| 4212 let SplayTreeMap$ = dart.generic(function(K, V) { | 4212 let SplayTreeMap$ = dart.generic(function(K, V) { |
| 4213 class SplayTreeMap extends _SplayTree$(K) { | 4213 class SplayTreeMap extends _SplayTree$(K) { |
| 4214 SplayTreeMap(compare, isValidKey) { | 4214 SplayTreeMap(compare, isValidKey) { |
| 4215 if (compare === void 0) | 4215 if (compare === void 0) |
| 4216 compare = null; | 4216 compare = null; |
| 4217 if (isValidKey === void 0) | 4217 if (isValidKey === void 0) |
| 4218 isValidKey = null; | 4218 isValidKey = null; |
| 4219 this._comparator = compare === null ? core.Comparable.compare : compare; | 4219 this._comparator = dart.as(compare === null ? core.Comparable.compare :
compare, core.Comparator); |
| 4220 this._validKey = isValidKey !== null ? isValidKey : (v) => dart.is(v, K)
; | 4220 this._validKey = dart.as(isValidKey !== null ? isValidKey : (v) => dart.
is(v, K), _Predicate); |
| 4221 super._SplayTree(); | 4221 super._SplayTree(); |
| 4222 } | 4222 } |
| 4223 SplayTreeMap$from(other, compare, isValidKey) { | 4223 SplayTreeMap$from(other, compare, isValidKey) { |
| 4224 if (compare === void 0) | 4224 if (compare === void 0) |
| 4225 compare = null; | 4225 compare = null; |
| 4226 if (isValidKey === void 0) | 4226 if (isValidKey === void 0) |
| 4227 isValidKey = null; | 4227 isValidKey = null; |
| 4228 let result = new SplayTreeMap(); | 4228 let result = new SplayTreeMap(); |
| 4229 other.forEach((k, v) => { | 4229 other.forEach((k, v) => { |
| 4230 result.set(k, dart.as(v, V)); | 4230 result.set(k, dart.as(v, V)); |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4494 return this._tree._count; | 4494 return this._tree._count; |
| 4495 } | 4495 } |
| 4496 get isEmpty() { | 4496 get isEmpty() { |
| 4497 return this._tree._count === 0; | 4497 return this._tree._count === 0; |
| 4498 } | 4498 } |
| 4499 get iterator() { | 4499 get iterator() { |
| 4500 return new _SplayTreeKeyIterator(this._tree); | 4500 return new _SplayTreeKeyIterator(this._tree); |
| 4501 } | 4501 } |
| 4502 toSet() { | 4502 toSet() { |
| 4503 let setOrMap = this._tree; | 4503 let setOrMap = this._tree; |
| 4504 let set = new SplayTreeSet(setOrMap._comparator, setOrMap._validKey); | 4504 let set = new SplayTreeSet(dart.as(setOrMap._comparator, dart.throw_("Un
implemented type (K, K) → int")), dart.as(setOrMap._validKey, dart.throw_("Unimp
lemented type (dynamic) → bool"))); |
| 4505 set._count = this._tree._count; | 4505 set._count = this._tree._count; |
| 4506 set._root = set._copyNode(this._tree._root); | 4506 set._root = set._copyNode(this._tree._root); |
| 4507 return set; | 4507 return set; |
| 4508 } | 4508 } |
| 4509 } | 4509 } |
| 4510 return _SplayTreeKeyIterable; | 4510 return _SplayTreeKeyIterable; |
| 4511 }); | 4511 }); |
| 4512 let _SplayTreeKeyIterable = _SplayTreeKeyIterable$(dynamic); | 4512 let _SplayTreeKeyIterable = _SplayTreeKeyIterable$(dynamic); |
| 4513 let _SplayTreeValueIterable$ = dart.generic(function(K, V) { | 4513 let _SplayTreeValueIterable$ = dart.generic(function(K, V) { |
| 4514 class _SplayTreeValueIterable extends IterableBase$(V) { | 4514 class _SplayTreeValueIterable extends IterableBase$(V) { |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4569 return _SplayTreeNodeIterator; | 4569 return _SplayTreeNodeIterator; |
| 4570 }); | 4570 }); |
| 4571 let _SplayTreeNodeIterator = _SplayTreeNodeIterator$(dynamic); | 4571 let _SplayTreeNodeIterator = _SplayTreeNodeIterator$(dynamic); |
| 4572 let SplayTreeSet$ = dart.generic(function(E) { | 4572 let SplayTreeSet$ = dart.generic(function(E) { |
| 4573 class SplayTreeSet extends dart.mixin(_SplayTree$(E), IterableMixin$(E), Set
Mixin$(E)) { | 4573 class SplayTreeSet extends dart.mixin(_SplayTree$(E), IterableMixin$(E), Set
Mixin$(E)) { |
| 4574 SplayTreeSet(compare, isValidKey) { | 4574 SplayTreeSet(compare, isValidKey) { |
| 4575 if (compare === void 0) | 4575 if (compare === void 0) |
| 4576 compare = null; | 4576 compare = null; |
| 4577 if (isValidKey === void 0) | 4577 if (isValidKey === void 0) |
| 4578 isValidKey = null; | 4578 isValidKey = null; |
| 4579 this._comparator = compare === null ? core.Comparable.compare : compare; | 4579 this._comparator = dart.as(compare === null ? core.Comparable.compare :
compare, core.Comparator); |
| 4580 this._validKey = isValidKey !== null ? isValidKey : (v) => dart.is(v, E)
; | 4580 this._validKey = dart.as(isValidKey !== null ? isValidKey : (v) => dart.
is(v, E), _Predicate); |
| 4581 super._SplayTree(); | 4581 super._SplayTree(); |
| 4582 } | 4582 } |
| 4583 SplayTreeSet$from(elements, compare, isValidKey) { | 4583 SplayTreeSet$from(elements, compare, isValidKey) { |
| 4584 if (compare === void 0) | 4584 if (compare === void 0) |
| 4585 compare = null; | 4585 compare = null; |
| 4586 if (isValidKey === void 0) | 4586 if (isValidKey === void 0) |
| 4587 isValidKey = null; | 4587 isValidKey = null; |
| 4588 let result = new SplayTreeSet(compare, isValidKey); | 4588 let result = new SplayTreeSet(compare, isValidKey); |
| 4589 for (let element of elements) { | 4589 for (let element of elements) { |
| 4590 result.add(element); | 4590 result.add(element); |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4787 collection.ListQueue$ = ListQueue$; | 4787 collection.ListQueue$ = ListQueue$; |
| 4788 collection.SetMixin = SetMixin; | 4788 collection.SetMixin = SetMixin; |
| 4789 collection.SetMixin$ = SetMixin$; | 4789 collection.SetMixin$ = SetMixin$; |
| 4790 collection.SetBase = SetBase; | 4790 collection.SetBase = SetBase; |
| 4791 collection.SetBase$ = SetBase$; | 4791 collection.SetBase$ = SetBase$; |
| 4792 collection.SplayTreeMap = SplayTreeMap; | 4792 collection.SplayTreeMap = SplayTreeMap; |
| 4793 collection.SplayTreeMap$ = SplayTreeMap$; | 4793 collection.SplayTreeMap$ = SplayTreeMap$; |
| 4794 collection.SplayTreeSet = SplayTreeSet; | 4794 collection.SplayTreeSet = SplayTreeSet; |
| 4795 collection.SplayTreeSet$ = SplayTreeSet$; | 4795 collection.SplayTreeSet$ = SplayTreeSet$; |
| 4796 })(collection || (collection = {})); | 4796 })(collection || (collection = {})); |
| OLD | NEW |