| 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]() { |
| 11 return this[_source][core.$length]; | 11 return this[_source][core.$length]; |
| 12 } | 12 } |
| 13 [core.$get](index) { | 13 [core.$get](index) { |
| 14 return this[_source][core.$elementAt](index); | 14 return this[_source][core.$elementAt](index); |
| 15 } | 15 } |
| 16 } | 16 } |
| 17 return UnmodifiableListView; | 17 return UnmodifiableListView; |
| 18 }); | 18 }); |
| 19 dart.defineLazyClassGeneric(exports, 'UnmodifiableListView', {get: Unmodifiabl
eListView$}); | 19 dart.defineLazyClassGeneric(exports, 'UnmodifiableListView', {get: Unmodifiabl
eListView$}); |
| 20 // Function _defaultEquals: (dynamic, dynamic) → bool | 20 // Function _defaultEquals: (Object, Object) → bool |
| 21 function _defaultEquals(a, b) { | 21 function _defaultEquals(a, b) { |
| 22 return dart.equals(a, b); | 22 return dart.equals(a, b); |
| 23 } | 23 } |
| 24 // Function _defaultHashCode: (dynamic) → int | 24 // Function _defaultHashCode: (Object) → int |
| 25 function _defaultHashCode(a) { | 25 function _defaultHashCode(a) { |
| 26 return dart.hashCode(a); | 26 return dart.hashCode(a); |
| 27 } | 27 } |
| 28 let _Equality$ = dart.generic(function(K) { | 28 let _Equality$ = dart.generic(function(K) { |
| 29 let _Equality = dart.typedef('_Equality', () => dart.functionType(core.bool,
[K, K])); | 29 let _Equality = dart.typedef('_Equality', () => dart.functionType(core.bool,
[K, K])); |
| 30 return _Equality; | 30 return _Equality; |
| 31 }); | 31 }); |
| 32 let _Equality = _Equality$(); | 32 let _Equality = _Equality$(); |
| 33 let _Hasher$ = dart.generic(function(K) { | 33 let _Hasher$ = dart.generic(function(K) { |
| 34 let _Hasher = dart.typedef('_Hasher', () => dart.functionType(core.int, [K])
); | 34 let _Hasher = dart.typedef('_Hasher', () => dart.functionType(core.int, [K])
); |
| 35 return _Hasher; | 35 return _Hasher; |
| 36 }); | 36 }); |
| 37 let _Hasher = _Hasher$(); | 37 let _Hasher = _Hasher$(); |
| 38 let HashMap$ = dart.generic(function(K, V) { | 38 let HashMap$ = dart.generic(function(K, V) { |
| 39 class HashMap extends core.Object { | 39 class HashMap extends core.Object { |
| 40 HashMap(opts) { | 40 HashMap(opts) { |
| 41 let equals = opts && 'equals' in opts ? opts.equals : null; | 41 let equals = opts && 'equals' in opts ? opts.equals : null; |
| 42 let hashCode = opts && 'hashCode' in opts ? opts.hashCode : null; | 42 let hashCode = opts && 'hashCode' in opts ? opts.hashCode : null; |
| 43 let isValidKey = opts && 'isValidKey' in opts ? opts.isValidKey : null; | 43 let isValidKey = opts && 'isValidKey' in opts ? opts.isValidKey : null; |
| 44 if (isValidKey == null) { | 44 if (isValidKey == null) { |
| 45 if (hashCode == null) { | 45 if (hashCode == null) { |
| 46 if (equals == null) { | 46 if (equals == null) { |
| 47 return new (_HashMap$(K, V))(); | 47 return new (_HashMap$(K, V))(); |
| 48 } | 48 } |
| 49 hashCode = dart.as(_defaultHashCode, __CastType0); | 49 hashCode = _defaultHashCode; |
| 50 } else { | 50 } else { |
| 51 if (dart.notNull(core.identical(core.identityHashCode, hashCode)) &&
dart.notNull(core.identical(core.identical, equals))) { | 51 if (dart.notNull(core.identical(core.identityHashCode, hashCode)) &&
dart.notNull(core.identical(core.identical, equals))) { |
| 52 return new (_IdentityHashMap$(K, V))(); | 52 return new (_IdentityHashMap$(K, V))(); |
| 53 } | 53 } |
| 54 if (equals == null) { | 54 if (equals == null) { |
| 55 equals = dart.as(_defaultEquals, __CastType2); | 55 equals = _defaultEquals; |
| 56 } | 56 } |
| 57 } | 57 } |
| 58 } else { | 58 } else { |
| 59 if (hashCode == null) { | 59 if (hashCode == null) { |
| 60 hashCode = dart.as(_defaultHashCode, dart.functionType(core.int, [K]
)); | 60 hashCode = _defaultHashCode; |
| 61 } | 61 } |
| 62 if (equals == null) { | 62 if (equals == null) { |
| 63 equals = dart.as(_defaultEquals, dart.functionType(core.bool, [K, K]
)); | 63 equals = _defaultEquals; |
| 64 } | 64 } |
| 65 } | 65 } |
| 66 return new (_CustomHashMap$(K, V))(equals, hashCode, isValidKey); | 66 return new (_CustomHashMap$(K, V))(equals, hashCode, isValidKey); |
| 67 } | 67 } |
| 68 identity() { | 68 identity() { |
| 69 return new (_IdentityHashMap$(K, V))(); | 69 return new (_IdentityHashMap$(K, V))(); |
| 70 } | 70 } |
| 71 from(other) { | 71 from(other) { |
| 72 let result = new (HashMap$(K, V))(); | 72 let result = new (HashMap$(K, V))(); |
| 73 other.forEach((k, v) => { | 73 other.forEach((k, v) => { |
| (...skipping 15 matching lines...) Expand all Loading... |
| 89 } | 89 } |
| 90 } | 90 } |
| 91 HashMap[dart.implements] = () => [core.Map$(K, V)]; | 91 HashMap[dart.implements] = () => [core.Map$(K, V)]; |
| 92 dart.defineNamedConstructor(HashMap, 'identity'); | 92 dart.defineNamedConstructor(HashMap, 'identity'); |
| 93 dart.defineNamedConstructor(HashMap, 'from'); | 93 dart.defineNamedConstructor(HashMap, 'from'); |
| 94 dart.defineNamedConstructor(HashMap, 'fromIterable'); | 94 dart.defineNamedConstructor(HashMap, 'fromIterable'); |
| 95 dart.defineNamedConstructor(HashMap, 'fromIterables'); | 95 dart.defineNamedConstructor(HashMap, 'fromIterables'); |
| 96 return HashMap; | 96 return HashMap; |
| 97 }); | 97 }); |
| 98 let HashMap = HashMap$(); | 98 let HashMap = HashMap$(); |
| 99 let __CastType0$ = dart.generic(function(K) { | |
| 100 let __CastType0 = dart.typedef('__CastType0', () => dart.functionType(core.i
nt, [K])); | |
| 101 return __CastType0; | |
| 102 }); | |
| 103 let __CastType0 = __CastType0$(); | |
| 104 let __CastType2$ = dart.generic(function(K) { | |
| 105 let __CastType2 = dart.typedef('__CastType2', () => dart.functionType(core.b
ool, [K, K])); | |
| 106 return __CastType2; | |
| 107 }); | |
| 108 let __CastType2 = __CastType2$(); | |
| 109 let _newSet = Symbol('_newSet'); | 99 let _newSet = Symbol('_newSet'); |
| 110 let SetMixin$ = dart.generic(function(E) { | 100 let SetMixin$ = dart.generic(function(E) { |
| 111 class SetMixin extends core.Object { | 101 class SetMixin extends core.Object { |
| 112 [Symbol.iterator]() { | 102 [Symbol.iterator]() { |
| 113 return new dart.JsIterator(this[core.$iterator]); | 103 return new dart.JsIterator(this[core.$iterator]); |
| 114 } | 104 } |
| 115 get [core.$isEmpty]() { | 105 get [core.$isEmpty]() { |
| 116 return this[core.$length] == 0; | 106 return this[core.$length] == 0; |
| 117 } | 107 } |
| 118 get [core.$isNotEmpty]() { | 108 get [core.$isNotEmpty]() { |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 [core.$map](f) { | 193 [core.$map](f) { |
| 204 dart.as(f, dart.functionType(dart.dynamic, [E])); | 194 dart.as(f, dart.functionType(dart.dynamic, [E])); |
| 205 return new (_internal.EfficientLengthMappedIterable$(E, dart.dynamic))(t
his, f); | 195 return new (_internal.EfficientLengthMappedIterable$(E, dart.dynamic))(t
his, f); |
| 206 } | 196 } |
| 207 get [core.$single]() { | 197 get [core.$single]() { |
| 208 if (dart.notNull(this[core.$length]) > 1) | 198 if (dart.notNull(this[core.$length]) > 1) |
| 209 throw _internal.IterableElementError.tooMany(); | 199 throw _internal.IterableElementError.tooMany(); |
| 210 let it = this[core.$iterator]; | 200 let it = this[core.$iterator]; |
| 211 if (!dart.notNull(it.moveNext())) | 201 if (!dart.notNull(it.moveNext())) |
| 212 throw _internal.IterableElementError.noElement(); | 202 throw _internal.IterableElementError.noElement(); |
| 213 let result = dart.as(it.current, E); | 203 let result = it.current; |
| 214 return result; | 204 return result; |
| 215 } | 205 } |
| 216 toString() { | 206 toString() { |
| 217 return IterableBase.iterableToFullString(this, '{', '}'); | 207 return IterableBase.iterableToFullString(this, '{', '}'); |
| 218 } | 208 } |
| 219 [core.$where](f) { | 209 [core.$where](f) { |
| 220 dart.as(f, dart.functionType(core.bool, [E])); | 210 dart.as(f, dart.functionType(core.bool, [E])); |
| 221 return new (_internal.WhereIterable$(E))(this, f); | 211 return new (_internal.WhereIterable$(E))(this, f); |
| 222 } | 212 } |
| 223 [core.$expand](f) { | 213 [core.$expand](f) { |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 } | 286 } |
| 297 [core.$skipWhile](test) { | 287 [core.$skipWhile](test) { |
| 298 dart.as(test, dart.functionType(core.bool, [E])); | 288 dart.as(test, dart.functionType(core.bool, [E])); |
| 299 return new (_internal.SkipWhileIterable$(E))(this, test); | 289 return new (_internal.SkipWhileIterable$(E))(this, test); |
| 300 } | 290 } |
| 301 get [core.$first]() { | 291 get [core.$first]() { |
| 302 let it = this[core.$iterator]; | 292 let it = this[core.$iterator]; |
| 303 if (!dart.notNull(it.moveNext())) { | 293 if (!dart.notNull(it.moveNext())) { |
| 304 throw _internal.IterableElementError.noElement(); | 294 throw _internal.IterableElementError.noElement(); |
| 305 } | 295 } |
| 306 return dart.as(it.current, E); | 296 return it.current; |
| 307 } | 297 } |
| 308 get [core.$last]() { | 298 get [core.$last]() { |
| 309 let it = this[core.$iterator]; | 299 let it = this[core.$iterator]; |
| 310 if (!dart.notNull(it.moveNext())) { | 300 if (!dart.notNull(it.moveNext())) { |
| 311 throw _internal.IterableElementError.noElement(); | 301 throw _internal.IterableElementError.noElement(); |
| 312 } | 302 } |
| 313 let result = null; | 303 let result = null; |
| 314 do { | 304 do { |
| 315 result = dart.as(it.current, E); | 305 result = it.current; |
| 316 } while (it.moveNext()); | 306 } while (it.moveNext()); |
| 317 return result; | 307 return result; |
| 318 } | 308 } |
| 319 [core.$firstWhere](test, opts) { | 309 [core.$firstWhere](test, opts) { |
| 320 dart.as(test, dart.functionType(core.bool, [E])); | 310 dart.as(test, dart.functionType(core.bool, [E])); |
| 321 let orElse = opts && 'orElse' in opts ? opts.orElse : null; | 311 let orElse = opts && 'orElse' in opts ? opts.orElse : null; |
| 322 dart.as(orElse, dart.functionType(E, [])); | 312 dart.as(orElse, dart.functionType(E, [])); |
| 323 for (let element of this) { | 313 for (let element of this) { |
| 324 if (test(element)) | 314 if (test(element)) |
| 325 return element; | 315 return element; |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 422 class HashSet extends core.Object { | 412 class HashSet extends core.Object { |
| 423 HashSet(opts) { | 413 HashSet(opts) { |
| 424 let equals = opts && 'equals' in opts ? opts.equals : null; | 414 let equals = opts && 'equals' in opts ? opts.equals : null; |
| 425 let hashCode = opts && 'hashCode' in opts ? opts.hashCode : null; | 415 let hashCode = opts && 'hashCode' in opts ? opts.hashCode : null; |
| 426 let isValidKey = opts && 'isValidKey' in opts ? opts.isValidKey : null; | 416 let isValidKey = opts && 'isValidKey' in opts ? opts.isValidKey : null; |
| 427 if (isValidKey == null) { | 417 if (isValidKey == null) { |
| 428 if (hashCode == null) { | 418 if (hashCode == null) { |
| 429 if (equals == null) { | 419 if (equals == null) { |
| 430 return new (_HashSet$(E))(); | 420 return new (_HashSet$(E))(); |
| 431 } | 421 } |
| 432 hashCode = dart.as(_defaultHashCode, __CastType5); | 422 hashCode = _defaultHashCode; |
| 433 } else { | 423 } else { |
| 434 if (dart.notNull(core.identical(core.identityHashCode, hashCode)) &&
dart.notNull(core.identical(core.identical, equals))) { | 424 if (dart.notNull(core.identical(core.identityHashCode, hashCode)) &&
dart.notNull(core.identical(core.identical, equals))) { |
| 435 return new (_IdentityHashSet$(E))(); | 425 return new (_IdentityHashSet$(E))(); |
| 436 } | 426 } |
| 437 if (equals == null) { | 427 if (equals == null) { |
| 438 equals = dart.as(_defaultEquals, __CastType7); | 428 equals = _defaultEquals; |
| 439 } | 429 } |
| 440 } | 430 } |
| 441 } else { | 431 } else { |
| 442 if (hashCode == null) { | 432 if (hashCode == null) { |
| 443 hashCode = dart.as(_defaultHashCode, dart.functionType(core.int, [E]
)); | 433 hashCode = _defaultHashCode; |
| 444 } | 434 } |
| 445 if (equals == null) { | 435 if (equals == null) { |
| 446 equals = dart.as(_defaultEquals, dart.functionType(core.bool, [E, E]
)); | 436 equals = _defaultEquals; |
| 447 } | 437 } |
| 448 } | 438 } |
| 449 return new (_CustomHashSet$(E))(equals, hashCode, isValidKey); | 439 return new (_CustomHashSet$(E))(equals, hashCode, isValidKey); |
| 450 } | 440 } |
| 451 identity() { | 441 identity() { |
| 452 return new (_IdentityHashSet$(E))(); | 442 return new (_IdentityHashSet$(E))(); |
| 453 } | 443 } |
| 454 from(elements) { | 444 from(elements) { |
| 455 let result = new (HashSet$(E))(); | 445 let result = new (HashSet$(E))(); |
| 456 for (let e of dart.as(elements, core.Iterable$(E))) | 446 for (let e of dart.as(elements, core.Iterable$(E))) |
| 457 result.add(e); | 447 result.add(e); |
| 458 return result; | 448 return result; |
| 459 } | 449 } |
| 460 [Symbol.iterator]() { | 450 [Symbol.iterator]() { |
| 461 return new dart.JsIterator(this[core.$iterator]); | 451 return new dart.JsIterator(this[core.$iterator]); |
| 462 } | 452 } |
| 463 } | 453 } |
| 464 HashSet[dart.implements] = () => [core.Set$(E)]; | 454 HashSet[dart.implements] = () => [core.Set$(E)]; |
| 465 dart.defineNamedConstructor(HashSet, 'identity'); | 455 dart.defineNamedConstructor(HashSet, 'identity'); |
| 466 dart.defineNamedConstructor(HashSet, 'from'); | 456 dart.defineNamedConstructor(HashSet, 'from'); |
| 467 return HashSet; | 457 return HashSet; |
| 468 }); | 458 }); |
| 469 let HashSet = HashSet$(); | 459 let HashSet = HashSet$(); |
| 470 let __CastType5$ = dart.generic(function(E) { | |
| 471 let __CastType5 = dart.typedef('__CastType5', () => dart.functionType(core.i
nt, [E])); | |
| 472 return __CastType5; | |
| 473 }); | |
| 474 let __CastType5 = __CastType5$(); | |
| 475 let __CastType7$ = dart.generic(function(E) { | |
| 476 let __CastType7 = dart.typedef('__CastType7', () => dart.functionType(core.b
ool, [E, E])); | |
| 477 return __CastType7; | |
| 478 }); | |
| 479 let __CastType7 = __CastType7$(); | |
| 480 let IterableMixin$ = dart.generic(function(E) { | 460 let IterableMixin$ = dart.generic(function(E) { |
| 481 class IterableMixin extends core.Object { | 461 class IterableMixin extends core.Object { |
| 482 [core.$map](f) { | 462 [core.$map](f) { |
| 483 dart.as(f, dart.functionType(dart.dynamic, [E])); | 463 dart.as(f, dart.functionType(dart.dynamic, [E])); |
| 484 return new (_internal.MappedIterable$(E, dart.dynamic))(this, f); | 464 return new (_internal.MappedIterable$(E, dart.dynamic))(this, f); |
| 485 } | 465 } |
| 486 [core.$where](f) { | 466 [core.$where](f) { |
| 487 dart.as(f, dart.functionType(core.bool, [E])); | 467 dart.as(f, dart.functionType(core.bool, [E])); |
| 488 return new (_internal.WhereIterable$(E))(this, f); | 468 return new (_internal.WhereIterable$(E))(this, f); |
| 489 } | 469 } |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 592 } | 572 } |
| 593 [core.$skipWhile](test) { | 573 [core.$skipWhile](test) { |
| 594 dart.as(test, dart.functionType(core.bool, [E])); | 574 dart.as(test, dart.functionType(core.bool, [E])); |
| 595 return new (_internal.SkipWhileIterable$(E))(this, test); | 575 return new (_internal.SkipWhileIterable$(E))(this, test); |
| 596 } | 576 } |
| 597 get [core.$first]() { | 577 get [core.$first]() { |
| 598 let it = this[core.$iterator]; | 578 let it = this[core.$iterator]; |
| 599 if (!dart.notNull(it.moveNext())) { | 579 if (!dart.notNull(it.moveNext())) { |
| 600 throw _internal.IterableElementError.noElement(); | 580 throw _internal.IterableElementError.noElement(); |
| 601 } | 581 } |
| 602 return dart.as(it.current, E); | 582 return it.current; |
| 603 } | 583 } |
| 604 get [core.$last]() { | 584 get [core.$last]() { |
| 605 let it = this[core.$iterator]; | 585 let it = this[core.$iterator]; |
| 606 if (!dart.notNull(it.moveNext())) { | 586 if (!dart.notNull(it.moveNext())) { |
| 607 throw _internal.IterableElementError.noElement(); | 587 throw _internal.IterableElementError.noElement(); |
| 608 } | 588 } |
| 609 let result = null; | 589 let result = null; |
| 610 do { | 590 do { |
| 611 result = dart.as(it.current, E); | 591 result = it.current; |
| 612 } while (it.moveNext()); | 592 } while (it.moveNext()); |
| 613 return result; | 593 return result; |
| 614 } | 594 } |
| 615 get [core.$single]() { | 595 get [core.$single]() { |
| 616 let it = this[core.$iterator]; | 596 let it = this[core.$iterator]; |
| 617 if (!dart.notNull(it.moveNext())) | 597 if (!dart.notNull(it.moveNext())) |
| 618 throw _internal.IterableElementError.noElement(); | 598 throw _internal.IterableElementError.noElement(); |
| 619 let result = dart.as(it.current, E); | 599 let result = it.current; |
| 620 if (it.moveNext()) | 600 if (it.moveNext()) |
| 621 throw _internal.IterableElementError.tooMany(); | 601 throw _internal.IterableElementError.tooMany(); |
| 622 return result; | 602 return result; |
| 623 } | 603 } |
| 624 [core.$firstWhere](test, opts) { | 604 [core.$firstWhere](test, opts) { |
| 625 dart.as(test, dart.functionType(core.bool, [E])); | 605 dart.as(test, dart.functionType(core.bool, [E])); |
| 626 let orElse = opts && 'orElse' in opts ? opts.orElse : null; | 606 let orElse = opts && 'orElse' in opts ? opts.orElse : null; |
| 627 dart.as(orElse, dart.functionType(E, [])); | 607 dart.as(orElse, dart.functionType(E, [])); |
| 628 for (let element of this) { | 608 for (let element of this) { |
| 629 if (test(element)) | 609 if (test(element)) |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 808 } | 788 } |
| 809 [core.$skipWhile](test) { | 789 [core.$skipWhile](test) { |
| 810 dart.as(test, dart.functionType(core.bool, [E])); | 790 dart.as(test, dart.functionType(core.bool, [E])); |
| 811 return new (_internal.SkipWhileIterable$(E))(this, test); | 791 return new (_internal.SkipWhileIterable$(E))(this, test); |
| 812 } | 792 } |
| 813 get [core.$first]() { | 793 get [core.$first]() { |
| 814 let it = this[core.$iterator]; | 794 let it = this[core.$iterator]; |
| 815 if (!dart.notNull(it.moveNext())) { | 795 if (!dart.notNull(it.moveNext())) { |
| 816 throw _internal.IterableElementError.noElement(); | 796 throw _internal.IterableElementError.noElement(); |
| 817 } | 797 } |
| 818 return dart.as(it.current, E); | 798 return it.current; |
| 819 } | 799 } |
| 820 get [core.$last]() { | 800 get [core.$last]() { |
| 821 let it = this[core.$iterator]; | 801 let it = this[core.$iterator]; |
| 822 if (!dart.notNull(it.moveNext())) { | 802 if (!dart.notNull(it.moveNext())) { |
| 823 throw _internal.IterableElementError.noElement(); | 803 throw _internal.IterableElementError.noElement(); |
| 824 } | 804 } |
| 825 let result = null; | 805 let result = null; |
| 826 do { | 806 do { |
| 827 result = dart.as(it.current, E); | 807 result = it.current; |
| 828 } while (it.moveNext()); | 808 } while (it.moveNext()); |
| 829 return result; | 809 return result; |
| 830 } | 810 } |
| 831 get [core.$single]() { | 811 get [core.$single]() { |
| 832 let it = this[core.$iterator]; | 812 let it = this[core.$iterator]; |
| 833 if (!dart.notNull(it.moveNext())) | 813 if (!dart.notNull(it.moveNext())) |
| 834 throw _internal.IterableElementError.noElement(); | 814 throw _internal.IterableElementError.noElement(); |
| 835 let result = dart.as(it.current, E); | 815 let result = it.current; |
| 836 if (it.moveNext()) | 816 if (it.moveNext()) |
| 837 throw _internal.IterableElementError.tooMany(); | 817 throw _internal.IterableElementError.tooMany(); |
| 838 return result; | 818 return result; |
| 839 } | 819 } |
| 840 [core.$firstWhere](test, opts) { | 820 [core.$firstWhere](test, opts) { |
| 841 dart.as(test, dart.functionType(core.bool, [E])); | 821 dart.as(test, dart.functionType(core.bool, [E])); |
| 842 let orElse = opts && 'orElse' in opts ? opts.orElse : null; | 822 let orElse = opts && 'orElse' in opts ? opts.orElse : null; |
| 843 dart.as(orElse, dart.functionType(E, [])); | 823 dart.as(orElse, dart.functionType(E, [])); |
| 844 for (let element of this) { | 824 for (let element of this) { |
| 845 if (test(element)) | 825 if (test(element)) |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1082 class LinkedHashMap extends core.Object { | 1062 class LinkedHashMap extends core.Object { |
| 1083 LinkedHashMap(opts) { | 1063 LinkedHashMap(opts) { |
| 1084 let equals = opts && 'equals' in opts ? opts.equals : null; | 1064 let equals = opts && 'equals' in opts ? opts.equals : null; |
| 1085 let hashCode = opts && 'hashCode' in opts ? opts.hashCode : null; | 1065 let hashCode = opts && 'hashCode' in opts ? opts.hashCode : null; |
| 1086 let isValidKey = opts && 'isValidKey' in opts ? opts.isValidKey : null; | 1066 let isValidKey = opts && 'isValidKey' in opts ? opts.isValidKey : null; |
| 1087 if (isValidKey == null) { | 1067 if (isValidKey == null) { |
| 1088 if (hashCode == null) { | 1068 if (hashCode == null) { |
| 1089 if (equals == null) { | 1069 if (equals == null) { |
| 1090 return new (_LinkedHashMap$(K, V))(); | 1070 return new (_LinkedHashMap$(K, V))(); |
| 1091 } | 1071 } |
| 1092 hashCode = dart.as(_defaultHashCode, __CastType10); | 1072 hashCode = _defaultHashCode; |
| 1093 } else { | 1073 } else { |
| 1094 if (dart.notNull(core.identical(core.identityHashCode, hashCode)) &&
dart.notNull(core.identical(core.identical, equals))) { | 1074 if (dart.notNull(core.identical(core.identityHashCode, hashCode)) &&
dart.notNull(core.identical(core.identical, equals))) { |
| 1095 return new (_LinkedIdentityHashMap$(K, V))(); | 1075 return new (_LinkedIdentityHashMap$(K, V))(); |
| 1096 } | 1076 } |
| 1097 if (equals == null) { | 1077 if (equals == null) { |
| 1098 equals = dart.as(_defaultEquals, __CastType12); | 1078 equals = _defaultEquals; |
| 1099 } | 1079 } |
| 1100 } | 1080 } |
| 1101 } else { | 1081 } else { |
| 1102 if (hashCode == null) { | 1082 if (hashCode == null) { |
| 1103 hashCode = dart.as(_defaultHashCode, dart.functionType(core.int, [K]
)); | 1083 hashCode = _defaultHashCode; |
| 1104 } | 1084 } |
| 1105 if (equals == null) { | 1085 if (equals == null) { |
| 1106 equals = dart.as(_defaultEquals, dart.functionType(core.bool, [K, K]
)); | 1086 equals = _defaultEquals; |
| 1107 } | 1087 } |
| 1108 } | 1088 } |
| 1109 return new (_LinkedCustomHashMap$(K, V))(equals, hashCode, isValidKey); | 1089 return new (_LinkedCustomHashMap$(K, V))(equals, hashCode, isValidKey); |
| 1110 } | 1090 } |
| 1111 identity() { | 1091 identity() { |
| 1112 return new (_LinkedIdentityHashMap$(K, V))(); | 1092 return new (_LinkedIdentityHashMap$(K, V))(); |
| 1113 } | 1093 } |
| 1114 from(other) { | 1094 from(other) { |
| 1115 let result = new (LinkedHashMap$(K, V))(); | 1095 let result = new (LinkedHashMap$(K, V))(); |
| 1116 other.forEach((k, v) => { | 1096 other.forEach((k, v) => { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 1140 LinkedHashMap[dart.implements] = () => [HashMap$(K, V)]; | 1120 LinkedHashMap[dart.implements] = () => [HashMap$(K, V)]; |
| 1141 dart.defineNamedConstructor(LinkedHashMap, 'identity'); | 1121 dart.defineNamedConstructor(LinkedHashMap, 'identity'); |
| 1142 dart.defineNamedConstructor(LinkedHashMap, 'from'); | 1122 dart.defineNamedConstructor(LinkedHashMap, 'from'); |
| 1143 dart.defineNamedConstructor(LinkedHashMap, 'fromIterable'); | 1123 dart.defineNamedConstructor(LinkedHashMap, 'fromIterable'); |
| 1144 dart.defineNamedConstructor(LinkedHashMap, 'fromIterables'); | 1124 dart.defineNamedConstructor(LinkedHashMap, 'fromIterables'); |
| 1145 dart.defineNamedConstructor(LinkedHashMap, '_literal'); | 1125 dart.defineNamedConstructor(LinkedHashMap, '_literal'); |
| 1146 dart.defineNamedConstructor(LinkedHashMap, '_empty'); | 1126 dart.defineNamedConstructor(LinkedHashMap, '_empty'); |
| 1147 return LinkedHashMap; | 1127 return LinkedHashMap; |
| 1148 }); | 1128 }); |
| 1149 let LinkedHashMap = LinkedHashMap$(); | 1129 let LinkedHashMap = LinkedHashMap$(); |
| 1150 let __CastType10$ = dart.generic(function(K) { | |
| 1151 let __CastType10 = dart.typedef('__CastType10', () => dart.functionType(core
.int, [K])); | |
| 1152 return __CastType10; | |
| 1153 }); | |
| 1154 let __CastType10 = __CastType10$(); | |
| 1155 let __CastType12$ = dart.generic(function(K) { | |
| 1156 let __CastType12 = dart.typedef('__CastType12', () => dart.functionType(core
.bool, [K, K])); | |
| 1157 return __CastType12; | |
| 1158 }); | |
| 1159 let __CastType12 = __CastType12$(); | |
| 1160 let LinkedHashSet$ = dart.generic(function(E) { | 1130 let LinkedHashSet$ = dart.generic(function(E) { |
| 1161 class LinkedHashSet extends core.Object { | 1131 class LinkedHashSet extends core.Object { |
| 1162 LinkedHashSet(opts) { | 1132 LinkedHashSet(opts) { |
| 1163 let equals = opts && 'equals' in opts ? opts.equals : null; | 1133 let equals = opts && 'equals' in opts ? opts.equals : null; |
| 1164 let hashCode = opts && 'hashCode' in opts ? opts.hashCode : null; | 1134 let hashCode = opts && 'hashCode' in opts ? opts.hashCode : null; |
| 1165 let isValidKey = opts && 'isValidKey' in opts ? opts.isValidKey : null; | 1135 let isValidKey = opts && 'isValidKey' in opts ? opts.isValidKey : null; |
| 1166 if (isValidKey == null) { | 1136 if (isValidKey == null) { |
| 1167 if (hashCode == null) { | 1137 if (hashCode == null) { |
| 1168 if (equals == null) { | 1138 if (equals == null) { |
| 1169 return new (_LinkedHashSet$(E))(); | 1139 return new (_LinkedHashSet$(E))(); |
| 1170 } | 1140 } |
| 1171 hashCode = dart.as(_defaultHashCode, __CastType15); | 1141 hashCode = _defaultHashCode; |
| 1172 } else { | 1142 } else { |
| 1173 if (dart.notNull(core.identical(core.identityHashCode, hashCode)) &&
dart.notNull(core.identical(core.identical, equals))) { | 1143 if (dart.notNull(core.identical(core.identityHashCode, hashCode)) &&
dart.notNull(core.identical(core.identical, equals))) { |
| 1174 return new (_LinkedIdentityHashSet$(E))(); | 1144 return new (_LinkedIdentityHashSet$(E))(); |
| 1175 } | 1145 } |
| 1176 if (equals == null) { | 1146 if (equals == null) { |
| 1177 equals = dart.as(_defaultEquals, __CastType17); | 1147 equals = _defaultEquals; |
| 1178 } | 1148 } |
| 1179 } | 1149 } |
| 1180 } else { | 1150 } else { |
| 1181 if (hashCode == null) { | 1151 if (hashCode == null) { |
| 1182 hashCode = dart.as(_defaultHashCode, dart.functionType(core.int, [E]
)); | 1152 hashCode = _defaultHashCode; |
| 1183 } | 1153 } |
| 1184 if (equals == null) { | 1154 if (equals == null) { |
| 1185 equals = dart.as(_defaultEquals, dart.functionType(core.bool, [E, E]
)); | 1155 equals = _defaultEquals; |
| 1186 } | 1156 } |
| 1187 } | 1157 } |
| 1188 return new (_LinkedCustomHashSet$(E))(equals, hashCode, isValidKey); | 1158 return new (_LinkedCustomHashSet$(E))(equals, hashCode, isValidKey); |
| 1189 } | 1159 } |
| 1190 identity() { | 1160 identity() { |
| 1191 return new (_LinkedIdentityHashSet$(E))(); | 1161 return new (_LinkedIdentityHashSet$(E))(); |
| 1192 } | 1162 } |
| 1193 from(elements) { | 1163 from(elements) { |
| 1194 let result = new (LinkedHashSet$(E))(); | 1164 let result = new (LinkedHashSet$(E))(); |
| 1195 for (let element of elements) { | 1165 for (let element of elements) { |
| 1196 result.add(element); | 1166 result.add(element); |
| 1197 } | 1167 } |
| 1198 return result; | 1168 return result; |
| 1199 } | 1169 } |
| 1200 [Symbol.iterator]() { | 1170 [Symbol.iterator]() { |
| 1201 return new dart.JsIterator(this[core.$iterator]); | 1171 return new dart.JsIterator(this[core.$iterator]); |
| 1202 } | 1172 } |
| 1203 } | 1173 } |
| 1204 LinkedHashSet[dart.implements] = () => [HashSet$(E)]; | 1174 LinkedHashSet[dart.implements] = () => [HashSet$(E)]; |
| 1205 dart.defineNamedConstructor(LinkedHashSet, 'identity'); | 1175 dart.defineNamedConstructor(LinkedHashSet, 'identity'); |
| 1206 dart.defineNamedConstructor(LinkedHashSet, 'from'); | 1176 dart.defineNamedConstructor(LinkedHashSet, 'from'); |
| 1207 return LinkedHashSet; | 1177 return LinkedHashSet; |
| 1208 }); | 1178 }); |
| 1209 let LinkedHashSet = LinkedHashSet$(); | 1179 let LinkedHashSet = LinkedHashSet$(); |
| 1210 let __CastType15$ = dart.generic(function(E) { | |
| 1211 let __CastType15 = dart.typedef('__CastType15', () => dart.functionType(core
.int, [E])); | |
| 1212 return __CastType15; | |
| 1213 }); | |
| 1214 let __CastType15 = __CastType15$(); | |
| 1215 let __CastType17$ = dart.generic(function(E) { | |
| 1216 let __CastType17 = dart.typedef('__CastType17', () => dart.functionType(core
.bool, [E, E])); | |
| 1217 return __CastType17; | |
| 1218 }); | |
| 1219 let __CastType17 = __CastType17$(); | |
| 1220 let _modificationCount = Symbol('_modificationCount'); | 1180 let _modificationCount = Symbol('_modificationCount'); |
| 1221 let _length = Symbol('_length'); | 1181 let _length = Symbol('_length'); |
| 1222 let _next = Symbol('_next'); | 1182 let _next = Symbol('_next'); |
| 1223 let _previous = Symbol('_previous'); | 1183 let _previous = Symbol('_previous'); |
| 1224 let _insertAfter = Symbol('_insertAfter'); | 1184 let _insertAfter = Symbol('_insertAfter'); |
| 1225 let _list = Symbol('_list'); | 1185 let _list = Symbol('_list'); |
| 1226 let _unlink = Symbol('_unlink'); | 1186 let _unlink = Symbol('_unlink'); |
| 1227 let LinkedList$ = dart.generic(function(E) { | 1187 let LinkedList$ = dart.generic(function(E) { |
| 1228 class LinkedList extends IterableBase$(E) { | 1188 class LinkedList extends IterableBase$(E) { |
| 1229 LinkedList() { | 1189 LinkedList() { |
| (...skipping 1794 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3024 return this[_comparator](key1, key2); | 2984 return this[_comparator](key1, key2); |
| 3025 } | 2985 } |
| 3026 _internal() { | 2986 _internal() { |
| 3027 this[_comparator] = null; | 2987 this[_comparator] = null; |
| 3028 this[_validKey] = null; | 2988 this[_validKey] = null; |
| 3029 super._SplayTree(); | 2989 super._SplayTree(); |
| 3030 } | 2990 } |
| 3031 get(key) { | 2991 get(key) { |
| 3032 if (key == null) | 2992 if (key == null) |
| 3033 throw new core.ArgumentError(key); | 2993 throw new core.ArgumentError(key); |
| 3034 if (!dart.notNull(dart.dcall(this[_validKey], key))) | 2994 if (!dart.notNull(this[_validKey](key))) |
| 3035 return null; | 2995 return null; |
| 3036 if (this[_root] != null) { | 2996 if (this[_root] != null) { |
| 3037 let comp = this[_splay](dart.as(key, K)); | 2997 let comp = this[_splay](dart.as(key, K)); |
| 3038 if (comp == 0) { | 2998 if (comp == 0) { |
| 3039 let mapRoot = dart.as(this[_root], _SplayTreeMapNode); | 2999 let mapRoot = dart.as(this[_root], _SplayTreeMapNode); |
| 3040 return dart.as(mapRoot.value, V); | 3000 return dart.as(mapRoot.value, V); |
| 3041 } | 3001 } |
| 3042 } | 3002 } |
| 3043 return null; | 3003 return null; |
| 3044 } | 3004 } |
| 3045 remove(key) { | 3005 remove(key) { |
| 3046 if (!dart.notNull(dart.dcall(this[_validKey], key))) | 3006 if (!dart.notNull(this[_validKey](key))) |
| 3047 return null; | 3007 return null; |
| 3048 let mapRoot = dart.as(this[_remove](dart.as(key, K)), _SplayTreeMapNode)
; | 3008 let mapRoot = dart.as(this[_remove](dart.as(key, K)), _SplayTreeMapNode)
; |
| 3049 if (mapRoot != null) | 3009 if (mapRoot != null) |
| 3050 return dart.as(mapRoot.value, V); | 3010 return dart.as(mapRoot.value, V); |
| 3051 return null; | 3011 return null; |
| 3052 } | 3012 } |
| 3053 set(key, value) { | 3013 set(key, value) { |
| 3054 dart.as(key, K); | 3014 dart.as(key, K); |
| 3055 dart.as(value, V); | 3015 dart.as(value, V); |
| 3056 if (key == null) | 3016 if (key == null) |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3108 f(node.key, node.value); | 3068 f(node.key, node.value); |
| 3109 } | 3069 } |
| 3110 } | 3070 } |
| 3111 get length() { | 3071 get length() { |
| 3112 return this[_count]; | 3072 return this[_count]; |
| 3113 } | 3073 } |
| 3114 clear() { | 3074 clear() { |
| 3115 this[_clear](); | 3075 this[_clear](); |
| 3116 } | 3076 } |
| 3117 containsKey(key) { | 3077 containsKey(key) { |
| 3118 return dart.notNull(dart.dcall(this[_validKey], key)) && this[_splay](da
rt.as(key, K)) == 0; | 3078 return dart.notNull(this[_validKey](key)) && this[_splay](dart.as(key, K
)) == 0; |
| 3119 } | 3079 } |
| 3120 containsValue(value) { | 3080 containsValue(value) { |
| 3121 let found = false; | 3081 let found = false; |
| 3122 let initialSplayCount = this[_splayCount]; | 3082 let initialSplayCount = this[_splayCount]; |
| 3123 // Function visit: (_SplayTreeMapNode<dynamic, dynamic>) → bool | 3083 // Function visit: (_SplayTreeMapNode<dynamic, dynamic>) → bool |
| 3124 function visit(node) { | 3084 function visit(node) { |
| 3125 while (node != null) { | 3085 while (node != null) { |
| 3126 if (dart.equals(node.value, value)) | 3086 if (dart.equals(node.value, value)) |
| 3127 return true; | 3087 return true; |
| 3128 if (initialSplayCount != this[_splayCount]) { | 3088 if (initialSplayCount != this[_splayCount]) { |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3284 return this[_tree][_count]; | 3244 return this[_tree][_count]; |
| 3285 } | 3245 } |
| 3286 get [core.$isEmpty]() { | 3246 get [core.$isEmpty]() { |
| 3287 return this[_tree][_count] == 0; | 3247 return this[_tree][_count] == 0; |
| 3288 } | 3248 } |
| 3289 get [core.$iterator]() { | 3249 get [core.$iterator]() { |
| 3290 return new (_SplayTreeKeyIterator$(K))(this[_tree]); | 3250 return new (_SplayTreeKeyIterator$(K))(this[_tree]); |
| 3291 } | 3251 } |
| 3292 [core.$toSet]() { | 3252 [core.$toSet]() { |
| 3293 let setOrMap = this[_tree]; | 3253 let setOrMap = this[_tree]; |
| 3294 let set = new (SplayTreeSet$(K))(dart.as(setOrMap[_comparator], __CastTy
pe20), dart.as(setOrMap[_validKey], __CastType23)); | 3254 let set = new (SplayTreeSet$(K))(dart.as(setOrMap[_comparator], __CastTy
pe0), dart.as(setOrMap[_validKey], __CastType3)); |
| 3295 set[_count] = this[_tree][_count]; | 3255 set[_count] = this[_tree][_count]; |
| 3296 set[_root] = set[_copyNode](this[_tree][_root]); | 3256 set[_root] = set[_copyNode](this[_tree][_root]); |
| 3297 return set; | 3257 return set; |
| 3298 } | 3258 } |
| 3299 } | 3259 } |
| 3300 _SplayTreeKeyIterable[dart.implements] = () => [_internal.EfficientLength]; | 3260 _SplayTreeKeyIterable[dart.implements] = () => [_internal.EfficientLength]; |
| 3301 return _SplayTreeKeyIterable; | 3261 return _SplayTreeKeyIterable; |
| 3302 }); | 3262 }); |
| 3303 let _SplayTreeKeyIterable = _SplayTreeKeyIterable$(); | 3263 let _SplayTreeKeyIterable = _SplayTreeKeyIterable$(); |
| 3304 let _SplayTreeValueIterable$ = dart.generic(function(K, V) { | 3264 let _SplayTreeValueIterable$ = dart.generic(function(K, V) { |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3362 }); | 3322 }); |
| 3363 let _SplayTreeNodeIterator = _SplayTreeNodeIterator$(); | 3323 let _SplayTreeNodeIterator = _SplayTreeNodeIterator$(); |
| 3364 let _clone = Symbol('_clone'); | 3324 let _clone = Symbol('_clone'); |
| 3365 let SplayTreeSet$ = dart.generic(function(E) { | 3325 let SplayTreeSet$ = dart.generic(function(E) { |
| 3366 class SplayTreeSet extends dart.mixin(_SplayTree$(E), IterableMixin$(E), Set
Mixin$(E)) { | 3326 class SplayTreeSet extends dart.mixin(_SplayTree$(E), IterableMixin$(E), Set
Mixin$(E)) { |
| 3367 SplayTreeSet(compare, isValidKey) { | 3327 SplayTreeSet(compare, isValidKey) { |
| 3368 if (compare === void 0) | 3328 if (compare === void 0) |
| 3369 compare = null; | 3329 compare = null; |
| 3370 if (isValidKey === void 0) | 3330 if (isValidKey === void 0) |
| 3371 isValidKey = null; | 3331 isValidKey = null; |
| 3372 this[_comparator] = compare == null ? dart.bind(core.Comparable, 'compar
e') : compare; | 3332 this[_comparator] = dart.as(compare == null ? dart.bind(core.Comparable,
'compare') : compare, core.Comparator$(E)); |
| 3373 this[_validKey] = isValidKey != null ? isValidKey : v => dart.is(v, E); | 3333 this[_validKey] = isValidKey != null ? isValidKey : v => dart.is(v, E); |
| 3374 super._SplayTree(); | 3334 super._SplayTree(); |
| 3375 } | 3335 } |
| 3376 from(elements, compare, isValidKey) { | 3336 from(elements, compare, isValidKey) { |
| 3377 if (compare === void 0) | 3337 if (compare === void 0) |
| 3378 compare = null; | 3338 compare = null; |
| 3379 if (isValidKey === void 0) | 3339 if (isValidKey === void 0) |
| 3380 isValidKey = null; | 3340 isValidKey = null; |
| 3381 let result = new (SplayTreeSet$(E))(compare, isValidKey); | 3341 let result = new (SplayTreeSet$(E))(compare, isValidKey); |
| 3382 for (let element of dart.as(elements, core.Iterable$(E))) { | 3342 for (let element of dart.as(elements, core.Iterable$(E))) { |
| 3383 result.add(element); | 3343 result.add(element); |
| 3384 } | 3344 } |
| 3385 return result; | 3345 return result; |
| 3386 } | 3346 } |
| 3387 [_compare](e1, e2) { | 3347 [_compare](e1, e2) { |
| 3388 dart.as(e1, E); | 3348 dart.as(e1, E); |
| 3389 dart.as(e2, E); | 3349 dart.as(e2, E); |
| 3390 return dart.dcall(this[_comparator], e1, e2); | 3350 return this[_comparator](e1, e2); |
| 3391 } | 3351 } |
| 3392 get [core.$iterator]() { | 3352 get [core.$iterator]() { |
| 3393 return new (_SplayTreeKeyIterator$(E))(this); | 3353 return new (_SplayTreeKeyIterator$(E))(this); |
| 3394 } | 3354 } |
| 3395 get [core.$length]() { | 3355 get [core.$length]() { |
| 3396 return this[_count]; | 3356 return this[_count]; |
| 3397 } | 3357 } |
| 3398 get [core.$isEmpty]() { | 3358 get [core.$isEmpty]() { |
| 3399 return this[_root] == null; | 3359 return this[_root] == null; |
| 3400 } | 3360 } |
| (...skipping 11 matching lines...) Expand all Loading... |
| 3412 return dart.as(this[_last].key, E); | 3372 return dart.as(this[_last].key, E); |
| 3413 } | 3373 } |
| 3414 get [core.$single]() { | 3374 get [core.$single]() { |
| 3415 if (this[_count] == 0) | 3375 if (this[_count] == 0) |
| 3416 throw _internal.IterableElementError.noElement(); | 3376 throw _internal.IterableElementError.noElement(); |
| 3417 if (dart.notNull(this[_count]) > 1) | 3377 if (dart.notNull(this[_count]) > 1) |
| 3418 throw _internal.IterableElementError.tooMany(); | 3378 throw _internal.IterableElementError.tooMany(); |
| 3419 return this[_root].key; | 3379 return this[_root].key; |
| 3420 } | 3380 } |
| 3421 [core.$contains](object) { | 3381 [core.$contains](object) { |
| 3422 return dart.notNull(dart.dcall(this[_validKey], object)) && this[_splay]
(dart.as(object, E)) == 0; | 3382 return dart.notNull(this[_validKey](object)) && this[_splay](dart.as(obj
ect, E)) == 0; |
| 3423 } | 3383 } |
| 3424 add(element) { | 3384 add(element) { |
| 3425 dart.as(element, E); | 3385 dart.as(element, E); |
| 3426 let compare = this[_splay](element); | 3386 let compare = this[_splay](element); |
| 3427 if (compare == 0) | 3387 if (compare == 0) |
| 3428 return false; | 3388 return false; |
| 3429 this[_addNewRoot](new (_SplayTreeNode$(E))(element), compare); | 3389 this[_addNewRoot](new (_SplayTreeNode$(E))(element), compare); |
| 3430 return true; | 3390 return true; |
| 3431 } | 3391 } |
| 3432 remove(object) { | 3392 remove(object) { |
| 3433 if (!dart.notNull(dart.dcall(this[_validKey], object))) | 3393 if (!dart.notNull(this[_validKey](object))) |
| 3434 return false; | 3394 return false; |
| 3435 return this[_remove](dart.as(object, E)) != null; | 3395 return this[_remove](dart.as(object, E)) != null; |
| 3436 } | 3396 } |
| 3437 addAll(elements) { | 3397 addAll(elements) { |
| 3438 dart.as(elements, core.Iterable$(E)); | 3398 dart.as(elements, core.Iterable$(E)); |
| 3439 for (let element of elements) { | 3399 for (let element of elements) { |
| 3440 let compare = this[_splay](element); | 3400 let compare = this[_splay](element); |
| 3441 if (compare != 0) { | 3401 if (compare != 0) { |
| 3442 this[_addNewRoot](new (_SplayTreeNode$(E))(element), compare); | 3402 this[_addNewRoot](new (_SplayTreeNode$(E))(element), compare); |
| 3443 } | 3403 } |
| 3444 } | 3404 } |
| 3445 } | 3405 } |
| 3446 removeAll(elements) { | 3406 removeAll(elements) { |
| 3447 for (let element of elements) { | 3407 for (let element of elements) { |
| 3448 if (dart.dcall(this[_validKey], element)) | 3408 if (this[_validKey](element)) |
| 3449 this[_remove](dart.as(element, E)); | 3409 this[_remove](dart.as(element, E)); |
| 3450 } | 3410 } |
| 3451 } | 3411 } |
| 3452 retainAll(elements) { | 3412 retainAll(elements) { |
| 3453 let retainSet = new (SplayTreeSet$(E))(dart.as(this[_comparator], __Cast
Type25), this[_validKey]); | 3413 let retainSet = new (SplayTreeSet$(E))(this[_comparator], this[_validKey
]); |
| 3454 let modificationCount = this[_modificationCount]; | 3414 let modificationCount = this[_modificationCount]; |
| 3455 for (let object of elements) { | 3415 for (let object of elements) { |
| 3456 if (modificationCount != this[_modificationCount]) { | 3416 if (modificationCount != this[_modificationCount]) { |
| 3457 throw new core.ConcurrentModificationError(this); | 3417 throw new core.ConcurrentModificationError(this); |
| 3458 } | 3418 } |
| 3459 if (dart.notNull(dart.dcall(this[_validKey], object)) && this[_splay](
dart.as(object, E)) == 0) | 3419 if (dart.notNull(this[_validKey](object)) && this[_splay](dart.as(obje
ct, E)) == 0) |
| 3460 retainSet.add(this[_root].key); | 3420 retainSet.add(this[_root].key); |
| 3461 } | 3421 } |
| 3462 if (retainSet[_count] != this[_count]) { | 3422 if (retainSet[_count] != this[_count]) { |
| 3463 this[_root] = retainSet[_root]; | 3423 this[_root] = retainSet[_root]; |
| 3464 this[_count] = retainSet[_count]; | 3424 this[_count] = retainSet[_count]; |
| 3465 this[_modificationCount] = dart.notNull(this[_modificationCount]) + 1; | 3425 this[_modificationCount] = dart.notNull(this[_modificationCount]) + 1; |
| 3466 } | 3426 } |
| 3467 } | 3427 } |
| 3468 lookup(object) { | 3428 lookup(object) { |
| 3469 if (!dart.notNull(dart.dcall(this[_validKey], object))) | 3429 if (!dart.notNull(this[_validKey](object))) |
| 3470 return null; | 3430 return null; |
| 3471 let comp = this[_splay](dart.as(object, E)); | 3431 let comp = this[_splay](dart.as(object, E)); |
| 3472 if (comp != 0) | 3432 if (comp != 0) |
| 3473 return null; | 3433 return null; |
| 3474 return this[_root].key; | 3434 return this[_root].key; |
| 3475 } | 3435 } |
| 3476 intersection(other) { | 3436 intersection(other) { |
| 3477 let result = new (SplayTreeSet$(E))(dart.as(this[_comparator], dart.func
tionType(core.int, [E, E])), this[_validKey]); | 3437 let result = new (SplayTreeSet$(E))(this[_comparator], this[_validKey]); |
| 3478 for (let element of this) { | 3438 for (let element of this) { |
| 3479 if (other[core.$contains](element)) | 3439 if (other[core.$contains](element)) |
| 3480 result.add(element); | 3440 result.add(element); |
| 3481 } | 3441 } |
| 3482 return result; | 3442 return result; |
| 3483 } | 3443 } |
| 3484 difference(other) { | 3444 difference(other) { |
| 3485 let result = new (SplayTreeSet$(E))(dart.as(this[_comparator], dart.func
tionType(core.int, [E, E])), this[_validKey]); | 3445 let result = new (SplayTreeSet$(E))(this[_comparator], this[_validKey]); |
| 3486 for (let element of this) { | 3446 for (let element of this) { |
| 3487 if (!dart.notNull(other[core.$contains](element))) | 3447 if (!dart.notNull(other[core.$contains](element))) |
| 3488 result.add(element); | 3448 result.add(element); |
| 3489 } | 3449 } |
| 3490 return result; | 3450 return result; |
| 3491 } | 3451 } |
| 3492 union(other) { | 3452 union(other) { |
| 3493 dart.as(other, core.Set$(E)); | 3453 dart.as(other, core.Set$(E)); |
| 3494 let _ = this[_clone](); | 3454 let _ = this[_clone](); |
| 3495 _.addAll(other); | 3455 _.addAll(other); |
| 3496 return _; | 3456 return _; |
| 3497 } | 3457 } |
| 3498 [_clone]() { | 3458 [_clone]() { |
| 3499 let set = new (SplayTreeSet$(E))(dart.as(this[_comparator], dart.functio
nType(core.int, [E, E])), this[_validKey]); | 3459 let set = new (SplayTreeSet$(E))(this[_comparator], this[_validKey]); |
| 3500 set[_count] = this[_count]; | 3460 set[_count] = this[_count]; |
| 3501 set[_root] = this[_copyNode](this[_root]); | 3461 set[_root] = this[_copyNode](this[_root]); |
| 3502 return set; | 3462 return set; |
| 3503 } | 3463 } |
| 3504 [_copyNode](node) { | 3464 [_copyNode](node) { |
| 3505 dart.as(node, _SplayTreeNode$(E)); | 3465 dart.as(node, _SplayTreeNode$(E)); |
| 3506 if (node == null) | 3466 if (node == null) |
| 3507 return null; | 3467 return null; |
| 3508 let _ = new (_SplayTreeNode$(E))(node.key); | 3468 let _ = new (_SplayTreeNode$(E))(node.key); |
| 3509 _.left = this[_copyNode](node.left); | 3469 _.left = this[_copyNode](node.left); |
| 3510 _.right = this[_copyNode](node.right); | 3470 _.right = this[_copyNode](node.right); |
| 3511 return _; | 3471 return _; |
| 3512 } | 3472 } |
| 3513 clear() { | 3473 clear() { |
| 3514 this[_clear](); | 3474 this[_clear](); |
| 3515 } | 3475 } |
| 3516 [core.$toSet]() { | 3476 [core.$toSet]() { |
| 3517 return this[_clone](); | 3477 return this[_clone](); |
| 3518 } | 3478 } |
| 3519 toString() { | 3479 toString() { |
| 3520 return IterableBase.iterableToFullString(this, '{', '}'); | 3480 return IterableBase.iterableToFullString(this, '{', '}'); |
| 3521 } | 3481 } |
| 3522 } | 3482 } |
| 3523 dart.defineNamedConstructor(SplayTreeSet, 'from'); | 3483 dart.defineNamedConstructor(SplayTreeSet, 'from'); |
| 3524 return SplayTreeSet; | 3484 return SplayTreeSet; |
| 3525 }); | 3485 }); |
| 3526 let SplayTreeSet = SplayTreeSet$(); | 3486 let SplayTreeSet = SplayTreeSet$(); |
| 3527 let __CastType20$ = dart.generic(function(K) { | 3487 let __CastType0$ = dart.generic(function(K) { |
| 3528 let __CastType20 = dart.typedef('__CastType20', () => dart.functionType(core
.int, [K, K])); | 3488 let __CastType0 = dart.typedef('__CastType0', () => dart.functionType(core.i
nt, [K, K])); |
| 3529 return __CastType20; | 3489 return __CastType0; |
| 3530 }); | 3490 }); |
| 3531 let __CastType20 = __CastType20$(); | 3491 let __CastType0 = __CastType0$(); |
| 3532 let __CastType23 = dart.typedef('__CastType23', () => dart.functionType(core.b
ool, [dart.dynamic])); | 3492 let __CastType3 = dart.typedef('__CastType3', () => dart.functionType(core.boo
l, [core.Object])); |
| 3533 let __CastType25$ = dart.generic(function(E) { | |
| 3534 let __CastType25 = dart.typedef('__CastType25', () => dart.functionType(core
.int, [E, E])); | |
| 3535 return __CastType25; | |
| 3536 }); | |
| 3537 let __CastType25 = __CastType25$(); | |
| 3538 let _strings = Symbol('_strings'); | 3493 let _strings = Symbol('_strings'); |
| 3539 let _nums = Symbol('_nums'); | 3494 let _nums = Symbol('_nums'); |
| 3540 let _rest = Symbol('_rest'); | 3495 let _rest = Symbol('_rest'); |
| 3541 let _containsKey = Symbol('_containsKey'); | 3496 let _containsKey = Symbol('_containsKey'); |
| 3542 let _getBucket = Symbol('_getBucket'); | 3497 let _getBucket = Symbol('_getBucket'); |
| 3543 let _findBucketIndex = Symbol('_findBucketIndex'); | 3498 let _findBucketIndex = Symbol('_findBucketIndex'); |
| 3544 let _computeKeys = Symbol('_computeKeys'); | 3499 let _computeKeys = Symbol('_computeKeys'); |
| 3545 let _get = Symbol('_get'); | 3500 let _get = Symbol('_get'); |
| 3546 let _addHashTableEntry = Symbol('_addHashTableEntry'); | 3501 let _addHashTableEntry = Symbol('_addHashTableEntry'); |
| 3547 let _set = Symbol('_set'); | 3502 let _set = Symbol('_set'); |
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3848 let _hashCode = Symbol('_hashCode'); | 3803 let _hashCode = Symbol('_hashCode'); |
| 3849 let _CustomHashMap$ = dart.generic(function(K, V) { | 3804 let _CustomHashMap$ = dart.generic(function(K, V) { |
| 3850 class _CustomHashMap extends _HashMap$(K, V) { | 3805 class _CustomHashMap extends _HashMap$(K, V) { |
| 3851 _CustomHashMap(equals, hashCode, validKey) { | 3806 _CustomHashMap(equals, hashCode, validKey) { |
| 3852 this[_equals] = equals; | 3807 this[_equals] = equals; |
| 3853 this[_hashCode] = hashCode; | 3808 this[_hashCode] = hashCode; |
| 3854 this[_validKey] = validKey != null ? validKey : v => dart.is(v, K); | 3809 this[_validKey] = validKey != null ? validKey : v => dart.is(v, K); |
| 3855 super._HashMap(); | 3810 super._HashMap(); |
| 3856 } | 3811 } |
| 3857 get(key) { | 3812 get(key) { |
| 3858 if (!dart.notNull(dart.dcall(this[_validKey], key))) | 3813 if (!dart.notNull(this[_validKey](key))) |
| 3859 return null; | 3814 return null; |
| 3860 return super[_get](key); | 3815 return super[_get](key); |
| 3861 } | 3816 } |
| 3862 set(key, value) { | 3817 set(key, value) { |
| 3863 dart.as(key, K); | 3818 dart.as(key, K); |
| 3864 dart.as(value, V); | 3819 dart.as(value, V); |
| 3865 super[_set](key, value); | 3820 super[_set](key, value); |
| 3866 } | 3821 } |
| 3867 containsKey(key) { | 3822 containsKey(key) { |
| 3868 if (!dart.notNull(dart.dcall(this[_validKey], key))) | 3823 if (!dart.notNull(this[_validKey](key))) |
| 3869 return false; | 3824 return false; |
| 3870 return super[_containsKey](key); | 3825 return super[_containsKey](key); |
| 3871 } | 3826 } |
| 3872 remove(key) { | 3827 remove(key) { |
| 3873 if (!dart.notNull(dart.dcall(this[_validKey], key))) | 3828 if (!dart.notNull(this[_validKey](key))) |
| 3874 return null; | 3829 return null; |
| 3875 return super[_remove](key); | 3830 return super[_remove](key); |
| 3876 } | 3831 } |
| 3877 [_computeHashCode](key) { | 3832 [_computeHashCode](key) { |
| 3878 return this[_hashCode](dart.as(key, K)) & 0x3ffffff; | 3833 return this[_hashCode](dart.as(key, K)) & 0x3ffffff; |
| 3879 } | 3834 } |
| 3880 [_findBucketIndex](bucket, key) { | 3835 [_findBucketIndex](bucket, key) { |
| 3881 if (bucket == null) | 3836 if (bucket == null) |
| 3882 return -1; | 3837 return -1; |
| 3883 let length = bucket.length; | 3838 let length = bucket.length; |
| (...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4271 let _LinkedIdentityHashMap = _LinkedIdentityHashMap$(); | 4226 let _LinkedIdentityHashMap = _LinkedIdentityHashMap$(); |
| 4272 let _LinkedCustomHashMap$ = dart.generic(function(K, V) { | 4227 let _LinkedCustomHashMap$ = dart.generic(function(K, V) { |
| 4273 class _LinkedCustomHashMap extends _LinkedHashMap$(K, V) { | 4228 class _LinkedCustomHashMap extends _LinkedHashMap$(K, V) { |
| 4274 _LinkedCustomHashMap(equals, hashCode, validKey) { | 4229 _LinkedCustomHashMap(equals, hashCode, validKey) { |
| 4275 this[_equals] = equals; | 4230 this[_equals] = equals; |
| 4276 this[_hashCode] = hashCode; | 4231 this[_hashCode] = hashCode; |
| 4277 this[_validKey] = validKey != null ? validKey : v => dart.is(v, K); | 4232 this[_validKey] = validKey != null ? validKey : v => dart.is(v, K); |
| 4278 super._LinkedHashMap(); | 4233 super._LinkedHashMap(); |
| 4279 } | 4234 } |
| 4280 get(key) { | 4235 get(key) { |
| 4281 if (!dart.notNull(dart.dcall(this[_validKey], key))) | 4236 if (!dart.notNull(this[_validKey](key))) |
| 4282 return null; | 4237 return null; |
| 4283 return super[_get](key); | 4238 return super[_get](key); |
| 4284 } | 4239 } |
| 4285 set(key, value) { | 4240 set(key, value) { |
| 4286 dart.as(key, K); | 4241 dart.as(key, K); |
| 4287 dart.as(value, V); | 4242 dart.as(value, V); |
| 4288 super[_set](key, value); | 4243 super[_set](key, value); |
| 4289 } | 4244 } |
| 4290 containsKey(key) { | 4245 containsKey(key) { |
| 4291 if (!dart.notNull(dart.dcall(this[_validKey], key))) | 4246 if (!dart.notNull(this[_validKey](key))) |
| 4292 return false; | 4247 return false; |
| 4293 return super[_containsKey](key); | 4248 return super[_containsKey](key); |
| 4294 } | 4249 } |
| 4295 remove(key) { | 4250 remove(key) { |
| 4296 if (!dart.notNull(dart.dcall(this[_validKey], key))) | 4251 if (!dart.notNull(this[_validKey](key))) |
| 4297 return null; | 4252 return null; |
| 4298 return super[_remove](key); | 4253 return super[_remove](key); |
| 4299 } | 4254 } |
| 4300 [_computeHashCode](key) { | 4255 [_computeHashCode](key) { |
| 4301 return this[_hashCode](dart.as(key, K)) & 0x3ffffff; | 4256 return this[_hashCode](dart.as(key, K)) & 0x3ffffff; |
| 4302 } | 4257 } |
| 4303 [_findBucketIndex](bucket, key) { | 4258 [_findBucketIndex](bucket, key) { |
| 4304 if (bucket == null) | 4259 if (bucket == null) |
| 4305 return -1; | 4260 return -1; |
| 4306 let length = bucket.length; | 4261 let length = bucket.length; |
| (...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4675 return -1; | 4630 return -1; |
| 4676 } | 4631 } |
| 4677 [_computeHashCode](element) { | 4632 [_computeHashCode](element) { |
| 4678 return this[_hasher](dart.as(element, E)) & 0x3ffffff; | 4633 return this[_hasher](dart.as(element, E)) & 0x3ffffff; |
| 4679 } | 4634 } |
| 4680 add(object) { | 4635 add(object) { |
| 4681 dart.as(object, E); | 4636 dart.as(object, E); |
| 4682 return super[_add](object); | 4637 return super[_add](object); |
| 4683 } | 4638 } |
| 4684 [core.$contains](object) { | 4639 [core.$contains](object) { |
| 4685 if (!dart.notNull(dart.dcall(this[_validKey], object))) | 4640 if (!dart.notNull(this[_validKey](object))) |
| 4686 return false; | 4641 return false; |
| 4687 return super[_contains](object); | 4642 return super[_contains](object); |
| 4688 } | 4643 } |
| 4689 lookup(object) { | 4644 lookup(object) { |
| 4690 if (!dart.notNull(dart.dcall(this[_validKey], object))) | 4645 if (!dart.notNull(this[_validKey](object))) |
| 4691 return null; | 4646 return null; |
| 4692 return super[_lookup](object); | 4647 return super[_lookup](object); |
| 4693 } | 4648 } |
| 4694 remove(object) { | 4649 remove(object) { |
| 4695 if (!dart.notNull(dart.dcall(this[_validKey], object))) | 4650 if (!dart.notNull(this[_validKey](object))) |
| 4696 return false; | 4651 return false; |
| 4697 return super[_remove](object); | 4652 return super[_remove](object); |
| 4698 } | 4653 } |
| 4699 } | 4654 } |
| 4700 return _CustomHashSet; | 4655 return _CustomHashSet; |
| 4701 }); | 4656 }); |
| 4702 let _CustomHashSet = _CustomHashSet$(); | 4657 let _CustomHashSet = _CustomHashSet$(); |
| 4703 let HashSetIterator$ = dart.generic(function(E) { | 4658 let HashSetIterator$ = dart.generic(function(E) { |
| 4704 class HashSetIterator extends core.Object { | 4659 class HashSetIterator extends core.Object { |
| 4705 HashSetIterator(set, elements) { | 4660 HashSetIterator(set, elements) { |
| (...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5058 return -1; | 5013 return -1; |
| 5059 } | 5014 } |
| 5060 [_computeHashCode](element) { | 5015 [_computeHashCode](element) { |
| 5061 return this[_hasher](dart.as(element, E)) & 0x3ffffff; | 5016 return this[_hasher](dart.as(element, E)) & 0x3ffffff; |
| 5062 } | 5017 } |
| 5063 add(element) { | 5018 add(element) { |
| 5064 dart.as(element, E); | 5019 dart.as(element, E); |
| 5065 return super[_add](element); | 5020 return super[_add](element); |
| 5066 } | 5021 } |
| 5067 [core.$contains](object) { | 5022 [core.$contains](object) { |
| 5068 if (!dart.notNull(dart.dcall(this[_validKey], object))) | 5023 if (!dart.notNull(this[_validKey](object))) |
| 5069 return false; | 5024 return false; |
| 5070 return super[_contains](object); | 5025 return super[_contains](object); |
| 5071 } | 5026 } |
| 5072 lookup(object) { | 5027 lookup(object) { |
| 5073 if (!dart.notNull(dart.dcall(this[_validKey], object))) | 5028 if (!dart.notNull(this[_validKey](object))) |
| 5074 return null; | 5029 return null; |
| 5075 return super[_lookup](object); | 5030 return super[_lookup](object); |
| 5076 } | 5031 } |
| 5077 remove(object) { | 5032 remove(object) { |
| 5078 if (!dart.notNull(dart.dcall(this[_validKey], object))) | 5033 if (!dart.notNull(this[_validKey](object))) |
| 5079 return false; | 5034 return false; |
| 5080 return super[_remove](object); | 5035 return super[_remove](object); |
| 5081 } | 5036 } |
| 5082 containsAll(elements) { | 5037 containsAll(elements) { |
| 5083 for (let element of elements) { | 5038 for (let element of elements) { |
| 5084 if (!dart.notNull(dart.dcall(this[_validKey], element)) || !dart.notNu
ll(this[core.$contains](element))) | 5039 if (!dart.notNull(this[_validKey](element)) || !dart.notNull(this[core
.$contains](element))) |
| 5085 return false; | 5040 return false; |
| 5086 } | 5041 } |
| 5087 return true; | 5042 return true; |
| 5088 } | 5043 } |
| 5089 removeAll(elements) { | 5044 removeAll(elements) { |
| 5090 for (let element of elements) { | 5045 for (let element of elements) { |
| 5091 if (dart.dcall(this[_validKey], element)) { | 5046 if (this[_validKey](element)) { |
| 5092 super[_remove](element); | 5047 super[_remove](element); |
| 5093 } | 5048 } |
| 5094 } | 5049 } |
| 5095 } | 5050 } |
| 5096 } | 5051 } |
| 5097 return _LinkedCustomHashSet; | 5052 return _LinkedCustomHashSet; |
| 5098 }); | 5053 }); |
| 5099 let _LinkedCustomHashSet = _LinkedCustomHashSet$(); | 5054 let _LinkedCustomHashSet = _LinkedCustomHashSet$(); |
| 5100 class LinkedHashSetCell extends core.Object { | 5055 class LinkedHashSetCell extends core.Object { |
| 5101 LinkedHashSetCell(element) { | 5056 LinkedHashSetCell(element) { |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5192 exports.LinkedHashMapKeyIterable$ = LinkedHashMapKeyIterable$; | 5147 exports.LinkedHashMapKeyIterable$ = LinkedHashMapKeyIterable$; |
| 5193 exports.LinkedHashMapKeyIterable = LinkedHashMapKeyIterable; | 5148 exports.LinkedHashMapKeyIterable = LinkedHashMapKeyIterable; |
| 5194 exports.LinkedHashMapKeyIterator$ = LinkedHashMapKeyIterator$; | 5149 exports.LinkedHashMapKeyIterator$ = LinkedHashMapKeyIterator$; |
| 5195 exports.LinkedHashMapKeyIterator = LinkedHashMapKeyIterator; | 5150 exports.LinkedHashMapKeyIterator = LinkedHashMapKeyIterator; |
| 5196 exports.HashSetIterator$ = HashSetIterator$; | 5151 exports.HashSetIterator$ = HashSetIterator$; |
| 5197 exports.HashSetIterator = HashSetIterator; | 5152 exports.HashSetIterator = HashSetIterator; |
| 5198 exports.LinkedHashSetCell = LinkedHashSetCell; | 5153 exports.LinkedHashSetCell = LinkedHashSetCell; |
| 5199 exports.LinkedHashSetIterator$ = LinkedHashSetIterator$; | 5154 exports.LinkedHashSetIterator$ = LinkedHashSetIterator$; |
| 5200 exports.LinkedHashSetIterator = LinkedHashSetIterator; | 5155 exports.LinkedHashSetIterator = LinkedHashSetIterator; |
| 5201 })(collection || (collection = {})); | 5156 })(collection || (collection = {})); |
| OLD | NEW |