| OLD | NEW |
| 1 part of dart.collection; | 1 part of dart.collection; |
| 2 typedef bool _Predicate<T>(T value); | 2 typedef bool _Predicate<T>(T value); |
| 3 class _SplayTreeNode<K> {final K key; | 3 class _SplayTreeNode<K> {final K key; |
| 4 _SplayTreeNode<K> left; | 4 _SplayTreeNode<K> left; |
| 5 _SplayTreeNode<K> right; | 5 _SplayTreeNode<K> right; |
| 6 _SplayTreeNode(K this.key); | 6 _SplayTreeNode(K this.key); |
| 7 } | 7 } |
| 8 class _SplayTreeMapNode<K, V> extends _SplayTreeNode<K> {V value; | 8 class _SplayTreeMapNode<K, V> extends _SplayTreeNode<K> {V value; |
| 9 _SplayTreeMapNode(K key, V this.value) : super(key); | 9 _SplayTreeMapNode(K key, V this.value) : super(key); |
| 10 } | 10 } |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 _count = 0; | 142 _count = 0; |
| 143 _modificationCount++; | 143 _modificationCount++; |
| 144 } | 144 } |
| 145 } | 145 } |
| 146 class _TypeTest<T> {bool test(v) => v is T; | 146 class _TypeTest<T> {bool test(v) => v is T; |
| 147 } | 147 } |
| 148 class SplayTreeMap<K, V> extends _SplayTree<K> implements Map<K, V> {Comparator
<K> _comparator; | 148 class SplayTreeMap<K, V> extends _SplayTree<K> implements Map<K, V> {Comparator
<K> _comparator; |
| 149 _Predicate _validKey; | 149 _Predicate _validKey; |
| 150 SplayTreeMap([int compare(K key1, K key2), bool isValidKey(potentialKey)]) : _c
omparator = ((__x12) => DEVC$RT.cast(__x12, dynamic, DEVC$RT.type((Comparator<K>
_) { | 150 SplayTreeMap([int compare(K key1, K key2), bool isValidKey(potentialKey)]) : _c
omparator = ((__x12) => DEVC$RT.cast(__x12, dynamic, DEVC$RT.type((Comparator<K>
_) { |
| 151 } | 151 } |
| 152 ), "CompositeCast", """line 268, column 23 of dart:collection/splay_tree.dart: "
"", __x12 is Comparator<K>, false))((compare == null) ? Comparable.compare : com
pare), _validKey = ((__x13) => DEVC$RT.cast(__x13, dynamic, DEVC$RT.type((_Predi
cate<dynamic> _) { | 152 ), "CompositeCast", """line 268, column 23 of dart:collection/splay_tree.dart: "
"", __x12 is Comparator<K>, false))((compare == null) ? Comparable.compare : com
pare), _validKey = (isValidKey != null) ? isValidKey : ((v) => v is K); |
| 153 } | |
| 154 ), "CompositeCast", """line 269, column 21 of dart:collection/splay_tree.dart: "
"", __x13 is _Predicate<dynamic>, false))((isValidKey != null) ? isValidKey : ((
v) => v is K)); | |
| 155 factory SplayTreeMap.from(Map other, [int compare(K key1, K key2), bool isValid
Key(potentialKey)]) { | 153 factory SplayTreeMap.from(Map other, [int compare(K key1, K key2), bool isValid
Key(potentialKey)]) { |
| 156 SplayTreeMap<K, V> result = new SplayTreeMap<K, V>(); | 154 SplayTreeMap<K, V> result = new SplayTreeMap<K, V>(); |
| 157 other.forEach((k, v) { | 155 other.forEach((k, v) { |
| 158 result[k] = DEVC$RT.cast(v, dynamic, V, "CompositeCast", """line 278, column 40
of dart:collection/splay_tree.dart: """, v is V, false); | 156 result[k] = DEVC$RT.cast(v, dynamic, V, "CompositeCast", """line 278, column 40
of dart:collection/splay_tree.dart: """, v is V, false); |
| 159 } | 157 } |
| 160 ); | 158 ); |
| 161 return result; | 159 return result; |
| 162 } | 160 } |
| 163 factory SplayTreeMap.fromIterable(Iterable iterable, { | 161 factory SplayTreeMap.fromIterable(Iterable iterable, { |
| 164 K key(element), V value(element), int compare(K key1, K key2), bool isValidKey(p
otentialKey)} | 162 K key(element), V value(element), int compare(K key1, K key2), bool isValidKey(p
otentialKey)} |
| (...skipping 20 matching lines...) Expand all Loading... |
| 185 ), DEVC$RT.type((_SplayTreeMapNode<dynamic, dynamic> _) { | 183 ), DEVC$RT.type((_SplayTreeMapNode<dynamic, dynamic> _) { |
| 186 } | 184 } |
| 187 ), "AssignmentCast", """line 333, column 37 of dart:collection/splay_tree.dart:
""", _root is _SplayTreeMapNode<dynamic, dynamic>, true); | 185 ), "AssignmentCast", """line 333, column 37 of dart:collection/splay_tree.dart:
""", _root is _SplayTreeMapNode<dynamic, dynamic>, true); |
| 188 return DEVC$RT.cast(mapRoot.value, dynamic, V, "CompositeCast", """line 334, co
lumn 16 of dart:collection/splay_tree.dart: """, mapRoot.value is V, false); | 186 return DEVC$RT.cast(mapRoot.value, dynamic, V, "CompositeCast", """line 334, co
lumn 16 of dart:collection/splay_tree.dart: """, mapRoot.value is V, false); |
| 189 } | 187 } |
| 190 } | 188 } |
| 191 return null; | 189 return null; |
| 192 } | 190 } |
| 193 V remove(Object key) { | 191 V remove(Object key) { |
| 194 if (!_validKey(key)) return null; | 192 if (!_validKey(key)) return null; |
| 195 _SplayTreeMapNode mapRoot = ((__x14) => DEVC$RT.cast(__x14, DEVC$RT.type((_Spla
yTreeNode<dynamic> _) { | 193 _SplayTreeMapNode mapRoot = ((__x13) => DEVC$RT.cast(__x13, DEVC$RT.type((_Spla
yTreeNode<dynamic> _) { |
| 196 } | 194 } |
| 197 ), DEVC$RT.type((_SplayTreeMapNode<dynamic, dynamic> _) { | 195 ), DEVC$RT.type((_SplayTreeMapNode<dynamic, dynamic> _) { |
| 198 } | 196 } |
| 199 ), "AssignmentCast", """line 342, column 33 of dart:collection/splay_tree.dart:
""", __x14 is _SplayTreeMapNode<dynamic, dynamic>, true))(_remove(DEVC$RT.cast(k
ey, Object, K, "CompositeCast", """line 342, column 41 of dart:collection/splay_
tree.dart: """, key is K, false))); | 197 ), "AssignmentCast", """line 342, column 33 of dart:collection/splay_tree.dart:
""", __x13 is _SplayTreeMapNode<dynamic, dynamic>, true))(_remove(DEVC$RT.cast(k
ey, Object, K, "CompositeCast", """line 342, column 41 of dart:collection/splay_
tree.dart: """, key is K, false))); |
| 200 if (mapRoot != null) return DEVC$RT.cast(mapRoot.value, dynamic, V, "CompositeC
ast", """line 343, column 33 of dart:collection/splay_tree.dart: """, mapRoot.va
lue is V, false); | 198 if (mapRoot != null) return DEVC$RT.cast(mapRoot.value, dynamic, V, "CompositeC
ast", """line 343, column 33 of dart:collection/splay_tree.dart: """, mapRoot.va
lue is V, false); |
| 201 return null; | 199 return null; |
| 202 } | 200 } |
| 203 void operator []=(K key, V value) { | 201 void operator []=(K key, V value) { |
| 204 if (key == null) throw new ArgumentError(key); | 202 if (key == null) throw new ArgumentError(key); |
| 205 int comp = _splay(key); | 203 int comp = _splay(key); |
| 206 if (comp == 0) { | 204 if (comp == 0) { |
| 207 _SplayTreeMapNode mapRoot = DEVC$RT.cast(_root, DEVC$RT.type((_SplayTreeNode<K>
_) { | 205 _SplayTreeMapNode mapRoot = DEVC$RT.cast(_root, DEVC$RT.type((_SplayTreeNode<K>
_) { |
| 208 } | 206 } |
| 209 ), DEVC$RT.type((_SplayTreeMapNode<dynamic, dynamic> _) { | 207 ), DEVC$RT.type((_SplayTreeMapNode<dynamic, dynamic> _) { |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 } | 385 } |
| 388 T _getValue(_SplayTreeNode node); | 386 T _getValue(_SplayTreeNode node); |
| 389 } | 387 } |
| 390 class _SplayTreeKeyIterable<K> extends IterableBase<K> implements EfficientLeng
th {_SplayTree<K> _tree; | 388 class _SplayTreeKeyIterable<K> extends IterableBase<K> implements EfficientLeng
th {_SplayTree<K> _tree; |
| 391 _SplayTreeKeyIterable(this._tree); | 389 _SplayTreeKeyIterable(this._tree); |
| 392 int get length => _tree._count; | 390 int get length => _tree._count; |
| 393 bool get isEmpty => _tree._count == 0; | 391 bool get isEmpty => _tree._count == 0; |
| 394 Iterator<K> get iterator => new _SplayTreeKeyIterator<K>(_tree); | 392 Iterator<K> get iterator => new _SplayTreeKeyIterator<K>(_tree); |
| 395 Set<K> toSet() { | 393 Set<K> toSet() { |
| 396 var setOrMap = _tree; | 394 var setOrMap = _tree; |
| 397 SplayTreeSet<K> set = new SplayTreeSet<K>(DEVC$RT.cast(setOrMap._comparator, dy
namic, DEVC$RT.type((__CastType15<K> _) { | 395 SplayTreeSet<K> set = new SplayTreeSet<K>(DEVC$RT.cast(setOrMap._comparator, dy
namic, DEVC$RT.type((__CastType14<K> _) { |
| 398 } | 396 } |
| 399 ), "CompositeCast", """line 613, column 29 of dart:collection/splay_tree.dart: "
"", setOrMap._comparator is __CastType15<K>, false), DEVC$RT.cast(setOrMap._vali
dKey, dynamic, __CastType18, "CompositeCast", """line 613, column 51 of dart:col
lection/splay_tree.dart: """, setOrMap._validKey is __CastType18, false)); | 397 ), "CompositeCast", """line 613, column 29 of dart:collection/splay_tree.dart: "
"", setOrMap._comparator is __CastType14<K>, false), DEVC$RT.cast(setOrMap._vali
dKey, dynamic, __CastType17, "CompositeCast", """line 613, column 51 of dart:col
lection/splay_tree.dart: """, setOrMap._validKey is __CastType17, false)); |
| 400 set._count = _tree._count; | 398 set._count = _tree._count; |
| 401 set._root = set._copyNode(_tree._root); | 399 set._root = set._copyNode(_tree._root); |
| 402 return set; | 400 return set; |
| 403 } | 401 } |
| 404 } | 402 } |
| 405 class _SplayTreeValueIterable<K, V> extends IterableBase<V> implements Efficien
tLength {SplayTreeMap<K, V> _map; | 403 class _SplayTreeValueIterable<K, V> extends IterableBase<V> implements Efficien
tLength {SplayTreeMap<K, V> _map; |
| 406 _SplayTreeValueIterable(this._map); | 404 _SplayTreeValueIterable(this._map); |
| 407 int get length => _map._count; | 405 int get length => _map._count; |
| 408 bool get isEmpty => _map._count == 0; | 406 bool get isEmpty => _map._count == 0; |
| 409 Iterator<V> get iterator => new _SplayTreeValueIterator<K, V>(_map); | 407 Iterator<V> get iterator => new _SplayTreeValueIterator<K, V>(_map); |
| 410 } | 408 } |
| 411 class _SplayTreeKeyIterator<K> extends _SplayTreeIterator<K> {_SplayTreeKeyIter
ator(_SplayTree<K> map) : super(map); | 409 class _SplayTreeKeyIterator<K> extends _SplayTreeIterator<K> {_SplayTreeKeyIter
ator(_SplayTree<K> map) : super(map); |
| 412 K _getValue(_SplayTreeNode node) => DEVC$RT.cast(node.key, dynamic, K, "Composi
teCast", """line 631, column 39 of dart:collection/splay_tree.dart: """, node.ke
y is K, false); | 410 K _getValue(_SplayTreeNode node) => DEVC$RT.cast(node.key, dynamic, K, "Composi
teCast", """line 631, column 39 of dart:collection/splay_tree.dart: """, node.ke
y is K, false); |
| 413 } | 411 } |
| 414 class _SplayTreeValueIterator<K, V> extends _SplayTreeIterator<V> {_SplayTreeVa
lueIterator(SplayTreeMap<K, V> map) : super(map); | 412 class _SplayTreeValueIterator<K, V> extends _SplayTreeIterator<V> {_SplayTreeVa
lueIterator(SplayTreeMap<K, V> map) : super(map); |
| 415 V _getValue(_SplayTreeMapNode node) => DEVC$RT.cast(node.value, dynamic, V, "Co
mpositeCast", """line 636, column 42 of dart:collection/splay_tree.dart: """, no
de.value is V, false); | 413 V _getValue(_SplayTreeMapNode node) => DEVC$RT.cast(node.value, dynamic, V, "Co
mpositeCast", """line 636, column 42 of dart:collection/splay_tree.dart: """, no
de.value is V, false); |
| 416 } | 414 } |
| 417 class _SplayTreeNodeIterator<K> extends _SplayTreeIterator<_SplayTreeNode<K>> {
_SplayTreeNodeIterator(_SplayTree<K> tree) : super(tree); | 415 class _SplayTreeNodeIterator<K> extends _SplayTreeIterator<_SplayTreeNode<K>> {
_SplayTreeNodeIterator(_SplayTree<K> tree) : super(tree); |
| 418 _SplayTreeNodeIterator.startAt(_SplayTree<K> tree, var startKey) : super.startA
t(tree, startKey); | 416 _SplayTreeNodeIterator.startAt(_SplayTree<K> tree, var startKey) : super.startA
t(tree, startKey); |
| 419 _SplayTreeNode<K> _getValue(_SplayTreeNode node) => DEVC$RT.cast(node, DEVC$RT.
type((_SplayTreeNode<dynamic> _) { | 417 _SplayTreeNode<K> _getValue(_SplayTreeNode node) => DEVC$RT.cast(node, DEVC$RT.
type((_SplayTreeNode<dynamic> _) { |
| 420 } | 418 } |
| 421 ), DEVC$RT.type((_SplayTreeNode<K> _) { | 419 ), DEVC$RT.type((_SplayTreeNode<K> _) { |
| 422 } | 420 } |
| 423 ), "CompositeCast", """line 644, column 55 of dart:collection/splay_tree.dart: "
"", node is _SplayTreeNode<K>, false); | 421 ), "CompositeCast", """line 644, column 55 of dart:collection/splay_tree.dart: "
"", node is _SplayTreeNode<K>, false); |
| 424 } | 422 } |
| 425 class SplayTreeSet<E> extends _SplayTree<E> with IterableMixin<E>, SetMixin<E>
{Comparator _comparator; | 423 class SplayTreeSet<E> extends _SplayTree<E> with IterableMixin<E>, SetMixin<E>
{Comparator _comparator; |
| 426 _Predicate _validKey; | 424 _Predicate _validKey; |
| 427 SplayTreeSet([int compare(E key1, E key2), bool isValidKey(potentialKey)]) : _c
omparator = ((__x20) => DEVC$RT.cast(__x20, dynamic, DEVC$RT.type((Comparator<dy
namic> _) { | 425 SplayTreeSet([int compare(E key1, E key2), bool isValidKey(potentialKey)]) : _c
omparator = (compare == null) ? Comparable.compare : compare, _validKey = (isVal
idKey != null) ? isValidKey : ((v) => v is E); |
| 428 } | |
| 429 ), "CompositeCast", """line 693, column 23 of dart:collection/splay_tree.dart: "
"", __x20 is Comparator<dynamic>, false))((compare == null) ? Comparable.compare
: compare), _validKey = ((__x21) => DEVC$RT.cast(__x21, dynamic, DEVC$RT.type((
_Predicate<dynamic> _) { | |
| 430 } | |
| 431 ), "CompositeCast", """line 694, column 21 of dart:collection/splay_tree.dart: "
"", __x21 is _Predicate<dynamic>, false))((isValidKey != null) ? isValidKey : ((
v) => v is E)); | |
| 432 factory SplayTreeSet.from(Iterable elements, [int compare(E key1, E key2), bool
isValidKey(potentialKey)]) { | 426 factory SplayTreeSet.from(Iterable elements, [int compare(E key1, E key2), bool
isValidKey(potentialKey)]) { |
| 433 SplayTreeSet<E> result = new SplayTreeSet<E>(compare, isValidKey); | 427 SplayTreeSet<E> result = new SplayTreeSet<E>(compare, isValidKey); |
| 434 for (final E element in DEVC$RT.cast(elements, DEVC$RT.type((Iterable<dynamic>
_) { | 428 for (final E element in DEVC$RT.cast(elements, DEVC$RT.type((Iterable<dynamic>
_) { |
| 435 } | 429 } |
| 436 ), DEVC$RT.type((Iterable<E> _) { | 430 ), DEVC$RT.type((Iterable<E> _) { |
| 437 } | 431 } |
| 438 ), "CompositeCast", """line 707, column 29 of dart:collection/splay_tree.dart: "
"", elements is Iterable<E>, false)) { | 432 ), "CompositeCast", """line 707, column 29 of dart:collection/splay_tree.dart: "
"", elements is Iterable<E>, false)) { |
| 439 result.add(element); | 433 result.add(element); |
| 440 } | 434 } |
| 441 return result; | 435 return result; |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 480 } | 474 } |
| 481 } | 475 } |
| 482 void removeAll(Iterable<Object> elements) { | 476 void removeAll(Iterable<Object> elements) { |
| 483 for (Object element in elements) { | 477 for (Object element in elements) { |
| 484 if (_validKey(element)) _remove(DEVC$RT.cast(element, Object, E, "CompositeCast"
, """line 767, column 39 of dart:collection/splay_tree.dart: """, element is E,
false)); | 478 if (_validKey(element)) _remove(DEVC$RT.cast(element, Object, E, "CompositeCast"
, """line 767, column 39 of dart:collection/splay_tree.dart: """, element is E,
false)); |
| 485 } | 479 } |
| 486 } | 480 } |
| 487 void retainAll(Iterable<Object> elements) { | 481 void retainAll(Iterable<Object> elements) { |
| 488 SplayTreeSet<E> retainSet = new SplayTreeSet<E>(DEVC$RT.cast(_comparator, DEVC$R
T.type((Comparator<dynamic> _) { | 482 SplayTreeSet<E> retainSet = new SplayTreeSet<E>(DEVC$RT.cast(_comparator, DEVC$R
T.type((Comparator<dynamic> _) { |
| 489 } | 483 } |
| 490 ), DEVC$RT.type((__CastType22<E> _) { | 484 ), DEVC$RT.type((__CastType19<E> _) { |
| 491 } | 485 } |
| 492 ), "CompositeCast", """line 773, column 53 of dart:collection/splay_tree.dart: "
"", _comparator is __CastType22<E>, false), _validKey); | 486 ), "CompositeCast", """line 773, column 53 of dart:collection/splay_tree.dart: "
"", _comparator is __CastType19<E>, false), _validKey); |
| 493 int modificationCount = _modificationCount; | 487 int modificationCount = _modificationCount; |
| 494 for (Object object in elements) { | 488 for (Object object in elements) { |
| 495 if (modificationCount != _modificationCount) { | 489 if (modificationCount != _modificationCount) { |
| 496 throw new ConcurrentModificationError(this); | 490 throw new ConcurrentModificationError(this); |
| 497 } | 491 } |
| 498 if (_validKey(object) && _splay(DEVC$RT.cast(object, Object, E, "CompositeCast"
, """line 781, column 39 of dart:collection/splay_tree.dart: """, object is E, f
alse)) == 0) retainSet.add(_root.key); | 492 if (_validKey(object) && _splay(DEVC$RT.cast(object, Object, E, "CompositeCast"
, """line 781, column 39 of dart:collection/splay_tree.dart: """, object is E, f
alse)) == 0) retainSet.add(_root.key); |
| 499 } | 493 } |
| 500 if (retainSet._count != _count) { | 494 if (retainSet._count != _count) { |
| 501 _root = retainSet._root; | 495 _root = retainSet._root; |
| 502 _count = retainSet._count; | 496 _count = retainSet._count; |
| 503 _modificationCount++; | 497 _modificationCount++; |
| 504 } | 498 } |
| 505 } | 499 } |
| 506 E lookup(Object object) { | 500 E lookup(Object object) { |
| 507 if (!_validKey(object)) return null; | 501 if (!_validKey(object)) return null; |
| 508 int comp = _splay(DEVC$RT.cast(object, Object, E, "CompositeCast", """line 793,
column 23 of dart:collection/splay_tree.dart: """, object is E, false)); | 502 int comp = _splay(DEVC$RT.cast(object, Object, E, "CompositeCast", """line 793,
column 23 of dart:collection/splay_tree.dart: """, object is E, false)); |
| 509 if (comp != 0) return null; | 503 if (comp != 0) return null; |
| 510 return _root.key; | 504 return _root.key; |
| 511 } | 505 } |
| 512 Set<E> intersection(Set<E> other) { | 506 Set<E> intersection(Set<E> other) { |
| 513 Set<E> result = new SplayTreeSet<E>(DEVC$RT.cast(_comparator, DEVC$RT.type((Comp
arator<dynamic> _) { | 507 Set<E> result = new SplayTreeSet<E>(DEVC$RT.cast(_comparator, DEVC$RT.type((Comp
arator<dynamic> _) { |
| 514 } | 508 } |
| 515 ), DEVC$RT.type((__CastType22<E> _) { | 509 ), DEVC$RT.type((__CastType19<E> _) { |
| 516 } | 510 } |
| 517 ), "CompositeCast", """line 799, column 41 of dart:collection/splay_tree.dart: "
"", _comparator is __CastType22<E>, false), _validKey); | 511 ), "CompositeCast", """line 799, column 41 of dart:collection/splay_tree.dart: "
"", _comparator is __CastType19<E>, false), _validKey); |
| 518 for (E element in this) { | 512 for (E element in this) { |
| 519 if (other.contains(element)) result.add(element); | 513 if (other.contains(element)) result.add(element); |
| 520 } | 514 } |
| 521 return result; | 515 return result; |
| 522 } | 516 } |
| 523 Set<E> difference(Set<E> other) { | 517 Set<E> difference(Set<E> other) { |
| 524 Set<E> result = new SplayTreeSet<E>(DEVC$RT.cast(_comparator, DEVC$RT.type((Comp
arator<dynamic> _) { | 518 Set<E> result = new SplayTreeSet<E>(DEVC$RT.cast(_comparator, DEVC$RT.type((Comp
arator<dynamic> _) { |
| 525 } | 519 } |
| 526 ), DEVC$RT.type((__CastType22<E> _) { | 520 ), DEVC$RT.type((__CastType19<E> _) { |
| 527 } | 521 } |
| 528 ), "CompositeCast", """line 807, column 41 of dart:collection/splay_tree.dart: "
"", _comparator is __CastType22<E>, false), _validKey); | 522 ), "CompositeCast", """line 807, column 41 of dart:collection/splay_tree.dart: "
"", _comparator is __CastType19<E>, false), _validKey); |
| 529 for (E element in this) { | 523 for (E element in this) { |
| 530 if (!other.contains(element)) result.add(element); | 524 if (!other.contains(element)) result.add(element); |
| 531 } | 525 } |
| 532 return result; | 526 return result; |
| 533 } | 527 } |
| 534 Set<E> union(Set<E> other) { | 528 Set<E> union(Set<E> other) { |
| 535 return _clone()..addAll(other); | 529 return _clone()..addAll(other); |
| 536 } | 530 } |
| 537 SplayTreeSet<E> _clone() { | 531 SplayTreeSet<E> _clone() { |
| 538 var set = new SplayTreeSet<E>(DEVC$RT.cast(_comparator, DEVC$RT.type((Comparator
<dynamic> _) { | 532 var set = new SplayTreeSet<E>(DEVC$RT.cast(_comparator, DEVC$RT.type((Comparator
<dynamic> _) { |
| 539 } | 533 } |
| 540 ), DEVC$RT.type((__CastType22<E> _) { | 534 ), DEVC$RT.type((__CastType19<E> _) { |
| 541 } | 535 } |
| 542 ), "CompositeCast", """line 819, column 35 of dart:collection/splay_tree.dart: "
"", _comparator is __CastType22<E>, false), _validKey); | 536 ), "CompositeCast", """line 819, column 35 of dart:collection/splay_tree.dart: "
"", _comparator is __CastType19<E>, false), _validKey); |
| 543 set._count = _count; | 537 set._count = _count; |
| 544 set._root = _copyNode(_root); | 538 set._root = _copyNode(_root); |
| 545 return set; | 539 return set; |
| 546 } | 540 } |
| 547 _SplayTreeNode<E> _copyNode(_SplayTreeNode<E> node) { | 541 _SplayTreeNode<E> _copyNode(_SplayTreeNode<E> node) { |
| 548 if (node == null) return null; | 542 if (node == null) return null; |
| 549 return new _SplayTreeNode<E>(node.key)..left = _copyNode(node.left)..right = _c
opyNode(node.right); | 543 return new _SplayTreeNode<E>(node.key)..left = _copyNode(node.left)..right = _c
opyNode(node.right); |
| 550 } | 544 } |
| 551 void clear() { | 545 void clear() { |
| 552 _clear(); | 546 _clear(); |
| 553 } | 547 } |
| 554 Set<E> toSet() => _clone(); | 548 Set<E> toSet() => _clone(); |
| 555 String toString() => IterableBase.iterableToFullString(this, '{', '}'); | 549 String toString() => IterableBase.iterableToFullString(this, '{', '}'); |
| 556 } | 550 } |
| 557 typedef int __CastType15<K>(K __u16, K __u17); | 551 typedef int __CastType14<K>(K __u15, K __u16); |
| 558 typedef bool __CastType18(dynamic __u19); | 552 typedef bool __CastType17(dynamic __u18); |
| 559 typedef int __CastType22<E>(E __u23, E __u24); | 553 typedef int __CastType19<E>(E __u20, E __u21); |
| OLD | NEW |