| OLD | NEW |
| 1 var collection = dart.defineLibrary(collection, {}); | 1 var collection = dart.defineLibrary(collection, {}); |
| 2 var _internal = dart.lazyImport(_internal); | 2 var _internal = dart.lazyImport(_internal); |
| 3 var core = dart.import(core); | 3 var core = dart.import(core); |
| 4 var _js_helper = dart.lazyImport(_js_helper); | 4 var _js_helper = dart.lazyImport(_js_helper); |
| 5 var math = dart.lazyImport(math); | 5 var math = dart.lazyImport(math); |
| 6 (function(exports, _internal, core, _js_helper, math) { | 6 (function(exports, _internal, core, _js_helper, math) { |
| 7 'use strict'; | 7 'use strict'; |
| 8 let _source = Symbol('_source'); | 8 let _source = Symbol('_source'); |
| 9 let UnmodifiableListView$ = dart.generic(function(E) { | 9 let UnmodifiableListView$ = dart.generic(function(E) { |
| 10 class UnmodifiableListView extends _internal.UnmodifiableListBase$(E) { | 10 class UnmodifiableListView extends _internal.UnmodifiableListBase$(E) { |
| 11 UnmodifiableListView(source) { | 11 UnmodifiableListView(source) { |
| 12 this[_source] = source; | 12 this[_source] = source; |
| 13 } | 13 } |
| 14 get [core.$length]() { | 14 get [core.$length]() { |
| 15 return this[_source][core.$length]; | 15 return this[_source][core.$length]; |
| 16 } | 16 } |
| 17 [core.$get](index) { | 17 [core.$get](index) { |
| 18 return this[_source][core.$elementAt](index); | 18 return this[_source][core.$elementAt](index); |
| 19 } | 19 } |
| 20 } | 20 } |
| 21 dart.setSignature(UnmodifiableListView, { |
| 22 methods: () => ({[core.$get]: dart.functionType(E, [core.int])}) |
| 23 }); |
| 21 return UnmodifiableListView; | 24 return UnmodifiableListView; |
| 22 }); | 25 }); |
| 23 dart.defineLazyClassGeneric(exports, 'UnmodifiableListView', {get: Unmodifiabl
eListView$}); | 26 dart.defineLazyClassGeneric(exports, 'UnmodifiableListView', {get: Unmodifiabl
eListView$}); |
| 24 // Function _defaultEquals: (Object, Object) → bool | |
| 25 function _defaultEquals(a, b) { | 27 function _defaultEquals(a, b) { |
| 26 return dart.equals(a, b); | 28 return dart.equals(a, b); |
| 27 } | 29 } |
| 28 // Function _defaultHashCode: (Object) → int | 30 dart.fn(_defaultEquals, core.bool, [core.Object, core.Object]); |
| 29 function _defaultHashCode(a) { | 31 function _defaultHashCode(a) { |
| 30 return dart.hashCode(a); | 32 return dart.hashCode(a); |
| 31 } | 33 } |
| 34 dart.fn(_defaultHashCode, core.int, [core.Object]); |
| 32 let _Equality$ = dart.generic(function(K) { | 35 let _Equality$ = dart.generic(function(K) { |
| 33 let _Equality = dart.typedef('_Equality', () => dart.functionType(core.bool,
[K, K])); | 36 let _Equality = dart.typedef('_Equality', () => dart.functionType(core.bool,
[K, K])); |
| 34 return _Equality; | 37 return _Equality; |
| 35 }); | 38 }); |
| 36 let _Equality = _Equality$(); | 39 let _Equality = _Equality$(); |
| 37 let _Hasher$ = dart.generic(function(K) { | 40 let _Hasher$ = dart.generic(function(K) { |
| 38 let _Hasher = dart.typedef('_Hasher', () => dart.functionType(core.int, [K])
); | 41 let _Hasher = dart.typedef('_Hasher', () => dart.functionType(core.int, [K])
); |
| 39 return _Hasher; | 42 return _Hasher; |
| 40 }); | 43 }); |
| 41 let _Hasher = _Hasher$(); | 44 let _Hasher = _Hasher$(); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 67 equals = _defaultEquals; | 70 equals = _defaultEquals; |
| 68 } | 71 } |
| 69 } | 72 } |
| 70 return new (_CustomHashMap$(K, V))(equals, hashCode, isValidKey); | 73 return new (_CustomHashMap$(K, V))(equals, hashCode, isValidKey); |
| 71 } | 74 } |
| 72 identity() { | 75 identity() { |
| 73 return new (_IdentityHashMap$(K, V))(); | 76 return new (_IdentityHashMap$(K, V))(); |
| 74 } | 77 } |
| 75 from(other) { | 78 from(other) { |
| 76 let result = new (HashMap$(K, V))(); | 79 let result = new (HashMap$(K, V))(); |
| 77 other.forEach((k, v) => { | 80 other.forEach(dart.fn((k, v) => { |
| 78 result.set(k, dart.as(v, V)); | 81 result.set(k, dart.as(v, V)); |
| 79 }); | 82 })); |
| 80 return result; | 83 return result; |
| 81 } | 84 } |
| 82 fromIterable(iterable, opts) { | 85 fromIterable(iterable, opts) { |
| 83 let key = opts && 'key' in opts ? opts.key : null; | 86 let key = opts && 'key' in opts ? opts.key : null; |
| 84 let value = opts && 'value' in opts ? opts.value : null; | 87 let value = opts && 'value' in opts ? opts.value : null; |
| 85 let map = new (HashMap$(K, V))(); | 88 let map = new (HashMap$(K, V))(); |
| 86 Maps._fillMapWithMappedIterable(map, iterable, key, value); | 89 Maps._fillMapWithMappedIterable(map, iterable, key, value); |
| 87 return map; | 90 return map; |
| 88 } | 91 } |
| 89 fromIterables(keys, values) { | 92 fromIterables(keys, values) { |
| 90 let map = new (HashMap$(K, V))(); | 93 let map = new (HashMap$(K, V))(); |
| 91 Maps._fillMapWithIterables(map, keys, values); | 94 Maps._fillMapWithIterables(map, keys, values); |
| 92 return map; | 95 return map; |
| 93 } | 96 } |
| 94 } | 97 } |
| 95 HashMap[dart.implements] = () => [core.Map$(K, V)]; | 98 HashMap[dart.implements] = () => [core.Map$(K, V)]; |
| 96 dart.defineNamedConstructor(HashMap, 'identity'); | 99 dart.defineNamedConstructor(HashMap, 'identity'); |
| 97 dart.defineNamedConstructor(HashMap, 'from'); | 100 dart.defineNamedConstructor(HashMap, 'from'); |
| 98 dart.defineNamedConstructor(HashMap, 'fromIterable'); | 101 dart.defineNamedConstructor(HashMap, 'fromIterable'); |
| 99 dart.defineNamedConstructor(HashMap, 'fromIterables'); | 102 dart.defineNamedConstructor(HashMap, 'fromIterables'); |
| 103 dart.setSignature(HashMap, {}); |
| 100 return HashMap; | 104 return HashMap; |
| 101 }); | 105 }); |
| 102 let HashMap = HashMap$(); | 106 let HashMap = HashMap$(); |
| 103 let SetMixin$ = dart.generic(function(E) { | 107 let SetMixin$ = dart.generic(function(E) { |
| 104 class SetMixin extends core.Object { | 108 class SetMixin extends core.Object { |
| 105 [Symbol.iterator]() { | 109 [Symbol.iterator]() { |
| 106 return new dart.JsIterator(this[core.$iterator]); | 110 return new dart.JsIterator(this[core.$iterator]); |
| 107 } | 111 } |
| 108 get [core.$isEmpty]() { | 112 get [core.$isEmpty]() { |
| 109 return this[core.$length] == 0; | 113 return this[core.$length] == 0; |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 let elementIndex = 0; | 367 let elementIndex = 0; |
| 364 for (let element of this) { | 368 for (let element of this) { |
| 365 if (index == elementIndex) | 369 if (index == elementIndex) |
| 366 return element; | 370 return element; |
| 367 elementIndex = dart.notNull(elementIndex) + 1; | 371 elementIndex = dart.notNull(elementIndex) + 1; |
| 368 } | 372 } |
| 369 throw new core.RangeError.index(index, this, "index", null, elementIndex
); | 373 throw new core.RangeError.index(index, this, "index", null, elementIndex
); |
| 370 } | 374 } |
| 371 } | 375 } |
| 372 SetMixin[dart.implements] = () => [core.Set$(E)]; | 376 SetMixin[dart.implements] = () => [core.Set$(E)]; |
| 377 dart.setSignature(SetMixin, { |
| 378 methods: () => ({ |
| 379 clear: dart.functionType(dart.void, []), |
| 380 addAll: dart.functionType(dart.void, [core.Iterable$(E)]), |
| 381 removeAll: dart.functionType(dart.void, [core.Iterable$(core.Object)]), |
| 382 retainAll: dart.functionType(dart.void, [core.Iterable$(core.Object)]), |
| 383 removeWhere: dart.functionType(dart.void, [dart.functionType(core.bool,
[E])]), |
| 384 retainWhere: dart.functionType(dart.void, [dart.functionType(core.bool,
[E])]), |
| 385 containsAll: dart.functionType(core.bool, [core.Iterable$(core.Object)])
, |
| 386 union: dart.functionType(core.Set$(E), [core.Set$(E)]), |
| 387 intersection: dart.functionType(core.Set$(E), [core.Set$(core.Object)]), |
| 388 difference: dart.functionType(core.Set$(E), [core.Set$(core.Object)]), |
| 389 [core.$toList]: dart.functionType(core.List$(E), [], {rowabl: core.bool}
), |
| 390 [core.$map]: dart.functionType(core.Iterable, [dart.functionType(dart.dy
namic, [E])]), |
| 391 toString: dart.functionType(core.String, []), |
| 392 [core.$where]: dart.functionType(core.Iterable$(E), [dart.functionType(c
ore.bool, [E])]), |
| 393 [core.$expand]: dart.functionType(core.Iterable, [dart.functionType(core
.Iterable, [E])]), |
| 394 [core.$forEach]: dart.functionType(dart.void, [dart.functionType(dart.vo
id, [E])]), |
| 395 [core.$reduce]: dart.functionType(E, [dart.functionType(E, [E, E])]), |
| 396 [core.$fold]: dart.functionType(dart.dynamic, [dart.dynamic, dart.functi
onType(dart.dynamic, [dart.dynamic, E])]), |
| 397 [core.$every]: dart.functionType(core.bool, [dart.functionType(core.bool
, [E])]), |
| 398 [core.$join]: dart.functionType(core.String, [], [core.String]), |
| 399 [core.$any]: dart.functionType(core.bool, [dart.functionType(core.bool,
[E])]), |
| 400 [core.$take]: dart.functionType(core.Iterable$(E), [core.int]), |
| 401 [core.$takeWhile]: dart.functionType(core.Iterable$(E), [dart.functionTy
pe(core.bool, [E])]), |
| 402 [core.$skip]: dart.functionType(core.Iterable$(E), [core.int]), |
| 403 [core.$skipWhile]: dart.functionType(core.Iterable$(E), [dart.functionTy
pe(core.bool, [E])]), |
| 404 [core.$firstWhere]: dart.functionType(E, [dart.functionType(core.bool, [
E])], {rEls: dart.functionType(E, [])}), |
| 405 [core.$lastWhere]: dart.functionType(E, [dart.functionType(core.bool, [E
])], {rEls: dart.functionType(E, [])}), |
| 406 [core.$singleWhere]: dart.functionType(E, [dart.functionType(core.bool,
[E])]), |
| 407 [core.$elementAt]: dart.functionType(E, [core.int]) |
| 408 }) |
| 409 }); |
| 373 return SetMixin; | 410 return SetMixin; |
| 374 }); | 411 }); |
| 375 let SetMixin = SetMixin$(); | 412 let SetMixin = SetMixin$(); |
| 376 let SetBase$ = dart.generic(function(E) { | 413 let SetBase$ = dart.generic(function(E) { |
| 377 class SetBase extends SetMixin$(E) { | 414 class SetBase extends SetMixin$(E) { |
| 378 static setToString(set) { | 415 static setToString(set) { |
| 379 return IterableBase.iterableToFullString(set, '{', '}'); | 416 return IterableBase.iterableToFullString(set, '{', '}'); |
| 380 } | 417 } |
| 381 } | 418 } |
| 419 dart.setSignature(SetBase, { |
| 420 statics: () => ({setToString: dart.functionType(core.String, [core.Set])})
, |
| 421 names: ['setToString'] |
| 422 }); |
| 382 return SetBase; | 423 return SetBase; |
| 383 }); | 424 }); |
| 384 let SetBase = SetBase$(); | 425 let SetBase = SetBase$(); |
| 385 let _newSet = Symbol('_newSet'); | 426 let _newSet = Symbol('_newSet'); |
| 386 let _HashSetBase$ = dart.generic(function(E) { | 427 let _HashSetBase$ = dart.generic(function(E) { |
| 387 class _HashSetBase extends SetBase$(E) { | 428 class _HashSetBase extends SetBase$(E) { |
| 388 difference(other) { | 429 difference(other) { |
| 389 let result = this[_newSet](); | 430 let result = this[_newSet](); |
| 390 for (let element of this) { | 431 for (let element of this) { |
| 391 if (!dart.notNull(other[core.$contains](element))) | 432 if (!dart.notNull(other[core.$contains](element))) |
| (...skipping 10 matching lines...) Expand all Loading... |
| 402 return result; | 443 return result; |
| 403 } | 444 } |
| 404 [core.$toSet]() { | 445 [core.$toSet]() { |
| 405 return (() => { | 446 return (() => { |
| 406 let _ = this[_newSet](); | 447 let _ = this[_newSet](); |
| 407 _.addAll(this); | 448 _.addAll(this); |
| 408 return _; | 449 return _; |
| 409 }).bind(this)(); | 450 }).bind(this)(); |
| 410 } | 451 } |
| 411 } | 452 } |
| 453 dart.setSignature(_HashSetBase, { |
| 454 methods: () => ({ |
| 455 difference: dart.functionType(core.Set$(E), [core.Set$(core.Object)]), |
| 456 intersection: dart.functionType(core.Set$(E), [core.Set$(core.Object)]), |
| 457 [core.$toSet]: dart.functionType(core.Set$(E), []) |
| 458 }) |
| 459 }); |
| 412 return _HashSetBase; | 460 return _HashSetBase; |
| 413 }); | 461 }); |
| 414 let _HashSetBase = _HashSetBase$(); | 462 let _HashSetBase = _HashSetBase$(); |
| 415 let HashSet$ = dart.generic(function(E) { | 463 let HashSet$ = dart.generic(function(E) { |
| 416 class HashSet extends core.Object { | 464 class HashSet extends core.Object { |
| 417 HashSet(opts) { | 465 HashSet(opts) { |
| 418 let equals = opts && 'equals' in opts ? opts.equals : null; | 466 let equals = opts && 'equals' in opts ? opts.equals : null; |
| 419 let hashCode = opts && 'hashCode' in opts ? opts.hashCode : null; | 467 let hashCode = opts && 'hashCode' in opts ? opts.hashCode : null; |
| 420 let isValidKey = opts && 'isValidKey' in opts ? opts.isValidKey : null; | 468 let isValidKey = opts && 'isValidKey' in opts ? opts.isValidKey : null; |
| 421 if (isValidKey == null) { | 469 if (isValidKey == null) { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 451 result.add(e); | 499 result.add(e); |
| 452 return result; | 500 return result; |
| 453 } | 501 } |
| 454 [Symbol.iterator]() { | 502 [Symbol.iterator]() { |
| 455 return new dart.JsIterator(this[core.$iterator]); | 503 return new dart.JsIterator(this[core.$iterator]); |
| 456 } | 504 } |
| 457 } | 505 } |
| 458 HashSet[dart.implements] = () => [core.Set$(E)]; | 506 HashSet[dart.implements] = () => [core.Set$(E)]; |
| 459 dart.defineNamedConstructor(HashSet, 'identity'); | 507 dart.defineNamedConstructor(HashSet, 'identity'); |
| 460 dart.defineNamedConstructor(HashSet, 'from'); | 508 dart.defineNamedConstructor(HashSet, 'from'); |
| 509 dart.setSignature(HashSet, {}); |
| 461 return HashSet; | 510 return HashSet; |
| 462 }); | 511 }); |
| 463 let HashSet = HashSet$(); | 512 let HashSet = HashSet$(); |
| 464 let IterableMixin$ = dart.generic(function(E) { | 513 let IterableMixin$ = dart.generic(function(E) { |
| 465 class IterableMixin extends core.Object { | 514 class IterableMixin extends core.Object { |
| 466 [core.$map](f) { | 515 [core.$map](f) { |
| 467 dart.as(f, dart.functionType(dart.dynamic, [E])); | 516 dart.as(f, dart.functionType(dart.dynamic, [E])); |
| 468 return new (_internal.MappedIterable$(E, dart.dynamic))(this, f); | 517 return new (_internal.MappedIterable$(E, dart.dynamic))(this, f); |
| 469 } | 518 } |
| 470 [core.$where](f) { | 519 [core.$where](f) { |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 665 throw new core.RangeError.index(index, this, "index", null, elementIndex
); | 714 throw new core.RangeError.index(index, this, "index", null, elementIndex
); |
| 666 } | 715 } |
| 667 toString() { | 716 toString() { |
| 668 return IterableBase.iterableToShortString(this, '(', ')'); | 717 return IterableBase.iterableToShortString(this, '(', ')'); |
| 669 } | 718 } |
| 670 [Symbol.iterator]() { | 719 [Symbol.iterator]() { |
| 671 return new dart.JsIterator(this[core.$iterator]); | 720 return new dart.JsIterator(this[core.$iterator]); |
| 672 } | 721 } |
| 673 } | 722 } |
| 674 IterableMixin[dart.implements] = () => [core.Iterable$(E)]; | 723 IterableMixin[dart.implements] = () => [core.Iterable$(E)]; |
| 724 dart.setSignature(IterableMixin, { |
| 725 methods: () => ({ |
| 726 [core.$map]: dart.functionType(core.Iterable, [dart.functionType(dart.dy
namic, [E])]), |
| 727 [core.$where]: dart.functionType(core.Iterable$(E), [dart.functionType(c
ore.bool, [E])]), |
| 728 [core.$expand]: dart.functionType(core.Iterable, [dart.functionType(core
.Iterable, [E])]), |
| 729 [core.$contains]: dart.functionType(core.bool, [core.Object]), |
| 730 [core.$forEach]: dart.functionType(dart.void, [dart.functionType(dart.vo
id, [E])]), |
| 731 [core.$reduce]: dart.functionType(E, [dart.functionType(E, [E, E])]), |
| 732 [core.$fold]: dart.functionType(dart.dynamic, [dart.dynamic, dart.functi
onType(dart.dynamic, [dart.dynamic, E])]), |
| 733 [core.$every]: dart.functionType(core.bool, [dart.functionType(core.bool
, [E])]), |
| 734 [core.$join]: dart.functionType(core.String, [], [core.String]), |
| 735 [core.$any]: dart.functionType(core.bool, [dart.functionType(core.bool,
[E])]), |
| 736 [core.$toList]: dart.functionType(core.List$(E), [], {rowabl: core.bool}
), |
| 737 [core.$toSet]: dart.functionType(core.Set$(E), []), |
| 738 [core.$take]: dart.functionType(core.Iterable$(E), [core.int]), |
| 739 [core.$takeWhile]: dart.functionType(core.Iterable$(E), [dart.functionTy
pe(core.bool, [E])]), |
| 740 [core.$skip]: dart.functionType(core.Iterable$(E), [core.int]), |
| 741 [core.$skipWhile]: dart.functionType(core.Iterable$(E), [dart.functionTy
pe(core.bool, [E])]), |
| 742 [core.$firstWhere]: dart.functionType(E, [dart.functionType(core.bool, [
E])], {rEls: dart.functionType(E, [])}), |
| 743 [core.$lastWhere]: dart.functionType(E, [dart.functionType(core.bool, [E
])], {rEls: dart.functionType(E, [])}), |
| 744 [core.$singleWhere]: dart.functionType(E, [dart.functionType(core.bool,
[E])]), |
| 745 [core.$elementAt]: dart.functionType(E, [core.int]), |
| 746 toString: dart.functionType(core.String, []) |
| 747 }) |
| 748 }); |
| 675 return IterableMixin; | 749 return IterableMixin; |
| 676 }); | 750 }); |
| 677 let IterableMixin = IterableMixin$(); | 751 let IterableMixin = IterableMixin$(); |
| 678 let IterableBase$ = dart.generic(function(E) { | 752 let IterableBase$ = dart.generic(function(E) { |
| 679 class IterableBase extends core.Object { | 753 class IterableBase extends core.Object { |
| 680 IterableBase() { | 754 IterableBase() { |
| 681 } | 755 } |
| 682 [core.$map](f) { | 756 [core.$map](f) { |
| 683 dart.as(f, dart.functionType(dart.dynamic, [E])); | 757 dart.as(f, dart.functionType(dart.dynamic, [E])); |
| 684 return new (_internal.MappedIterable$(E, dart.dynamic))(this, f); | 758 return new (_internal.MappedIterable$(E, dart.dynamic))(this, f); |
| (...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1011 parts[core.$add](elision); | 1085 parts[core.$add](elision); |
| 1012 } | 1086 } |
| 1013 parts[core.$add](penultimateString); | 1087 parts[core.$add](penultimateString); |
| 1014 parts[core.$add](ultimateString); | 1088 parts[core.$add](ultimateString); |
| 1015 } | 1089 } |
| 1016 [Symbol.iterator]() { | 1090 [Symbol.iterator]() { |
| 1017 return new dart.JsIterator(this[core.$iterator]); | 1091 return new dart.JsIterator(this[core.$iterator]); |
| 1018 } | 1092 } |
| 1019 } | 1093 } |
| 1020 IterableBase[dart.implements] = () => [core.Iterable$(E)]; | 1094 IterableBase[dart.implements] = () => [core.Iterable$(E)]; |
| 1095 dart.setSignature(IterableBase, { |
| 1096 methods: () => ({ |
| 1097 [core.$map]: dart.functionType(core.Iterable, [dart.functionType(dart.dy
namic, [E])]), |
| 1098 [core.$where]: dart.functionType(core.Iterable$(E), [dart.functionType(c
ore.bool, [E])]), |
| 1099 [core.$expand]: dart.functionType(core.Iterable, [dart.functionType(core
.Iterable, [E])]), |
| 1100 [core.$contains]: dart.functionType(core.bool, [core.Object]), |
| 1101 [core.$forEach]: dart.functionType(dart.void, [dart.functionType(dart.vo
id, [E])]), |
| 1102 [core.$reduce]: dart.functionType(E, [dart.functionType(E, [E, E])]), |
| 1103 [core.$fold]: dart.functionType(dart.dynamic, [dart.dynamic, dart.functi
onType(dart.dynamic, [dart.dynamic, E])]), |
| 1104 [core.$every]: dart.functionType(core.bool, [dart.functionType(core.bool
, [E])]), |
| 1105 [core.$join]: dart.functionType(core.String, [], [core.String]), |
| 1106 [core.$any]: dart.functionType(core.bool, [dart.functionType(core.bool,
[E])]), |
| 1107 [core.$toList]: dart.functionType(core.List$(E), [], {rowabl: core.bool}
), |
| 1108 [core.$toSet]: dart.functionType(core.Set$(E), []), |
| 1109 [core.$take]: dart.functionType(core.Iterable$(E), [core.int]), |
| 1110 [core.$takeWhile]: dart.functionType(core.Iterable$(E), [dart.functionTy
pe(core.bool, [E])]), |
| 1111 [core.$skip]: dart.functionType(core.Iterable$(E), [core.int]), |
| 1112 [core.$skipWhile]: dart.functionType(core.Iterable$(E), [dart.functionTy
pe(core.bool, [E])]), |
| 1113 [core.$firstWhere]: dart.functionType(E, [dart.functionType(core.bool, [
E])], {rEls: dart.functionType(E, [])}), |
| 1114 [core.$lastWhere]: dart.functionType(E, [dart.functionType(core.bool, [E
])], {rEls: dart.functionType(E, [])}), |
| 1115 [core.$singleWhere]: dart.functionType(E, [dart.functionType(core.bool,
[E])]), |
| 1116 [core.$elementAt]: dart.functionType(E, [core.int]), |
| 1117 toString: dart.functionType(core.String, []) |
| 1118 }), |
| 1119 statics: () => ({ |
| 1120 iterableToShortString: dart.functionType(core.String, [core.Iterable], [
core.String, core.String]), |
| 1121 iterableToFullString: dart.functionType(core.String, [core.Iterable], [c
ore.String, core.String]), |
| 1122 _isToStringVisiting: dart.functionType(core.bool, [core.Object]), |
| 1123 _iterablePartsToStrings: dart.functionType(dart.void, [core.Iterable, co
re.List]) |
| 1124 }), |
| 1125 names: ['iterableToShortString', 'iterableToFullString', '_isToStringVisit
ing', '_iterablePartsToStrings'] |
| 1126 }); |
| 1021 return IterableBase; | 1127 return IterableBase; |
| 1022 }); | 1128 }); |
| 1023 let IterableBase = IterableBase$(); | 1129 let IterableBase = IterableBase$(); |
| 1024 dart.defineLazyProperties(IterableBase, { | 1130 dart.defineLazyProperties(IterableBase, { |
| 1025 get _toStringVisiting() { | 1131 get _toStringVisiting() { |
| 1026 return []; | 1132 return []; |
| 1027 } | 1133 } |
| 1028 }); | 1134 }); |
| 1029 let _iterator = Symbol('_iterator'); | 1135 let _iterator = Symbol('_iterator'); |
| 1030 let _state = Symbol('_state'); | 1136 let _state = Symbol('_state'); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 1049 return result; | 1155 return result; |
| 1050 } | 1156 } |
| 1051 [_move]() { | 1157 [_move]() { |
| 1052 if (this[_iterator].moveNext()) { | 1158 if (this[_iterator].moveNext()) { |
| 1053 this[_state] = HasNextIterator$()._HAS_NEXT_AND_NEXT_IN_CURRENT; | 1159 this[_state] = HasNextIterator$()._HAS_NEXT_AND_NEXT_IN_CURRENT; |
| 1054 } else { | 1160 } else { |
| 1055 this[_state] = HasNextIterator$()._NO_NEXT; | 1161 this[_state] = HasNextIterator$()._NO_NEXT; |
| 1056 } | 1162 } |
| 1057 } | 1163 } |
| 1058 } | 1164 } |
| 1165 dart.setSignature(HasNextIterator, { |
| 1166 methods: () => ({ |
| 1167 next: dart.functionType(E, []), |
| 1168 [_move]: dart.functionType(dart.void, []) |
| 1169 }) |
| 1170 }); |
| 1059 return HasNextIterator; | 1171 return HasNextIterator; |
| 1060 }); | 1172 }); |
| 1061 let HasNextIterator = HasNextIterator$(); | 1173 let HasNextIterator = HasNextIterator$(); |
| 1062 HasNextIterator._HAS_NEXT_AND_NEXT_IN_CURRENT = 0; | 1174 HasNextIterator._HAS_NEXT_AND_NEXT_IN_CURRENT = 0; |
| 1063 HasNextIterator._NO_NEXT = 1; | 1175 HasNextIterator._NO_NEXT = 1; |
| 1064 HasNextIterator._NOT_MOVED_YET = 2; | 1176 HasNextIterator._NOT_MOVED_YET = 2; |
| 1065 let LinkedHashMap$ = dart.generic(function(K, V) { | 1177 let LinkedHashMap$ = dart.generic(function(K, V) { |
| 1066 class LinkedHashMap extends core.Object { | 1178 class LinkedHashMap extends core.Object { |
| 1067 LinkedHashMap(opts) { | 1179 LinkedHashMap(opts) { |
| 1068 let equals = opts && 'equals' in opts ? opts.equals : null; | 1180 let equals = opts && 'equals' in opts ? opts.equals : null; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 1090 equals = _defaultEquals; | 1202 equals = _defaultEquals; |
| 1091 } | 1203 } |
| 1092 } | 1204 } |
| 1093 return new (_LinkedCustomHashMap$(K, V))(equals, hashCode, isValidKey); | 1205 return new (_LinkedCustomHashMap$(K, V))(equals, hashCode, isValidKey); |
| 1094 } | 1206 } |
| 1095 identity() { | 1207 identity() { |
| 1096 return new (_LinkedIdentityHashMap$(K, V))(); | 1208 return new (_LinkedIdentityHashMap$(K, V))(); |
| 1097 } | 1209 } |
| 1098 from(other) { | 1210 from(other) { |
| 1099 let result = new (LinkedHashMap$(K, V))(); | 1211 let result = new (LinkedHashMap$(K, V))(); |
| 1100 other.forEach((k, v) => { | 1212 other.forEach(dart.fn((k, v) => { |
| 1101 result.set(k, dart.as(v, V)); | 1213 result.set(k, dart.as(v, V)); |
| 1102 }); | 1214 })); |
| 1103 return result; | 1215 return result; |
| 1104 } | 1216 } |
| 1105 fromIterable(iterable, opts) { | 1217 fromIterable(iterable, opts) { |
| 1106 let key = opts && 'key' in opts ? opts.key : null; | 1218 let key = opts && 'key' in opts ? opts.key : null; |
| 1107 let value = opts && 'value' in opts ? opts.value : null; | 1219 let value = opts && 'value' in opts ? opts.value : null; |
| 1108 let map = new (LinkedHashMap$(K, V))(); | 1220 let map = new (LinkedHashMap$(K, V))(); |
| 1109 Maps._fillMapWithMappedIterable(map, iterable, key, value); | 1221 Maps._fillMapWithMappedIterable(map, iterable, key, value); |
| 1110 return map; | 1222 return map; |
| 1111 } | 1223 } |
| 1112 fromIterables(keys, values) { | 1224 fromIterables(keys, values) { |
| 1113 let map = new (LinkedHashMap$(K, V))(); | 1225 let map = new (LinkedHashMap$(K, V))(); |
| 1114 Maps._fillMapWithIterables(map, keys, values); | 1226 Maps._fillMapWithIterables(map, keys, values); |
| 1115 return map; | 1227 return map; |
| 1116 } | 1228 } |
| 1117 _literal(keyValuePairs) { | 1229 _literal(keyValuePairs) { |
| 1118 return dart.as(_js_helper.fillLiteralMap(keyValuePairs, new (_LinkedHash
Map$(K, V))()), LinkedHashMap$(K, V)); | 1230 return dart.as(_js_helper.fillLiteralMap(keyValuePairs, new (_LinkedHash
Map$(K, V))()), LinkedHashMap$(K, V)); |
| 1119 } | 1231 } |
| 1120 _empty() { | 1232 _empty() { |
| 1121 return new (_LinkedHashMap$(K, V))(); | 1233 return new (_LinkedHashMap$(K, V))(); |
| 1122 } | 1234 } |
| 1123 } | 1235 } |
| 1124 LinkedHashMap[dart.implements] = () => [HashMap$(K, V)]; | 1236 LinkedHashMap[dart.implements] = () => [HashMap$(K, V)]; |
| 1125 dart.defineNamedConstructor(LinkedHashMap, 'identity'); | 1237 dart.defineNamedConstructor(LinkedHashMap, 'identity'); |
| 1126 dart.defineNamedConstructor(LinkedHashMap, 'from'); | 1238 dart.defineNamedConstructor(LinkedHashMap, 'from'); |
| 1127 dart.defineNamedConstructor(LinkedHashMap, 'fromIterable'); | 1239 dart.defineNamedConstructor(LinkedHashMap, 'fromIterable'); |
| 1128 dart.defineNamedConstructor(LinkedHashMap, 'fromIterables'); | 1240 dart.defineNamedConstructor(LinkedHashMap, 'fromIterables'); |
| 1129 dart.defineNamedConstructor(LinkedHashMap, '_literal'); | 1241 dart.defineNamedConstructor(LinkedHashMap, '_literal'); |
| 1130 dart.defineNamedConstructor(LinkedHashMap, '_empty'); | 1242 dart.defineNamedConstructor(LinkedHashMap, '_empty'); |
| 1243 dart.setSignature(LinkedHashMap, {}); |
| 1131 return LinkedHashMap; | 1244 return LinkedHashMap; |
| 1132 }); | 1245 }); |
| 1133 let LinkedHashMap = LinkedHashMap$(); | 1246 let LinkedHashMap = LinkedHashMap$(); |
| 1134 let LinkedHashSet$ = dart.generic(function(E) { | 1247 let LinkedHashSet$ = dart.generic(function(E) { |
| 1135 class LinkedHashSet extends core.Object { | 1248 class LinkedHashSet extends core.Object { |
| 1136 LinkedHashSet(opts) { | 1249 LinkedHashSet(opts) { |
| 1137 let equals = opts && 'equals' in opts ? opts.equals : null; | 1250 let equals = opts && 'equals' in opts ? opts.equals : null; |
| 1138 let hashCode = opts && 'hashCode' in opts ? opts.hashCode : null; | 1251 let hashCode = opts && 'hashCode' in opts ? opts.hashCode : null; |
| 1139 let isValidKey = opts && 'isValidKey' in opts ? opts.isValidKey : null; | 1252 let isValidKey = opts && 'isValidKey' in opts ? opts.isValidKey : null; |
| 1140 if (isValidKey == null) { | 1253 if (isValidKey == null) { |
| (...skipping 30 matching lines...) Expand all Loading... |
| 1171 } | 1284 } |
| 1172 return result; | 1285 return result; |
| 1173 } | 1286 } |
| 1174 [Symbol.iterator]() { | 1287 [Symbol.iterator]() { |
| 1175 return new dart.JsIterator(this[core.$iterator]); | 1288 return new dart.JsIterator(this[core.$iterator]); |
| 1176 } | 1289 } |
| 1177 } | 1290 } |
| 1178 LinkedHashSet[dart.implements] = () => [HashSet$(E)]; | 1291 LinkedHashSet[dart.implements] = () => [HashSet$(E)]; |
| 1179 dart.defineNamedConstructor(LinkedHashSet, 'identity'); | 1292 dart.defineNamedConstructor(LinkedHashSet, 'identity'); |
| 1180 dart.defineNamedConstructor(LinkedHashSet, 'from'); | 1293 dart.defineNamedConstructor(LinkedHashSet, 'from'); |
| 1294 dart.setSignature(LinkedHashSet, {}); |
| 1181 return LinkedHashSet; | 1295 return LinkedHashSet; |
| 1182 }); | 1296 }); |
| 1183 let LinkedHashSet = LinkedHashSet$(); | 1297 let LinkedHashSet = LinkedHashSet$(); |
| 1184 let _modificationCount = Symbol('_modificationCount'); | 1298 let _modificationCount = Symbol('_modificationCount'); |
| 1185 let _length = Symbol('_length'); | 1299 let _length = Symbol('_length'); |
| 1186 let _next = Symbol('_next'); | 1300 let _next = Symbol('_next'); |
| 1187 let _previous = Symbol('_previous'); | 1301 let _previous = Symbol('_previous'); |
| 1188 let _insertAfter = Symbol('_insertAfter'); | 1302 let _insertAfter = Symbol('_insertAfter'); |
| 1189 let _list = Symbol('_list'); | 1303 let _list = Symbol('_list'); |
| 1190 let _unlink = Symbol('_unlink'); | 1304 let _unlink = Symbol('_unlink'); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 1201 addFirst(entry) { | 1315 addFirst(entry) { |
| 1202 dart.as(entry, E); | 1316 dart.as(entry, E); |
| 1203 this[_insertAfter](this, entry); | 1317 this[_insertAfter](this, entry); |
| 1204 } | 1318 } |
| 1205 add(entry) { | 1319 add(entry) { |
| 1206 dart.as(entry, E); | 1320 dart.as(entry, E); |
| 1207 this[_insertAfter](this[_previous], entry); | 1321 this[_insertAfter](this[_previous], entry); |
| 1208 } | 1322 } |
| 1209 addAll(entries) { | 1323 addAll(entries) { |
| 1210 dart.as(entries, core.Iterable$(E)); | 1324 dart.as(entries, core.Iterable$(E)); |
| 1211 entries[core.$forEach]((entry => this[_insertAfter](this[_previous], dar
t.as(entry, E))).bind(this)); | 1325 entries[core.$forEach](dart.fn((entry => this[_insertAfter](this[_previo
us], dart.as(entry, E))).bind(this), dart.void, [dart.dynamic])); |
| 1212 } | 1326 } |
| 1213 remove(entry) { | 1327 remove(entry) { |
| 1214 dart.as(entry, E); | 1328 dart.as(entry, E); |
| 1215 if (!dart.equals(entry[_list], this)) | 1329 if (!dart.equals(entry[_list], this)) |
| 1216 return false; | 1330 return false; |
| 1217 this[_unlink](entry); | 1331 this[_unlink](entry); |
| 1218 return true; | 1332 return true; |
| 1219 } | 1333 } |
| 1220 get [core.$iterator]() { | 1334 get [core.$iterator]() { |
| 1221 return new (_LinkedListIterator$(E))(this); | 1335 return new (_LinkedListIterator$(E))(this); |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1288 [_unlink](entry) { | 1402 [_unlink](entry) { |
| 1289 dart.as(entry, LinkedListEntry$(E)); | 1403 dart.as(entry, LinkedListEntry$(E)); |
| 1290 this[_modificationCount] = dart.notNull(this[_modificationCount]) + 1; | 1404 this[_modificationCount] = dart.notNull(this[_modificationCount]) + 1; |
| 1291 entry[_next][_previous] = entry[_previous]; | 1405 entry[_next][_previous] = entry[_previous]; |
| 1292 entry[_previous][_next] = entry[_next]; | 1406 entry[_previous][_next] = entry[_next]; |
| 1293 this[_length] = dart.notNull(this[_length]) - 1; | 1407 this[_length] = dart.notNull(this[_length]) - 1; |
| 1294 entry[_list] = entry[_next] = entry[_previous] = null; | 1408 entry[_list] = entry[_next] = entry[_previous] = null; |
| 1295 } | 1409 } |
| 1296 } | 1410 } |
| 1297 LinkedList[dart.implements] = () => [_LinkedListLink]; | 1411 LinkedList[dart.implements] = () => [_LinkedListLink]; |
| 1412 dart.setSignature(LinkedList, { |
| 1413 methods: () => ({ |
| 1414 addFirst: dart.functionType(dart.void, [E]), |
| 1415 add: dart.functionType(dart.void, [E]), |
| 1416 addAll: dart.functionType(dart.void, [core.Iterable$(E)]), |
| 1417 remove: dart.functionType(core.bool, [E]), |
| 1418 clear: dart.functionType(dart.void, []), |
| 1419 [core.$forEach]: dart.functionType(dart.void, [dart.functionType(dart.vo
id, [E])]), |
| 1420 [_insertAfter]: dart.functionType(dart.void, [_LinkedListLink, E]), |
| 1421 [_unlink]: dart.functionType(dart.void, [LinkedListEntry$(E)]) |
| 1422 }) |
| 1423 }); |
| 1298 return LinkedList; | 1424 return LinkedList; |
| 1299 }); | 1425 }); |
| 1300 let LinkedList = LinkedList$(); | 1426 let LinkedList = LinkedList$(); |
| 1301 let _current = Symbol('_current'); | 1427 let _current = Symbol('_current'); |
| 1302 let _LinkedListIterator$ = dart.generic(function(E) { | 1428 let _LinkedListIterator$ = dart.generic(function(E) { |
| 1303 class _LinkedListIterator extends core.Object { | 1429 class _LinkedListIterator extends core.Object { |
| 1304 _LinkedListIterator(list) { | 1430 _LinkedListIterator(list) { |
| 1305 this[_list] = list; | 1431 this[_list] = list; |
| 1306 this[_modificationCount] = list[_modificationCount]; | 1432 this[_modificationCount] = list[_modificationCount]; |
| 1307 this[_next] = list[_next]; | 1433 this[_next] = list[_next]; |
| 1308 this[_current] = null; | 1434 this[_current] = null; |
| 1309 } | 1435 } |
| 1310 get current() { | 1436 get current() { |
| 1311 return this[_current]; | 1437 return this[_current]; |
| 1312 } | 1438 } |
| 1313 moveNext() { | 1439 moveNext() { |
| 1314 if (core.identical(this[_next], this[_list])) { | 1440 if (core.identical(this[_next], this[_list])) { |
| 1315 this[_current] = null; | 1441 this[_current] = null; |
| 1316 return false; | 1442 return false; |
| 1317 } | 1443 } |
| 1318 if (this[_modificationCount] != this[_list][_modificationCount]) { | 1444 if (this[_modificationCount] != this[_list][_modificationCount]) { |
| 1319 throw new core.ConcurrentModificationError(this); | 1445 throw new core.ConcurrentModificationError(this); |
| 1320 } | 1446 } |
| 1321 this[_current] = dart.as(this[_next], E); | 1447 this[_current] = dart.as(this[_next], E); |
| 1322 this[_next] = this[_next][_next]; | 1448 this[_next] = this[_next][_next]; |
| 1323 return true; | 1449 return true; |
| 1324 } | 1450 } |
| 1325 } | 1451 } |
| 1326 _LinkedListIterator[dart.implements] = () => [core.Iterator$(E)]; | 1452 _LinkedListIterator[dart.implements] = () => [core.Iterator$(E)]; |
| 1453 dart.setSignature(_LinkedListIterator, { |
| 1454 methods: () => ({moveNext: dart.functionType(core.bool, [])}) |
| 1455 }); |
| 1327 return _LinkedListIterator; | 1456 return _LinkedListIterator; |
| 1328 }); | 1457 }); |
| 1329 let _LinkedListIterator = _LinkedListIterator$(); | 1458 let _LinkedListIterator = _LinkedListIterator$(); |
| 1330 class _LinkedListLink extends core.Object { | 1459 class _LinkedListLink extends core.Object { |
| 1331 _LinkedListLink() { | 1460 _LinkedListLink() { |
| 1332 this[_next] = null; | 1461 this[_next] = null; |
| 1333 this[_previous] = null; | 1462 this[_previous] = null; |
| 1334 } | 1463 } |
| 1335 } | 1464 } |
| 1465 dart.setSignature(_LinkedListLink, {}); |
| 1336 let LinkedListEntry$ = dart.generic(function(E) { | 1466 let LinkedListEntry$ = dart.generic(function(E) { |
| 1337 class LinkedListEntry extends core.Object { | 1467 class LinkedListEntry extends core.Object { |
| 1338 LinkedListEntry() { | 1468 LinkedListEntry() { |
| 1339 this[_list] = null; | 1469 this[_list] = null; |
| 1340 this[_next] = null; | 1470 this[_next] = null; |
| 1341 this[_previous] = null; | 1471 this[_previous] = null; |
| 1342 } | 1472 } |
| 1343 get list() { | 1473 get list() { |
| 1344 return this[_list]; | 1474 return this[_list]; |
| 1345 } | 1475 } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 1360 insertAfter(entry) { | 1490 insertAfter(entry) { |
| 1361 dart.as(entry, E); | 1491 dart.as(entry, E); |
| 1362 this[_list][_insertAfter](this, entry); | 1492 this[_list][_insertAfter](this, entry); |
| 1363 } | 1493 } |
| 1364 insertBefore(entry) { | 1494 insertBefore(entry) { |
| 1365 dart.as(entry, E); | 1495 dart.as(entry, E); |
| 1366 this[_list][_insertAfter](this[_previous], entry); | 1496 this[_list][_insertAfter](this[_previous], entry); |
| 1367 } | 1497 } |
| 1368 } | 1498 } |
| 1369 LinkedListEntry[dart.implements] = () => [_LinkedListLink]; | 1499 LinkedListEntry[dart.implements] = () => [_LinkedListLink]; |
| 1500 dart.setSignature(LinkedListEntry, { |
| 1501 methods: () => ({ |
| 1502 unlink: dart.functionType(dart.void, []), |
| 1503 insertAfter: dart.functionType(dart.void, [E]), |
| 1504 insertBefore: dart.functionType(dart.void, [E]) |
| 1505 }) |
| 1506 }); |
| 1370 return LinkedListEntry; | 1507 return LinkedListEntry; |
| 1371 }); | 1508 }); |
| 1372 let LinkedListEntry = LinkedListEntry$(); | 1509 let LinkedListEntry = LinkedListEntry$(); |
| 1373 let ListMixin$ = dart.generic(function(E) { | 1510 let ListMixin$ = dart.generic(function(E) { |
| 1374 class ListMixin extends core.Object { | 1511 class ListMixin extends core.Object { |
| 1375 get [core.$iterator]() { | 1512 get [core.$iterator]() { |
| 1376 return new (_internal.ListIterator$(E))(this); | 1513 return new (_internal.ListIterator$(E))(this); |
| 1377 } | 1514 } |
| 1378 [Symbol.iterator]() { | 1515 [Symbol.iterator]() { |
| 1379 return new dart.JsIterator(this[core.$iterator]); | 1516 return new dart.JsIterator(this[core.$iterator]); |
| (...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1847 } | 1984 } |
| 1848 } | 1985 } |
| 1849 get [core.$reversed]() { | 1986 get [core.$reversed]() { |
| 1850 return new (_internal.ReversedListIterable$(E))(this); | 1987 return new (_internal.ReversedListIterable$(E))(this); |
| 1851 } | 1988 } |
| 1852 [core.$toString]() { | 1989 [core.$toString]() { |
| 1853 return IterableBase.iterableToFullString(this, '[', ']'); | 1990 return IterableBase.iterableToFullString(this, '[', ']'); |
| 1854 } | 1991 } |
| 1855 } | 1992 } |
| 1856 ListMixin[dart.implements] = () => [core.List$(E)]; | 1993 ListMixin[dart.implements] = () => [core.List$(E)]; |
| 1994 dart.setSignature(ListMixin, { |
| 1995 methods: () => ({ |
| 1996 [core.$elementAt]: dart.functionType(E, [core.int]), |
| 1997 [core.$forEach]: dart.functionType(dart.void, [dart.functionType(dart.vo
id, [E])]), |
| 1998 [core.$contains]: dart.functionType(core.bool, [core.Object]), |
| 1999 [core.$every]: dart.functionType(core.bool, [dart.functionType(core.bool
, [E])]), |
| 2000 [core.$any]: dart.functionType(core.bool, [dart.functionType(core.bool,
[E])]), |
| 2001 [core.$firstWhere]: dart.functionType(E, [dart.functionType(core.bool, [
E])], {rEls: dart.functionType(E, [])}), |
| 2002 [core.$lastWhere]: dart.functionType(E, [dart.functionType(core.bool, [E
])], {rEls: dart.functionType(E, [])}), |
| 2003 [core.$singleWhere]: dart.functionType(E, [dart.functionType(core.bool,
[E])]), |
| 2004 [core.$join]: dart.functionType(core.String, [], [core.String]), |
| 2005 [core.$where]: dart.functionType(core.Iterable$(E), [dart.functionType(c
ore.bool, [E])]), |
| 2006 [core.$map]: dart.functionType(core.Iterable, [dart.functionType(dart.dy
namic, [E])]), |
| 2007 [core.$expand]: dart.functionType(core.Iterable, [dart.functionType(core
.Iterable, [E])]), |
| 2008 [core.$reduce]: dart.functionType(E, [dart.functionType(E, [E, E])]), |
| 2009 [core.$fold]: dart.functionType(dart.dynamic, [dart.dynamic, dart.functi
onType(dart.dynamic, [dart.dynamic, E])]), |
| 2010 [core.$skip]: dart.functionType(core.Iterable$(E), [core.int]), |
| 2011 [core.$skipWhile]: dart.functionType(core.Iterable$(E), [dart.functionTy
pe(core.bool, [E])]), |
| 2012 [core.$take]: dart.functionType(core.Iterable$(E), [core.int]), |
| 2013 [core.$takeWhile]: dart.functionType(core.Iterable$(E), [dart.functionTy
pe(core.bool, [E])]), |
| 2014 [core.$toList]: dart.functionType(core.List$(E), [], {rowabl: core.bool}
), |
| 2015 [core.$toSet]: dart.functionType(core.Set$(E), []), |
| 2016 [core.$add]: dart.functionType(dart.void, [E]), |
| 2017 [core.$addAll]: dart.functionType(dart.void, [core.Iterable$(E)]), |
| 2018 [core.$remove]: dart.functionType(core.bool, [core.Object]), |
| 2019 [core.$removeWhere]: dart.functionType(dart.void, [dart.functionType(cor
e.bool, [E])]), |
| 2020 [core.$retainWhere]: dart.functionType(dart.void, [dart.functionType(cor
e.bool, [E])]), |
| 2021 [core.$clear]: dart.functionType(dart.void, []), |
| 2022 [core.$removeLast]: dart.functionType(E, []), |
| 2023 [core.$sort]: dart.functionType(dart.void, [], [dart.functionType(core.i
nt, [E, E])]), |
| 2024 [core.$shuffle]: dart.functionType(dart.void, [], [math.Random]), |
| 2025 [core.$asMap]: dart.functionType(core.Map$(core.int, E), []), |
| 2026 [core.$sublist]: dart.functionType(core.List$(E), [core.int], [core.int]
), |
| 2027 [core.$getRange]: dart.functionType(core.Iterable$(E), [core.int, core.i
nt]), |
| 2028 [core.$removeRange]: dart.functionType(dart.void, [core.int, core.int]), |
| 2029 [core.$fillRange]: dart.functionType(dart.void, [core.int, core.int], [E
]), |
| 2030 [core.$setRange]: dart.functionType(dart.void, [core.int, core.int, core
.Iterable$(E)], [core.int]), |
| 2031 [core.$replaceRange]: dart.functionType(dart.void, [core.int, core.int,
core.Iterable$(E)]), |
| 2032 [core.$indexOf]: dart.functionType(core.int, [core.Object], [core.int]), |
| 2033 [core.$lastIndexOf]: dart.functionType(core.int, [core.Object], [core.in
t]), |
| 2034 [core.$insert]: dart.functionType(dart.void, [core.int, E]), |
| 2035 [core.$removeAt]: dart.functionType(E, [core.int]), |
| 2036 [core.$insertAll]: dart.functionType(dart.void, [core.int, core.Iterable
$(E)]), |
| 2037 [core.$setAll]: dart.functionType(dart.void, [core.int, core.Iterable$(E
)]), |
| 2038 [core.$toString]: dart.functionType(core.String, []) |
| 2039 }), |
| 2040 statics: () => ({_filter: dart.functionType(dart.void, [core.List, dart.fu
nctionType(core.bool, [dart.dynamic]), core.bool])}), |
| 2041 names: ['_filter'] |
| 2042 }); |
| 1857 return ListMixin; | 2043 return ListMixin; |
| 1858 }); | 2044 }); |
| 1859 let ListMixin = ListMixin$(); | 2045 let ListMixin = ListMixin$(); |
| 1860 let ListBase$ = dart.generic(function(E) { | 2046 let ListBase$ = dart.generic(function(E) { |
| 1861 class ListBase extends dart.mixin(core.Object, ListMixin$(E)) { | 2047 class ListBase extends dart.mixin(core.Object, ListMixin$(E)) { |
| 1862 static listToString(list) { | 2048 static listToString(list) { |
| 1863 return IterableBase.iterableToFullString(list, '[', ']'); | 2049 return IterableBase.iterableToFullString(list, '[', ']'); |
| 1864 } | 2050 } |
| 1865 } | 2051 } |
| 2052 dart.setSignature(ListBase, { |
| 2053 statics: () => ({listToString: dart.functionType(core.String, [core.List])
}), |
| 2054 names: ['listToString'] |
| 2055 }); |
| 1866 return ListBase; | 2056 return ListBase; |
| 1867 }); | 2057 }); |
| 1868 let ListBase = ListBase$(); | 2058 let ListBase = ListBase$(); |
| 1869 let MapMixin$ = dart.generic(function(K, V) { | 2059 let MapMixin$ = dart.generic(function(K, V) { |
| 1870 class MapMixin extends core.Object { | 2060 class MapMixin extends core.Object { |
| 1871 forEach(action) { | 2061 forEach(action) { |
| 1872 dart.as(action, dart.functionType(dart.void, [K, V])); | 2062 dart.as(action, dart.functionType(dart.void, [K, V])); |
| 1873 for (let key of this.keys) { | 2063 for (let key of this.keys) { |
| 1874 action(key, this.get(key)); | 2064 action(key, this.get(key)); |
| 1875 } | 2065 } |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1908 return this.keys[core.$isNotEmpty]; | 2098 return this.keys[core.$isNotEmpty]; |
| 1909 } | 2099 } |
| 1910 get values() { | 2100 get values() { |
| 1911 return new (_MapBaseValueIterable$(V))(this); | 2101 return new (_MapBaseValueIterable$(V))(this); |
| 1912 } | 2102 } |
| 1913 toString() { | 2103 toString() { |
| 1914 return Maps.mapToString(this); | 2104 return Maps.mapToString(this); |
| 1915 } | 2105 } |
| 1916 } | 2106 } |
| 1917 MapMixin[dart.implements] = () => [core.Map$(K, V)]; | 2107 MapMixin[dart.implements] = () => [core.Map$(K, V)]; |
| 2108 dart.setSignature(MapMixin, { |
| 2109 methods: () => ({ |
| 2110 forEach: dart.functionType(dart.void, [dart.functionType(dart.void, [K,
V])]), |
| 2111 addAll: dart.functionType(dart.void, [core.Map$(K, V)]), |
| 2112 containsValue: dart.functionType(core.bool, [core.Object]), |
| 2113 putIfAbsent: dart.functionType(V, [K, dart.functionType(V, [])]), |
| 2114 containsKey: dart.functionType(core.bool, [core.Object]), |
| 2115 toString: dart.functionType(core.String, []) |
| 2116 }) |
| 2117 }); |
| 1918 return MapMixin; | 2118 return MapMixin; |
| 1919 }); | 2119 }); |
| 1920 let MapMixin = MapMixin$(); | 2120 let MapMixin = MapMixin$(); |
| 1921 let MapBase$ = dart.generic(function(K, V) { | 2121 let MapBase$ = dart.generic(function(K, V) { |
| 1922 class MapBase extends dart.mixin(core.Object, MapMixin$(K, V)) {} | 2122 class MapBase extends dart.mixin(core.Object, MapMixin$(K, V)) {} |
| 1923 return MapBase; | 2123 return MapBase; |
| 1924 }); | 2124 }); |
| 1925 let MapBase = MapBase$(); | 2125 let MapBase = MapBase$(); |
| 1926 let _UnmodifiableMapMixin$ = dart.generic(function(K, V) { | 2126 let _UnmodifiableMapMixin$ = dart.generic(function(K, V) { |
| 1927 class _UnmodifiableMapMixin extends core.Object { | 2127 class _UnmodifiableMapMixin extends core.Object { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 1940 remove(key) { | 2140 remove(key) { |
| 1941 throw new core.UnsupportedError("Cannot modify unmodifiable map"); | 2141 throw new core.UnsupportedError("Cannot modify unmodifiable map"); |
| 1942 } | 2142 } |
| 1943 putIfAbsent(key, ifAbsent) { | 2143 putIfAbsent(key, ifAbsent) { |
| 1944 dart.as(key, K); | 2144 dart.as(key, K); |
| 1945 dart.as(ifAbsent, dart.functionType(V, [])); | 2145 dart.as(ifAbsent, dart.functionType(V, [])); |
| 1946 throw new core.UnsupportedError("Cannot modify unmodifiable map"); | 2146 throw new core.UnsupportedError("Cannot modify unmodifiable map"); |
| 1947 } | 2147 } |
| 1948 } | 2148 } |
| 1949 _UnmodifiableMapMixin[dart.implements] = () => [core.Map$(K, V)]; | 2149 _UnmodifiableMapMixin[dart.implements] = () => [core.Map$(K, V)]; |
| 2150 dart.setSignature(_UnmodifiableMapMixin, { |
| 2151 methods: () => ({ |
| 2152 set: dart.functionType(dart.void, [K, V]), |
| 2153 addAll: dart.functionType(dart.void, [core.Map$(K, V)]), |
| 2154 clear: dart.functionType(dart.void, []), |
| 2155 remove: dart.functionType(V, [core.Object]), |
| 2156 putIfAbsent: dart.functionType(V, [K, dart.functionType(V, [])]) |
| 2157 }) |
| 2158 }); |
| 1950 return _UnmodifiableMapMixin; | 2159 return _UnmodifiableMapMixin; |
| 1951 }); | 2160 }); |
| 1952 let _UnmodifiableMapMixin = _UnmodifiableMapMixin$(); | 2161 let _UnmodifiableMapMixin = _UnmodifiableMapMixin$(); |
| 1953 let UnmodifiableMapBase$ = dart.generic(function(K, V) { | 2162 let UnmodifiableMapBase$ = dart.generic(function(K, V) { |
| 1954 class UnmodifiableMapBase extends dart.mixin(MapBase$(K, V), _UnmodifiableMa
pMixin$(K, V)) {} | 2163 class UnmodifiableMapBase extends dart.mixin(MapBase$(K, V), _UnmodifiableMa
pMixin$(K, V)) {} |
| 1955 return UnmodifiableMapBase; | 2164 return UnmodifiableMapBase; |
| 1956 }); | 2165 }); |
| 1957 let UnmodifiableMapBase = UnmodifiableMapBase$(); | 2166 let UnmodifiableMapBase = UnmodifiableMapBase$(); |
| 1958 let _map = Symbol('_map'); | 2167 let _map = Symbol('_map'); |
| 1959 let _MapBaseValueIterable$ = dart.generic(function(V) { | 2168 let _MapBaseValueIterable$ = dart.generic(function(V) { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 1978 return dart.as(this[_map].get(this[_map].keys[core.$single]), V); | 2187 return dart.as(this[_map].get(this[_map].keys[core.$single]), V); |
| 1979 } | 2188 } |
| 1980 get [core.$last]() { | 2189 get [core.$last]() { |
| 1981 return dart.as(this[_map].get(this[_map].keys[core.$last]), V); | 2190 return dart.as(this[_map].get(this[_map].keys[core.$last]), V); |
| 1982 } | 2191 } |
| 1983 get [core.$iterator]() { | 2192 get [core.$iterator]() { |
| 1984 return new (_MapBaseValueIterator$(V))(this[_map]); | 2193 return new (_MapBaseValueIterator$(V))(this[_map]); |
| 1985 } | 2194 } |
| 1986 } | 2195 } |
| 1987 _MapBaseValueIterable[dart.implements] = () => [_internal.EfficientLength]; | 2196 _MapBaseValueIterable[dart.implements] = () => [_internal.EfficientLength]; |
| 2197 dart.setSignature(_MapBaseValueIterable, {}); |
| 1988 return _MapBaseValueIterable; | 2198 return _MapBaseValueIterable; |
| 1989 }); | 2199 }); |
| 1990 let _MapBaseValueIterable = _MapBaseValueIterable$(); | 2200 let _MapBaseValueIterable = _MapBaseValueIterable$(); |
| 1991 let _keys = Symbol('_keys'); | 2201 let _keys = Symbol('_keys'); |
| 1992 let _MapBaseValueIterator$ = dart.generic(function(V) { | 2202 let _MapBaseValueIterator$ = dart.generic(function(V) { |
| 1993 class _MapBaseValueIterator extends core.Object { | 2203 class _MapBaseValueIterator extends core.Object { |
| 1994 _MapBaseValueIterator(map) { | 2204 _MapBaseValueIterator(map) { |
| 1995 this[_map] = map; | 2205 this[_map] = map; |
| 1996 this[_keys] = map.keys[core.$iterator]; | 2206 this[_keys] = map.keys[core.$iterator]; |
| 1997 this[_current] = null; | 2207 this[_current] = null; |
| 1998 } | 2208 } |
| 1999 moveNext() { | 2209 moveNext() { |
| 2000 if (this[_keys].moveNext()) { | 2210 if (this[_keys].moveNext()) { |
| 2001 this[_current] = dart.as(this[_map].get(this[_keys].current), V); | 2211 this[_current] = dart.as(this[_map].get(this[_keys].current), V); |
| 2002 return true; | 2212 return true; |
| 2003 } | 2213 } |
| 2004 this[_current] = null; | 2214 this[_current] = null; |
| 2005 return false; | 2215 return false; |
| 2006 } | 2216 } |
| 2007 get current() { | 2217 get current() { |
| 2008 return this[_current]; | 2218 return this[_current]; |
| 2009 } | 2219 } |
| 2010 } | 2220 } |
| 2011 _MapBaseValueIterator[dart.implements] = () => [core.Iterator$(V)]; | 2221 _MapBaseValueIterator[dart.implements] = () => [core.Iterator$(V)]; |
| 2222 dart.setSignature(_MapBaseValueIterator, { |
| 2223 methods: () => ({moveNext: dart.functionType(core.bool, [])}) |
| 2224 }); |
| 2012 return _MapBaseValueIterator; | 2225 return _MapBaseValueIterator; |
| 2013 }); | 2226 }); |
| 2014 let _MapBaseValueIterator = _MapBaseValueIterator$(); | 2227 let _MapBaseValueIterator = _MapBaseValueIterator$(); |
| 2015 let MapView$ = dart.generic(function(K, V) { | 2228 let MapView$ = dart.generic(function(K, V) { |
| 2016 class MapView extends core.Object { | 2229 class MapView extends core.Object { |
| 2017 MapView(map) { | 2230 MapView(map) { |
| 2018 this[_map] = map; | 2231 this[_map] = map; |
| 2019 } | 2232 } |
| 2020 get(key) { | 2233 get(key) { |
| 2021 return this[_map].get(key); | 2234 return this[_map].get(key); |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2063 return this[_map].remove(key); | 2276 return this[_map].remove(key); |
| 2064 } | 2277 } |
| 2065 toString() { | 2278 toString() { |
| 2066 return dart.toString(this[_map]); | 2279 return dart.toString(this[_map]); |
| 2067 } | 2280 } |
| 2068 get values() { | 2281 get values() { |
| 2069 return this[_map].values; | 2282 return this[_map].values; |
| 2070 } | 2283 } |
| 2071 } | 2284 } |
| 2072 MapView[dart.implements] = () => [core.Map$(K, V)]; | 2285 MapView[dart.implements] = () => [core.Map$(K, V)]; |
| 2286 dart.setSignature(MapView, { |
| 2287 methods: () => ({ |
| 2288 get: dart.functionType(V, [core.Object]), |
| 2289 set: dart.functionType(dart.void, [K, V]), |
| 2290 addAll: dart.functionType(dart.void, [core.Map$(K, V)]), |
| 2291 clear: dart.functionType(dart.void, []), |
| 2292 putIfAbsent: dart.functionType(V, [K, dart.functionType(V, [])]), |
| 2293 containsKey: dart.functionType(core.bool, [core.Object]), |
| 2294 containsValue: dart.functionType(core.bool, [core.Object]), |
| 2295 forEach: dart.functionType(dart.void, [dart.functionType(dart.void, [K,
V])]), |
| 2296 remove: dart.functionType(V, [core.Object]), |
| 2297 toString: dart.functionType(core.String, []) |
| 2298 }) |
| 2299 }); |
| 2073 return MapView; | 2300 return MapView; |
| 2074 }); | 2301 }); |
| 2075 let MapView = MapView$(); | 2302 let MapView = MapView$(); |
| 2076 let UnmodifiableMapView$ = dart.generic(function(K, V) { | 2303 let UnmodifiableMapView$ = dart.generic(function(K, V) { |
| 2077 class UnmodifiableMapView extends dart.mixin(MapView$(K, V), _UnmodifiableMa
pMixin$(K, V)) {} | 2304 class UnmodifiableMapView extends dart.mixin(MapView$(K, V), _UnmodifiableMa
pMixin$(K, V)) {} |
| 2078 return UnmodifiableMapView; | 2305 return UnmodifiableMapView; |
| 2079 }); | 2306 }); |
| 2080 let UnmodifiableMapView = UnmodifiableMapView$(); | 2307 let UnmodifiableMapView = UnmodifiableMapView$(); |
| 2081 class Maps extends core.Object { | 2308 class Maps extends core.Object { |
| 2082 static containsValue(map, value) { | 2309 static containsValue(map, value) { |
| (...skipping 24 matching lines...) Expand all Loading... |
| 2107 for (let k of map.keys[core.$toList]()) { | 2334 for (let k of map.keys[core.$toList]()) { |
| 2108 map.remove(k); | 2335 map.remove(k); |
| 2109 } | 2336 } |
| 2110 } | 2337 } |
| 2111 static forEach(map, f) { | 2338 static forEach(map, f) { |
| 2112 for (let k of map.keys) { | 2339 for (let k of map.keys) { |
| 2113 dart.dcall(f, k, map.get(k)); | 2340 dart.dcall(f, k, map.get(k)); |
| 2114 } | 2341 } |
| 2115 } | 2342 } |
| 2116 static getValues(map) { | 2343 static getValues(map) { |
| 2117 return map.keys[core.$map](key => map.get(key)); | 2344 return map.keys[core.$map](dart.fn(key => map.get(key))); |
| 2118 } | 2345 } |
| 2119 static length(map) { | 2346 static length(map) { |
| 2120 return map.keys[core.$length]; | 2347 return map.keys[core.$length]; |
| 2121 } | 2348 } |
| 2122 static isEmpty(map) { | 2349 static isEmpty(map) { |
| 2123 return map.keys[core.$isEmpty]; | 2350 return map.keys[core.$isEmpty]; |
| 2124 } | 2351 } |
| 2125 static isNotEmpty(map) { | 2352 static isNotEmpty(map) { |
| 2126 return map.keys[core.$isNotEmpty]; | 2353 return map.keys[core.$isNotEmpty]; |
| 2127 } | 2354 } |
| 2128 static mapToString(m) { | 2355 static mapToString(m) { |
| 2129 if (IterableBase._isToStringVisiting(m)) { | 2356 if (IterableBase._isToStringVisiting(m)) { |
| 2130 return '{...}'; | 2357 return '{...}'; |
| 2131 } | 2358 } |
| 2132 let result = new core.StringBuffer(); | 2359 let result = new core.StringBuffer(); |
| 2133 try { | 2360 try { |
| 2134 IterableBase._toStringVisiting[core.$add](m); | 2361 IterableBase._toStringVisiting[core.$add](m); |
| 2135 result.write('{'); | 2362 result.write('{'); |
| 2136 let first = true; | 2363 let first = true; |
| 2137 m.forEach((k, v) => { | 2364 m.forEach(dart.fn((k, v) => { |
| 2138 if (!dart.notNull(first)) { | 2365 if (!dart.notNull(first)) { |
| 2139 result.write(', '); | 2366 result.write(', '); |
| 2140 } | 2367 } |
| 2141 first = false; | 2368 first = false; |
| 2142 result.write(k); | 2369 result.write(k); |
| 2143 result.write(': '); | 2370 result.write(': '); |
| 2144 result.write(v); | 2371 result.write(v); |
| 2145 }); | 2372 })); |
| 2146 result.write('}'); | 2373 result.write('}'); |
| 2147 } finally { | 2374 } finally { |
| 2148 dart.assert(core.identical(IterableBase._toStringVisiting[core.$last], m
)); | 2375 dart.assert(core.identical(IterableBase._toStringVisiting[core.$last], m
)); |
| 2149 IterableBase._toStringVisiting[core.$removeLast](); | 2376 IterableBase._toStringVisiting[core.$removeLast](); |
| 2150 } | 2377 } |
| 2151 return dart.toString(result); | 2378 return dart.toString(result); |
| 2152 } | 2379 } |
| 2153 static _id(x) { | 2380 static _id(x) { |
| 2154 return x; | 2381 return x; |
| 2155 } | 2382 } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 2170 while (dart.notNull(hasNextKey) && dart.notNull(hasNextValue)) { | 2397 while (dart.notNull(hasNextKey) && dart.notNull(hasNextValue)) { |
| 2171 map.set(keyIterator.current, valueIterator.current); | 2398 map.set(keyIterator.current, valueIterator.current); |
| 2172 hasNextKey = keyIterator.moveNext(); | 2399 hasNextKey = keyIterator.moveNext(); |
| 2173 hasNextValue = valueIterator.moveNext(); | 2400 hasNextValue = valueIterator.moveNext(); |
| 2174 } | 2401 } |
| 2175 if (dart.notNull(hasNextKey) || dart.notNull(hasNextValue)) { | 2402 if (dart.notNull(hasNextKey) || dart.notNull(hasNextValue)) { |
| 2176 throw new core.ArgumentError("Iterables do not have same length."); | 2403 throw new core.ArgumentError("Iterables do not have same length."); |
| 2177 } | 2404 } |
| 2178 } | 2405 } |
| 2179 } | 2406 } |
| 2407 dart.setSignature(Maps, { |
| 2408 statics: () => ({ |
| 2409 containsValue: dart.functionType(core.bool, [core.Map, dart.dynamic]), |
| 2410 containsKey: dart.functionType(core.bool, [core.Map, dart.dynamic]), |
| 2411 putIfAbsent: dart.functionType(dart.dynamic, [core.Map, dart.dynamic, dart
.functionType(dart.dynamic, [])]), |
| 2412 clear: dart.functionType(dart.dynamic, [core.Map]), |
| 2413 forEach: dart.functionType(dart.dynamic, [core.Map, dart.functionType(dart
.void, [dart.dynamic, dart.dynamic])]), |
| 2414 getValues: dart.functionType(core.Iterable, [core.Map]), |
| 2415 length: dart.functionType(core.int, [core.Map]), |
| 2416 isEmpty: dart.functionType(core.bool, [core.Map]), |
| 2417 isNotEmpty: dart.functionType(core.bool, [core.Map]), |
| 2418 mapToString: dart.functionType(core.String, [core.Map]), |
| 2419 _id: dart.functionType(dart.dynamic, [dart.dynamic]), |
| 2420 _fillMapWithMappedIterable: dart.functionType(dart.void, [core.Map, core.I
terable, dart.functionType(dart.dynamic, [dart.dynamic]), dart.functionType(dart
.dynamic, [dart.dynamic])]), |
| 2421 _fillMapWithIterables: dart.functionType(dart.void, [core.Map, core.Iterab
le, core.Iterable]) |
| 2422 }), |
| 2423 names: ['containsValue', 'containsKey', 'putIfAbsent', 'clear', 'forEach', '
getValues', 'length', 'isEmpty', 'isNotEmpty', 'mapToString', '_id', '_fillMapWi
thMappedIterable', '_fillMapWithIterables'] |
| 2424 }); |
| 2180 let Queue$ = dart.generic(function(E) { | 2425 let Queue$ = dart.generic(function(E) { |
| 2181 class Queue extends core.Object { | 2426 class Queue extends core.Object { |
| 2182 Queue() { | 2427 Queue() { |
| 2183 return new (ListQueue$(E))(); | 2428 return new (ListQueue$(E))(); |
| 2184 } | 2429 } |
| 2185 from(elements) { | 2430 from(elements) { |
| 2186 return new (ListQueue$(E)).from(elements); | 2431 return new (ListQueue$(E)).from(elements); |
| 2187 } | 2432 } |
| 2188 [Symbol.iterator]() { | 2433 [Symbol.iterator]() { |
| 2189 return new dart.JsIterator(this[core.$iterator]); | 2434 return new dart.JsIterator(this[core.$iterator]); |
| 2190 } | 2435 } |
| 2191 } | 2436 } |
| 2192 Queue[dart.implements] = () => [core.Iterable$(E), _internal.EfficientLength
]; | 2437 Queue[dart.implements] = () => [core.Iterable$(E), _internal.EfficientLength
]; |
| 2193 dart.defineNamedConstructor(Queue, 'from'); | 2438 dart.defineNamedConstructor(Queue, 'from'); |
| 2439 dart.setSignature(Queue, {}); |
| 2194 return Queue; | 2440 return Queue; |
| 2195 }); | 2441 }); |
| 2196 let Queue = Queue$(); | 2442 let Queue = Queue$(); |
| 2197 let _element = Symbol('_element'); | 2443 let _element = Symbol('_element'); |
| 2198 let _link = Symbol('_link'); | 2444 let _link = Symbol('_link'); |
| 2199 let _asNonSentinelEntry = Symbol('_asNonSentinelEntry'); | 2445 let _asNonSentinelEntry = Symbol('_asNonSentinelEntry'); |
| 2200 let DoubleLinkedQueueEntry$ = dart.generic(function(E) { | 2446 let DoubleLinkedQueueEntry$ = dart.generic(function(E) { |
| 2201 class DoubleLinkedQueueEntry extends core.Object { | 2447 class DoubleLinkedQueueEntry extends core.Object { |
| 2202 DoubleLinkedQueueEntry(e) { | 2448 DoubleLinkedQueueEntry(e) { |
| 2203 this[_element] = e; | 2449 this[_element] = e; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2237 return this[_next][_asNonSentinelEntry](); | 2483 return this[_next][_asNonSentinelEntry](); |
| 2238 } | 2484 } |
| 2239 get element() { | 2485 get element() { |
| 2240 return this[_element]; | 2486 return this[_element]; |
| 2241 } | 2487 } |
| 2242 set element(e) { | 2488 set element(e) { |
| 2243 dart.as(e, E); | 2489 dart.as(e, E); |
| 2244 this[_element] = e; | 2490 this[_element] = e; |
| 2245 } | 2491 } |
| 2246 } | 2492 } |
| 2493 dart.setSignature(DoubleLinkedQueueEntry, { |
| 2494 methods: () => ({ |
| 2495 [_link]: dart.functionType(dart.void, [DoubleLinkedQueueEntry$(E), Doubl
eLinkedQueueEntry$(E)]), |
| 2496 append: dart.functionType(dart.void, [E]), |
| 2497 prepend: dart.functionType(dart.void, [E]), |
| 2498 remove: dart.functionType(E, []), |
| 2499 [_asNonSentinelEntry]: dart.functionType(DoubleLinkedQueueEntry$(E), [])
, |
| 2500 previousEntry: dart.functionType(DoubleLinkedQueueEntry$(E), []), |
| 2501 nextEntry: dart.functionType(DoubleLinkedQueueEntry$(E), []) |
| 2502 }) |
| 2503 }); |
| 2247 return DoubleLinkedQueueEntry; | 2504 return DoubleLinkedQueueEntry; |
| 2248 }); | 2505 }); |
| 2249 let DoubleLinkedQueueEntry = DoubleLinkedQueueEntry$(); | 2506 let DoubleLinkedQueueEntry = DoubleLinkedQueueEntry$(); |
| 2250 let _DoubleLinkedQueueEntrySentinel$ = dart.generic(function(E) { | 2507 let _DoubleLinkedQueueEntrySentinel$ = dart.generic(function(E) { |
| 2251 class _DoubleLinkedQueueEntrySentinel extends DoubleLinkedQueueEntry$(E) { | 2508 class _DoubleLinkedQueueEntrySentinel extends DoubleLinkedQueueEntry$(E) { |
| 2252 _DoubleLinkedQueueEntrySentinel() { | 2509 _DoubleLinkedQueueEntrySentinel() { |
| 2253 super.DoubleLinkedQueueEntry(null); | 2510 super.DoubleLinkedQueueEntry(null); |
| 2254 this[_link](this, this); | 2511 this[_link](this, this); |
| 2255 } | 2512 } |
| 2256 remove() { | 2513 remove() { |
| 2257 throw _internal.IterableElementError.noElement(); | 2514 throw _internal.IterableElementError.noElement(); |
| 2258 } | 2515 } |
| 2259 [_asNonSentinelEntry]() { | 2516 [_asNonSentinelEntry]() { |
| 2260 return null; | 2517 return null; |
| 2261 } | 2518 } |
| 2262 set element(e) { | 2519 set element(e) { |
| 2263 dart.as(e, E); | 2520 dart.as(e, E); |
| 2264 dart.assert(false); | 2521 dart.assert(false); |
| 2265 } | 2522 } |
| 2266 get element() { | 2523 get element() { |
| 2267 throw _internal.IterableElementError.noElement(); | 2524 throw _internal.IterableElementError.noElement(); |
| 2268 } | 2525 } |
| 2269 } | 2526 } |
| 2527 dart.setSignature(_DoubleLinkedQueueEntrySentinel, { |
| 2528 methods: () => ({ |
| 2529 remove: dart.functionType(E, []), |
| 2530 [_asNonSentinelEntry]: dart.functionType(DoubleLinkedQueueEntry$(E), []) |
| 2531 }) |
| 2532 }); |
| 2270 return _DoubleLinkedQueueEntrySentinel; | 2533 return _DoubleLinkedQueueEntrySentinel; |
| 2271 }); | 2534 }); |
| 2272 let _DoubleLinkedQueueEntrySentinel = _DoubleLinkedQueueEntrySentinel$(); | 2535 let _DoubleLinkedQueueEntrySentinel = _DoubleLinkedQueueEntrySentinel$(); |
| 2273 let _sentinel = Symbol('_sentinel'); | 2536 let _sentinel = Symbol('_sentinel'); |
| 2274 let _elementCount = Symbol('_elementCount'); | 2537 let _elementCount = Symbol('_elementCount'); |
| 2275 let _filter = Symbol('_filter'); | 2538 let _filter = Symbol('_filter'); |
| 2276 let DoubleLinkedQueue$ = dart.generic(function(E) { | 2539 let DoubleLinkedQueue$ = dart.generic(function(E) { |
| 2277 class DoubleLinkedQueue extends IterableBase$(E) { | 2540 class DoubleLinkedQueue extends IterableBase$(E) { |
| 2278 DoubleLinkedQueue() { | 2541 DoubleLinkedQueue() { |
| 2279 this[_sentinel] = null; | 2542 this[_sentinel] = null; |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2392 } | 2655 } |
| 2393 get [core.$iterator]() { | 2656 get [core.$iterator]() { |
| 2394 return new (_DoubleLinkedQueueIterator$(E))(this[_sentinel]); | 2657 return new (_DoubleLinkedQueueIterator$(E))(this[_sentinel]); |
| 2395 } | 2658 } |
| 2396 toString() { | 2659 toString() { |
| 2397 return IterableBase.iterableToFullString(this, '{', '}'); | 2660 return IterableBase.iterableToFullString(this, '{', '}'); |
| 2398 } | 2661 } |
| 2399 } | 2662 } |
| 2400 DoubleLinkedQueue[dart.implements] = () => [Queue$(E)]; | 2663 DoubleLinkedQueue[dart.implements] = () => [Queue$(E)]; |
| 2401 dart.defineNamedConstructor(DoubleLinkedQueue, 'from'); | 2664 dart.defineNamedConstructor(DoubleLinkedQueue, 'from'); |
| 2665 dart.setSignature(DoubleLinkedQueue, { |
| 2666 methods: () => ({ |
| 2667 addLast: dart.functionType(dart.void, [E]), |
| 2668 addFirst: dart.functionType(dart.void, [E]), |
| 2669 add: dart.functionType(dart.void, [E]), |
| 2670 addAll: dart.functionType(dart.void, [core.Iterable$(E)]), |
| 2671 removeLast: dart.functionType(E, []), |
| 2672 removeFirst: dart.functionType(E, []), |
| 2673 remove: dart.functionType(core.bool, [core.Object]), |
| 2674 [_filter]: dart.functionType(dart.void, [dart.functionType(core.bool, [E
]), core.bool]), |
| 2675 removeWhere: dart.functionType(dart.void, [dart.functionType(core.bool,
[E])]), |
| 2676 retainWhere: dart.functionType(dart.void, [dart.functionType(core.bool,
[E])]), |
| 2677 lastEntry: dart.functionType(DoubleLinkedQueueEntry$(E), []), |
| 2678 firstEntry: dart.functionType(DoubleLinkedQueueEntry$(E), []), |
| 2679 clear: dart.functionType(dart.void, []), |
| 2680 forEachEntry: dart.functionType(dart.void, [dart.functionType(dart.void,
[DoubleLinkedQueueEntry$(E)])]), |
| 2681 toString: dart.functionType(core.String, []) |
| 2682 }) |
| 2683 }); |
| 2402 return DoubleLinkedQueue; | 2684 return DoubleLinkedQueue; |
| 2403 }); | 2685 }); |
| 2404 let DoubleLinkedQueue = DoubleLinkedQueue$(); | 2686 let DoubleLinkedQueue = DoubleLinkedQueue$(); |
| 2405 let _nextEntry = Symbol('_nextEntry'); | 2687 let _nextEntry = Symbol('_nextEntry'); |
| 2406 let _DoubleLinkedQueueIterator$ = dart.generic(function(E) { | 2688 let _DoubleLinkedQueueIterator$ = dart.generic(function(E) { |
| 2407 class _DoubleLinkedQueueIterator extends core.Object { | 2689 class _DoubleLinkedQueueIterator extends core.Object { |
| 2408 _DoubleLinkedQueueIterator(sentinel) { | 2690 _DoubleLinkedQueueIterator(sentinel) { |
| 2409 this[_sentinel] = sentinel; | 2691 this[_sentinel] = sentinel; |
| 2410 this[_nextEntry] = sentinel[_next]; | 2692 this[_nextEntry] = sentinel[_next]; |
| 2411 this[_current] = null; | 2693 this[_current] = null; |
| 2412 } | 2694 } |
| 2413 moveNext() { | 2695 moveNext() { |
| 2414 if (!dart.notNull(core.identical(this[_nextEntry], this[_sentinel]))) { | 2696 if (!dart.notNull(core.identical(this[_nextEntry], this[_sentinel]))) { |
| 2415 this[_current] = this[_nextEntry][_element]; | 2697 this[_current] = this[_nextEntry][_element]; |
| 2416 this[_nextEntry] = this[_nextEntry][_next]; | 2698 this[_nextEntry] = this[_nextEntry][_next]; |
| 2417 return true; | 2699 return true; |
| 2418 } | 2700 } |
| 2419 this[_current] = null; | 2701 this[_current] = null; |
| 2420 this[_nextEntry] = this[_sentinel] = null; | 2702 this[_nextEntry] = this[_sentinel] = null; |
| 2421 return false; | 2703 return false; |
| 2422 } | 2704 } |
| 2423 get current() { | 2705 get current() { |
| 2424 return this[_current]; | 2706 return this[_current]; |
| 2425 } | 2707 } |
| 2426 } | 2708 } |
| 2427 _DoubleLinkedQueueIterator[dart.implements] = () => [core.Iterator$(E)]; | 2709 _DoubleLinkedQueueIterator[dart.implements] = () => [core.Iterator$(E)]; |
| 2710 dart.setSignature(_DoubleLinkedQueueIterator, { |
| 2711 methods: () => ({moveNext: dart.functionType(core.bool, [])}) |
| 2712 }); |
| 2428 return _DoubleLinkedQueueIterator; | 2713 return _DoubleLinkedQueueIterator; |
| 2429 }); | 2714 }); |
| 2430 let _DoubleLinkedQueueIterator = _DoubleLinkedQueueIterator$(); | 2715 let _DoubleLinkedQueueIterator = _DoubleLinkedQueueIterator$(); |
| 2431 let _head = Symbol('_head'); | 2716 let _head = Symbol('_head'); |
| 2432 let _tail = Symbol('_tail'); | 2717 let _tail = Symbol('_tail'); |
| 2433 let _table = Symbol('_table'); | 2718 let _table = Symbol('_table'); |
| 2434 let _checkModification = Symbol('_checkModification'); | 2719 let _checkModification = Symbol('_checkModification'); |
| 2435 let _writeToList = Symbol('_writeToList'); | 2720 let _writeToList = Symbol('_writeToList'); |
| 2436 let _add = Symbol('_add'); | 2721 let _add = Symbol('_add'); |
| 2437 let _preGrow = Symbol('_preGrow'); | 2722 let _preGrow = Symbol('_preGrow'); |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2717 newElementCount = dart.notNull(newElementCount) + (dart.notNull(newEleme
ntCount) >> 1); | 3002 newElementCount = dart.notNull(newElementCount) + (dart.notNull(newEleme
ntCount) >> 1); |
| 2718 let newCapacity = ListQueue$()._nextPowerOf2(newElementCount); | 3003 let newCapacity = ListQueue$()._nextPowerOf2(newElementCount); |
| 2719 let newTable = new (core.List$(E))(newCapacity); | 3004 let newTable = new (core.List$(E))(newCapacity); |
| 2720 this[_tail] = this[_writeToList](newTable); | 3005 this[_tail] = this[_writeToList](newTable); |
| 2721 this[_table] = newTable; | 3006 this[_table] = newTable; |
| 2722 this[_head] = 0; | 3007 this[_head] = 0; |
| 2723 } | 3008 } |
| 2724 } | 3009 } |
| 2725 ListQueue[dart.implements] = () => [Queue$(E)]; | 3010 ListQueue[dart.implements] = () => [Queue$(E)]; |
| 2726 dart.defineNamedConstructor(ListQueue, 'from'); | 3011 dart.defineNamedConstructor(ListQueue, 'from'); |
| 3012 dart.setSignature(ListQueue, { |
| 3013 methods: () => ({ |
| 3014 [core.$forEach]: dart.functionType(dart.void, [dart.functionType(dart.vo
id, [E])]), |
| 3015 [core.$elementAt]: dart.functionType(E, [core.int]), |
| 3016 [core.$toList]: dart.functionType(core.List$(E), [], {rowabl: core.bool}
), |
| 3017 add: dart.functionType(dart.void, [E]), |
| 3018 addAll: dart.functionType(dart.void, [core.Iterable$(E)]), |
| 3019 remove: dart.functionType(core.bool, [core.Object]), |
| 3020 [_filterWhere]: dart.functionType(dart.void, [dart.functionType(core.boo
l, [E]), core.bool]), |
| 3021 removeWhere: dart.functionType(dart.void, [dart.functionType(core.bool,
[E])]), |
| 3022 retainWhere: dart.functionType(dart.void, [dart.functionType(core.bool,
[E])]), |
| 3023 clear: dart.functionType(dart.void, []), |
| 3024 toString: dart.functionType(core.String, []), |
| 3025 addLast: dart.functionType(dart.void, [E]), |
| 3026 addFirst: dart.functionType(dart.void, [E]), |
| 3027 removeFirst: dart.functionType(E, []), |
| 3028 removeLast: dart.functionType(E, []), |
| 3029 [_checkModification]: dart.functionType(dart.void, [core.int]), |
| 3030 [_add]: dart.functionType(dart.void, [E]), |
| 3031 [_remove]: dart.functionType(core.int, [core.int]), |
| 3032 [_grow]: dart.functionType(dart.void, []), |
| 3033 [_writeToList]: dart.functionType(core.int, [core.List$(E)]), |
| 3034 [_preGrow]: dart.functionType(dart.void, [core.int]) |
| 3035 }), |
| 3036 statics: () => ({ |
| 3037 _isPowerOf2: dart.functionType(core.bool, [core.int]), |
| 3038 _nextPowerOf2: dart.functionType(core.int, [core.int]) |
| 3039 }), |
| 3040 names: ['_isPowerOf2', '_nextPowerOf2'] |
| 3041 }); |
| 2727 return ListQueue; | 3042 return ListQueue; |
| 2728 }); | 3043 }); |
| 2729 let ListQueue = ListQueue$(); | 3044 let ListQueue = ListQueue$(); |
| 2730 ListQueue._INITIAL_CAPACITY = 8; | 3045 ListQueue._INITIAL_CAPACITY = 8; |
| 2731 let _queue = Symbol('_queue'); | 3046 let _queue = Symbol('_queue'); |
| 2732 let _end = Symbol('_end'); | 3047 let _end = Symbol('_end'); |
| 2733 let _position = Symbol('_position'); | 3048 let _position = Symbol('_position'); |
| 2734 let _ListQueueIterator$ = dart.generic(function(E) { | 3049 let _ListQueueIterator$ = dart.generic(function(E) { |
| 2735 class _ListQueueIterator extends core.Object { | 3050 class _ListQueueIterator extends core.Object { |
| 2736 _ListQueueIterator(queue) { | 3051 _ListQueueIterator(queue) { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 2748 if (this[_position] == this[_end]) { | 3063 if (this[_position] == this[_end]) { |
| 2749 this[_current] = null; | 3064 this[_current] = null; |
| 2750 return false; | 3065 return false; |
| 2751 } | 3066 } |
| 2752 this[_current] = dart.as(this[_queue][_table][core.$get](this[_position]
), E); | 3067 this[_current] = dart.as(this[_queue][_table][core.$get](this[_position]
), E); |
| 2753 this[_position] = dart.notNull(this[_position]) + 1 & dart.notNull(this[
_queue][_table][core.$length]) - 1; | 3068 this[_position] = dart.notNull(this[_position]) + 1 & dart.notNull(this[
_queue][_table][core.$length]) - 1; |
| 2754 return true; | 3069 return true; |
| 2755 } | 3070 } |
| 2756 } | 3071 } |
| 2757 _ListQueueIterator[dart.implements] = () => [core.Iterator$(E)]; | 3072 _ListQueueIterator[dart.implements] = () => [core.Iterator$(E)]; |
| 3073 dart.setSignature(_ListQueueIterator, { |
| 3074 methods: () => ({moveNext: dart.functionType(core.bool, [])}) |
| 3075 }); |
| 2758 return _ListQueueIterator; | 3076 return _ListQueueIterator; |
| 2759 }); | 3077 }); |
| 2760 let _ListQueueIterator = _ListQueueIterator$(); | 3078 let _ListQueueIterator = _ListQueueIterator$(); |
| 2761 let _Predicate$ = dart.generic(function(T) { | 3079 let _Predicate$ = dart.generic(function(T) { |
| 2762 let _Predicate = dart.typedef('_Predicate', () => dart.functionType(core.boo
l, [T])); | 3080 let _Predicate = dart.typedef('_Predicate', () => dart.functionType(core.boo
l, [T])); |
| 2763 return _Predicate; | 3081 return _Predicate; |
| 2764 }); | 3082 }); |
| 2765 let _Predicate = _Predicate$(); | 3083 let _Predicate = _Predicate$(); |
| 2766 let _SplayTreeNode$ = dart.generic(function(K) { | 3084 let _SplayTreeNode$ = dart.generic(function(K) { |
| 2767 class _SplayTreeNode extends core.Object { | 3085 class _SplayTreeNode extends core.Object { |
| 2768 _SplayTreeNode(key) { | 3086 _SplayTreeNode(key) { |
| 2769 this.key = key; | 3087 this.key = key; |
| 2770 this.left = null; | 3088 this.left = null; |
| 2771 this.right = null; | 3089 this.right = null; |
| 2772 } | 3090 } |
| 2773 } | 3091 } |
| 3092 dart.setSignature(_SplayTreeNode, {}); |
| 2774 return _SplayTreeNode; | 3093 return _SplayTreeNode; |
| 2775 }); | 3094 }); |
| 2776 let _SplayTreeNode = _SplayTreeNode$(); | 3095 let _SplayTreeNode = _SplayTreeNode$(); |
| 2777 let _SplayTreeMapNode$ = dart.generic(function(K, V) { | 3096 let _SplayTreeMapNode$ = dart.generic(function(K, V) { |
| 2778 class _SplayTreeMapNode extends _SplayTreeNode$(K) { | 3097 class _SplayTreeMapNode extends _SplayTreeNode$(K) { |
| 2779 _SplayTreeMapNode(key, value) { | 3098 _SplayTreeMapNode(key, value) { |
| 2780 this.value = value; | 3099 this.value = value; |
| 2781 super._SplayTreeNode(key); | 3100 super._SplayTreeNode(key); |
| 2782 } | 3101 } |
| 2783 } | 3102 } |
| 3103 dart.setSignature(_SplayTreeMapNode, {}); |
| 2784 return _SplayTreeMapNode; | 3104 return _SplayTreeMapNode; |
| 2785 }); | 3105 }); |
| 2786 let _SplayTreeMapNode = _SplayTreeMapNode$(); | 3106 let _SplayTreeMapNode = _SplayTreeMapNode$(); |
| 2787 let _dummy = Symbol('_dummy'); | 3107 let _dummy = Symbol('_dummy'); |
| 2788 let _root = Symbol('_root'); | 3108 let _root = Symbol('_root'); |
| 2789 let _count = Symbol('_count'); | 3109 let _count = Symbol('_count'); |
| 2790 let _splayCount = Symbol('_splayCount'); | 3110 let _splayCount = Symbol('_splayCount'); |
| 2791 let _splay = Symbol('_splay'); | 3111 let _splay = Symbol('_splay'); |
| 2792 let _compare = Symbol('_compare'); | 3112 let _compare = Symbol('_compare'); |
| 2793 let _splayMin = Symbol('_splayMin'); | 3113 let _splayMin = Symbol('_splayMin'); |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2930 return null; | 3250 return null; |
| 2931 this[_root] = this[_splayMax](this[_root]); | 3251 this[_root] = this[_splayMax](this[_root]); |
| 2932 return this[_root]; | 3252 return this[_root]; |
| 2933 } | 3253 } |
| 2934 [_clear]() { | 3254 [_clear]() { |
| 2935 this[_root] = null; | 3255 this[_root] = null; |
| 2936 this[_count] = 0; | 3256 this[_count] = 0; |
| 2937 this[_modificationCount] = dart.notNull(this[_modificationCount]) + 1; | 3257 this[_modificationCount] = dart.notNull(this[_modificationCount]) + 1; |
| 2938 } | 3258 } |
| 2939 } | 3259 } |
| 3260 dart.setSignature(_SplayTree, { |
| 3261 methods: () => ({ |
| 3262 [_splay]: dart.functionType(core.int, [K]), |
| 3263 [_splayMin]: dart.functionType(_SplayTreeNode$(K), [_SplayTreeNode$(K)])
, |
| 3264 [_splayMax]: dart.functionType(_SplayTreeNode$(K), [_SplayTreeNode$(K)])
, |
| 3265 [_remove]: dart.functionType(_SplayTreeNode, [K]), |
| 3266 [_addNewRoot]: dart.functionType(dart.void, [_SplayTreeNode$(K), core.in
t]), |
| 3267 [_clear]: dart.functionType(dart.void, []) |
| 3268 }) |
| 3269 }); |
| 2940 return _SplayTree; | 3270 return _SplayTree; |
| 2941 }); | 3271 }); |
| 2942 let _SplayTree = _SplayTree$(); | 3272 let _SplayTree = _SplayTree$(); |
| 2943 let _comparator = Symbol('_comparator'); | 3273 let _comparator = Symbol('_comparator'); |
| 2944 let _validKey = Symbol('_validKey'); | 3274 let _validKey = Symbol('_validKey'); |
| 2945 let SplayTreeMap$ = dart.generic(function(K, V) { | 3275 let SplayTreeMap$ = dart.generic(function(K, V) { |
| 2946 class SplayTreeMap extends _SplayTree$(K) { | 3276 class SplayTreeMap extends _SplayTree$(K) { |
| 2947 SplayTreeMap(compare, isValidKey) { | 3277 SplayTreeMap(compare, isValidKey) { |
| 2948 if (compare === void 0) | 3278 if (compare === void 0) |
| 2949 compare = null; | 3279 compare = null; |
| 2950 if (isValidKey === void 0) | 3280 if (isValidKey === void 0) |
| 2951 isValidKey = null; | 3281 isValidKey = null; |
| 2952 this[_comparator] = dart.as(compare == null ? dart.bind(core.Comparable,
'compare') : compare, core.Comparator$(K)); | 3282 this[_comparator] = dart.as(compare == null ? dart.bind(core.Comparable,
'compare') : compare, core.Comparator$(K)); |
| 2953 this[_validKey] = isValidKey != null ? isValidKey : v => dart.is(v, K); | 3283 this[_validKey] = isValidKey != null ? isValidKey : dart.fn(v => dart.is
(v, K), core.bool, [dart.dynamic]); |
| 2954 super._SplayTree(); | 3284 super._SplayTree(); |
| 2955 } | 3285 } |
| 2956 from(other, compare, isValidKey) { | 3286 from(other, compare, isValidKey) { |
| 2957 if (compare === void 0) | 3287 if (compare === void 0) |
| 2958 compare = null; | 3288 compare = null; |
| 2959 if (isValidKey === void 0) | 3289 if (isValidKey === void 0) |
| 2960 isValidKey = null; | 3290 isValidKey = null; |
| 2961 let result = new (SplayTreeMap$(K, V))(); | 3291 let result = new (SplayTreeMap$(K, V))(); |
| 2962 other.forEach((k, v) => { | 3292 other.forEach(dart.fn((k, v) => { |
| 2963 result.set(k, dart.as(v, V)); | 3293 result.set(k, dart.as(v, V)); |
| 2964 }); | 3294 })); |
| 2965 return result; | 3295 return result; |
| 2966 } | 3296 } |
| 2967 fromIterable(iterable, opts) { | 3297 fromIterable(iterable, opts) { |
| 2968 let key = opts && 'key' in opts ? opts.key : null; | 3298 let key = opts && 'key' in opts ? opts.key : null; |
| 2969 let value = opts && 'value' in opts ? opts.value : null; | 3299 let value = opts && 'value' in opts ? opts.value : null; |
| 2970 let compare = opts && 'compare' in opts ? opts.compare : null; | 3300 let compare = opts && 'compare' in opts ? opts.compare : null; |
| 2971 let isValidKey = opts && 'isValidKey' in opts ? opts.isValidKey : null; | 3301 let isValidKey = opts && 'isValidKey' in opts ? opts.isValidKey : null; |
| 2972 let map = new (SplayTreeMap$(K, V))(compare, isValidKey); | 3302 let map = new (SplayTreeMap$(K, V))(compare, isValidKey); |
| 2973 Maps._fillMapWithMappedIterable(map, iterable, key, value); | 3303 Maps._fillMapWithMappedIterable(map, iterable, key, value); |
| 2974 return map; | 3304 return map; |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3045 } | 3375 } |
| 3046 if (splayCount != this[_splayCount]) { | 3376 if (splayCount != this[_splayCount]) { |
| 3047 comp = this[_splay](key); | 3377 comp = this[_splay](key); |
| 3048 dart.assert(comp != 0); | 3378 dart.assert(comp != 0); |
| 3049 } | 3379 } |
| 3050 this[_addNewRoot](new (_SplayTreeMapNode$(K, dart.dynamic))(key, value),
comp); | 3380 this[_addNewRoot](new (_SplayTreeMapNode$(K, dart.dynamic))(key, value),
comp); |
| 3051 return value; | 3381 return value; |
| 3052 } | 3382 } |
| 3053 addAll(other) { | 3383 addAll(other) { |
| 3054 dart.as(other, core.Map$(K, V)); | 3384 dart.as(other, core.Map$(K, V)); |
| 3055 other.forEach(((key, value) => { | 3385 other.forEach(dart.fn(((key, value) => { |
| 3056 dart.as(key, K); | 3386 dart.as(key, K); |
| 3057 dart.as(value, V); | 3387 dart.as(value, V); |
| 3058 this.set(key, value); | 3388 this.set(key, value); |
| 3059 }).bind(this)); | 3389 }).bind(this), dart.dynamic, [K, V])); |
| 3060 } | 3390 } |
| 3061 get isEmpty() { | 3391 get isEmpty() { |
| 3062 return this[_root] == null; | 3392 return this[_root] == null; |
| 3063 } | 3393 } |
| 3064 get isNotEmpty() { | 3394 get isNotEmpty() { |
| 3065 return !dart.notNull(this.isEmpty); | 3395 return !dart.notNull(this.isEmpty); |
| 3066 } | 3396 } |
| 3067 forEach(f) { | 3397 forEach(f) { |
| 3068 dart.as(f, dart.functionType(dart.void, [K, V])); | 3398 dart.as(f, dart.functionType(dart.void, [K, V])); |
| 3069 let nodes = new (_SplayTreeNodeIterator$(K))(this); | 3399 let nodes = new (_SplayTreeNodeIterator$(K))(this); |
| 3070 while (nodes.moveNext()) { | 3400 while (nodes.moveNext()) { |
| 3071 let node = dart.as(nodes.current, _SplayTreeMapNode$(K, V)); | 3401 let node = dart.as(nodes.current, _SplayTreeMapNode$(K, V)); |
| 3072 f(node.key, node.value); | 3402 f(node.key, node.value); |
| 3073 } | 3403 } |
| 3074 } | 3404 } |
| 3075 get length() { | 3405 get length() { |
| 3076 return this[_count]; | 3406 return this[_count]; |
| 3077 } | 3407 } |
| 3078 clear() { | 3408 clear() { |
| 3079 this[_clear](); | 3409 this[_clear](); |
| 3080 } | 3410 } |
| 3081 containsKey(key) { | 3411 containsKey(key) { |
| 3082 return dart.notNull(this[_validKey](key)) && this[_splay](dart.as(key, K
)) == 0; | 3412 return dart.notNull(this[_validKey](key)) && this[_splay](dart.as(key, K
)) == 0; |
| 3083 } | 3413 } |
| 3084 containsValue(value) { | 3414 containsValue(value) { |
| 3085 let found = false; | 3415 let found = false; |
| 3086 let initialSplayCount = this[_splayCount]; | 3416 let initialSplayCount = this[_splayCount]; |
| 3087 // Function visit: (_SplayTreeMapNode<dynamic, dynamic>) → bool | |
| 3088 let visit = (node => { | 3417 let visit = (node => { |
| 3089 while (node != null) { | 3418 while (node != null) { |
| 3090 if (dart.equals(node.value, value)) | 3419 if (dart.equals(node.value, value)) |
| 3091 return true; | 3420 return true; |
| 3092 if (initialSplayCount != this[_splayCount]) { | 3421 if (initialSplayCount != this[_splayCount]) { |
| 3093 throw new core.ConcurrentModificationError(this); | 3422 throw new core.ConcurrentModificationError(this); |
| 3094 } | 3423 } |
| 3095 if (dart.notNull(node.right != null) && dart.notNull(visit(dart.as(n
ode.right, _SplayTreeMapNode)))) | 3424 if (dart.notNull(node.right != null) && dart.notNull(visit(dart.as(n
ode.right, _SplayTreeMapNode)))) |
| 3096 return true; | 3425 return true; |
| 3097 node = dart.as(node.left, _SplayTreeMapNode); | 3426 node = dart.as(node.left, _SplayTreeMapNode); |
| 3098 } | 3427 } |
| 3099 return false; | 3428 return false; |
| 3100 }).bind(this); | 3429 }).bind(this); |
| 3430 dart.fn(visit, core.bool, [_SplayTreeMapNode]); |
| 3101 return visit(dart.as(this[_root], _SplayTreeMapNode)); | 3431 return visit(dart.as(this[_root], _SplayTreeMapNode)); |
| 3102 } | 3432 } |
| 3103 get keys() { | 3433 get keys() { |
| 3104 return new (_SplayTreeKeyIterable$(K))(this); | 3434 return new (_SplayTreeKeyIterable$(K))(this); |
| 3105 } | 3435 } |
| 3106 get values() { | 3436 get values() { |
| 3107 return new (_SplayTreeValueIterable$(K, V))(this); | 3437 return new (_SplayTreeValueIterable$(K, V))(this); |
| 3108 } | 3438 } |
| 3109 toString() { | 3439 toString() { |
| 3110 return Maps.mapToString(this); | 3440 return Maps.mapToString(this); |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3152 node = node.left; | 3482 node = node.left; |
| 3153 } | 3483 } |
| 3154 return node.key; | 3484 return node.key; |
| 3155 } | 3485 } |
| 3156 } | 3486 } |
| 3157 SplayTreeMap[dart.implements] = () => [core.Map$(K, V)]; | 3487 SplayTreeMap[dart.implements] = () => [core.Map$(K, V)]; |
| 3158 dart.defineNamedConstructor(SplayTreeMap, 'from'); | 3488 dart.defineNamedConstructor(SplayTreeMap, 'from'); |
| 3159 dart.defineNamedConstructor(SplayTreeMap, 'fromIterable'); | 3489 dart.defineNamedConstructor(SplayTreeMap, 'fromIterable'); |
| 3160 dart.defineNamedConstructor(SplayTreeMap, 'fromIterables'); | 3490 dart.defineNamedConstructor(SplayTreeMap, 'fromIterables'); |
| 3161 dart.defineNamedConstructor(SplayTreeMap, '_internal'); | 3491 dart.defineNamedConstructor(SplayTreeMap, '_internal'); |
| 3492 dart.setSignature(SplayTreeMap, { |
| 3493 methods: () => ({ |
| 3494 [_compare]: dart.functionType(core.int, [K, K]), |
| 3495 get: dart.functionType(V, [core.Object]), |
| 3496 remove: dart.functionType(V, [core.Object]), |
| 3497 set: dart.functionType(dart.void, [K, V]), |
| 3498 putIfAbsent: dart.functionType(V, [K, dart.functionType(V, [])]), |
| 3499 addAll: dart.functionType(dart.void, [core.Map$(K, V)]), |
| 3500 forEach: dart.functionType(dart.void, [dart.functionType(dart.void, [K,
V])]), |
| 3501 clear: dart.functionType(dart.void, []), |
| 3502 containsKey: dart.functionType(core.bool, [core.Object]), |
| 3503 containsValue: dart.functionType(core.bool, [core.Object]), |
| 3504 toString: dart.functionType(core.String, []), |
| 3505 firstKey: dart.functionType(K, []), |
| 3506 lastKey: dart.functionType(K, []), |
| 3507 lastKeyBefore: dart.functionType(K, [K]), |
| 3508 firstKeyAfter: dart.functionType(K, [K]) |
| 3509 }) |
| 3510 }); |
| 3162 return SplayTreeMap; | 3511 return SplayTreeMap; |
| 3163 }); | 3512 }); |
| 3164 let SplayTreeMap = SplayTreeMap$(); | 3513 let SplayTreeMap = SplayTreeMap$(); |
| 3165 let _workList = Symbol('_workList'); | 3514 let _workList = Symbol('_workList'); |
| 3166 let _tree = Symbol('_tree'); | 3515 let _tree = Symbol('_tree'); |
| 3167 let _currentNode = Symbol('_currentNode'); | 3516 let _currentNode = Symbol('_currentNode'); |
| 3168 let _findLeftMostDescendent = Symbol('_findLeftMostDescendent'); | 3517 let _findLeftMostDescendent = Symbol('_findLeftMostDescendent'); |
| 3169 let _getValue = Symbol('_getValue'); | 3518 let _getValue = Symbol('_getValue'); |
| 3170 let _rebuildWorkList = Symbol('_rebuildWorkList'); | 3519 let _rebuildWorkList = Symbol('_rebuildWorkList'); |
| 3171 let _SplayTreeIterator$ = dart.generic(function(T) { | 3520 let _SplayTreeIterator$ = dart.generic(function(T) { |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3227 if (this[_tree][_splayCount] != this[_splayCount] && dart.notNull(this[_
currentNode] != null)) { | 3576 if (this[_tree][_splayCount] != this[_splayCount] && dart.notNull(this[_
currentNode] != null)) { |
| 3228 this[_rebuildWorkList](this[_currentNode]); | 3577 this[_rebuildWorkList](this[_currentNode]); |
| 3229 } | 3578 } |
| 3230 this[_currentNode] = this[_workList][core.$removeLast](); | 3579 this[_currentNode] = this[_workList][core.$removeLast](); |
| 3231 this[_findLeftMostDescendent](this[_currentNode].right); | 3580 this[_findLeftMostDescendent](this[_currentNode].right); |
| 3232 return true; | 3581 return true; |
| 3233 } | 3582 } |
| 3234 } | 3583 } |
| 3235 _SplayTreeIterator[dart.implements] = () => [core.Iterator$(T)]; | 3584 _SplayTreeIterator[dart.implements] = () => [core.Iterator$(T)]; |
| 3236 dart.defineNamedConstructor(_SplayTreeIterator, 'startAt'); | 3585 dart.defineNamedConstructor(_SplayTreeIterator, 'startAt'); |
| 3586 dart.setSignature(_SplayTreeIterator, { |
| 3587 methods: () => ({ |
| 3588 [_findLeftMostDescendent]: dart.functionType(dart.void, [_SplayTreeNode]
), |
| 3589 [_rebuildWorkList]: dart.functionType(dart.void, [_SplayTreeNode]), |
| 3590 moveNext: dart.functionType(core.bool, []) |
| 3591 }) |
| 3592 }); |
| 3237 return _SplayTreeIterator; | 3593 return _SplayTreeIterator; |
| 3238 }); | 3594 }); |
| 3239 let _SplayTreeIterator = _SplayTreeIterator$(); | 3595 let _SplayTreeIterator = _SplayTreeIterator$(); |
| 3240 let _copyNode = Symbol('_copyNode'); | 3596 let _copyNode = Symbol('_copyNode'); |
| 3241 let _SplayTreeKeyIterable$ = dart.generic(function(K) { | 3597 let _SplayTreeKeyIterable$ = dart.generic(function(K) { |
| 3242 class _SplayTreeKeyIterable extends IterableBase$(K) { | 3598 class _SplayTreeKeyIterable extends IterableBase$(K) { |
| 3243 _SplayTreeKeyIterable(tree) { | 3599 _SplayTreeKeyIterable(tree) { |
| 3244 this[_tree] = tree; | 3600 this[_tree] = tree; |
| 3245 super.IterableBase(); | 3601 super.IterableBase(); |
| 3246 } | 3602 } |
| 3247 get [core.$length]() { | 3603 get [core.$length]() { |
| 3248 return this[_tree][_count]; | 3604 return this[_tree][_count]; |
| 3249 } | 3605 } |
| 3250 get [core.$isEmpty]() { | 3606 get [core.$isEmpty]() { |
| 3251 return this[_tree][_count] == 0; | 3607 return this[_tree][_count] == 0; |
| 3252 } | 3608 } |
| 3253 get [core.$iterator]() { | 3609 get [core.$iterator]() { |
| 3254 return new (_SplayTreeKeyIterator$(K))(this[_tree]); | 3610 return new (_SplayTreeKeyIterator$(K))(this[_tree]); |
| 3255 } | 3611 } |
| 3256 [core.$toSet]() { | 3612 [core.$toSet]() { |
| 3257 let setOrMap = this[_tree]; | 3613 let setOrMap = this[_tree]; |
| 3258 let set = new (SplayTreeSet$(K))(dart.as(setOrMap[_comparator], __CastTy
pe0), dart.as(setOrMap[_validKey], __CastType3)); | 3614 let set = new (SplayTreeSet$(K))(dart.as(setOrMap[_comparator], __CastTy
pe0), dart.as(setOrMap[_validKey], __CastType3)); |
| 3259 set[_count] = this[_tree][_count]; | 3615 set[_count] = this[_tree][_count]; |
| 3260 set[_root] = set[_copyNode](this[_tree][_root]); | 3616 set[_root] = set[_copyNode](this[_tree][_root]); |
| 3261 return set; | 3617 return set; |
| 3262 } | 3618 } |
| 3263 } | 3619 } |
| 3264 _SplayTreeKeyIterable[dart.implements] = () => [_internal.EfficientLength]; | 3620 _SplayTreeKeyIterable[dart.implements] = () => [_internal.EfficientLength]; |
| 3621 dart.setSignature(_SplayTreeKeyIterable, { |
| 3622 methods: () => ({[core.$toSet]: dart.functionType(core.Set$(K), [])}) |
| 3623 }); |
| 3265 return _SplayTreeKeyIterable; | 3624 return _SplayTreeKeyIterable; |
| 3266 }); | 3625 }); |
| 3267 let _SplayTreeKeyIterable = _SplayTreeKeyIterable$(); | 3626 let _SplayTreeKeyIterable = _SplayTreeKeyIterable$(); |
| 3268 let _SplayTreeValueIterable$ = dart.generic(function(K, V) { | 3627 let _SplayTreeValueIterable$ = dart.generic(function(K, V) { |
| 3269 class _SplayTreeValueIterable extends IterableBase$(V) { | 3628 class _SplayTreeValueIterable extends IterableBase$(V) { |
| 3270 _SplayTreeValueIterable(map) { | 3629 _SplayTreeValueIterable(map) { |
| 3271 this[_map] = map; | 3630 this[_map] = map; |
| 3272 super.IterableBase(); | 3631 super.IterableBase(); |
| 3273 } | 3632 } |
| 3274 get [core.$length]() { | 3633 get [core.$length]() { |
| 3275 return this[_map][_count]; | 3634 return this[_map][_count]; |
| 3276 } | 3635 } |
| 3277 get [core.$isEmpty]() { | 3636 get [core.$isEmpty]() { |
| 3278 return this[_map][_count] == 0; | 3637 return this[_map][_count] == 0; |
| 3279 } | 3638 } |
| 3280 get [core.$iterator]() { | 3639 get [core.$iterator]() { |
| 3281 return new (_SplayTreeValueIterator$(K, V))(this[_map]); | 3640 return new (_SplayTreeValueIterator$(K, V))(this[_map]); |
| 3282 } | 3641 } |
| 3283 } | 3642 } |
| 3284 _SplayTreeValueIterable[dart.implements] = () => [_internal.EfficientLength]
; | 3643 _SplayTreeValueIterable[dart.implements] = () => [_internal.EfficientLength]
; |
| 3644 dart.setSignature(_SplayTreeValueIterable, {}); |
| 3285 return _SplayTreeValueIterable; | 3645 return _SplayTreeValueIterable; |
| 3286 }); | 3646 }); |
| 3287 let _SplayTreeValueIterable = _SplayTreeValueIterable$(); | 3647 let _SplayTreeValueIterable = _SplayTreeValueIterable$(); |
| 3288 let _SplayTreeKeyIterator$ = dart.generic(function(K) { | 3648 let _SplayTreeKeyIterator$ = dart.generic(function(K) { |
| 3289 class _SplayTreeKeyIterator extends _SplayTreeIterator$(K) { | 3649 class _SplayTreeKeyIterator extends _SplayTreeIterator$(K) { |
| 3290 _SplayTreeKeyIterator(map) { | 3650 _SplayTreeKeyIterator(map) { |
| 3291 super._SplayTreeIterator(map); | 3651 super._SplayTreeIterator(map); |
| 3292 } | 3652 } |
| 3293 [_getValue](node) { | 3653 [_getValue](node) { |
| 3294 return dart.as(node.key, K); | 3654 return dart.as(node.key, K); |
| 3295 } | 3655 } |
| 3296 } | 3656 } |
| 3657 dart.setSignature(_SplayTreeKeyIterator, { |
| 3658 methods: () => ({[_getValue]: dart.functionType(K, [_SplayTreeNode])}) |
| 3659 }); |
| 3297 return _SplayTreeKeyIterator; | 3660 return _SplayTreeKeyIterator; |
| 3298 }); | 3661 }); |
| 3299 let _SplayTreeKeyIterator = _SplayTreeKeyIterator$(); | 3662 let _SplayTreeKeyIterator = _SplayTreeKeyIterator$(); |
| 3300 let _SplayTreeValueIterator$ = dart.generic(function(K, V) { | 3663 let _SplayTreeValueIterator$ = dart.generic(function(K, V) { |
| 3301 class _SplayTreeValueIterator extends _SplayTreeIterator$(V) { | 3664 class _SplayTreeValueIterator extends _SplayTreeIterator$(V) { |
| 3302 _SplayTreeValueIterator(map) { | 3665 _SplayTreeValueIterator(map) { |
| 3303 super._SplayTreeIterator(map); | 3666 super._SplayTreeIterator(map); |
| 3304 } | 3667 } |
| 3305 [_getValue](node) { | 3668 [_getValue](node) { |
| 3306 return dart.as(node.value, V); | 3669 return dart.as(node.value, V); |
| 3307 } | 3670 } |
| 3308 } | 3671 } |
| 3672 dart.setSignature(_SplayTreeValueIterator, { |
| 3673 methods: () => ({[_getValue]: dart.functionType(V, [_SplayTreeMapNode])}) |
| 3674 }); |
| 3309 return _SplayTreeValueIterator; | 3675 return _SplayTreeValueIterator; |
| 3310 }); | 3676 }); |
| 3311 let _SplayTreeValueIterator = _SplayTreeValueIterator$(); | 3677 let _SplayTreeValueIterator = _SplayTreeValueIterator$(); |
| 3312 let _SplayTreeNodeIterator$ = dart.generic(function(K) { | 3678 let _SplayTreeNodeIterator$ = dart.generic(function(K) { |
| 3313 class _SplayTreeNodeIterator extends _SplayTreeIterator$(_SplayTreeNode$(K))
{ | 3679 class _SplayTreeNodeIterator extends _SplayTreeIterator$(_SplayTreeNode$(K))
{ |
| 3314 _SplayTreeNodeIterator(tree) { | 3680 _SplayTreeNodeIterator(tree) { |
| 3315 super._SplayTreeIterator(tree); | 3681 super._SplayTreeIterator(tree); |
| 3316 } | 3682 } |
| 3317 startAt(tree, startKey) { | 3683 startAt(tree, startKey) { |
| 3318 super.startAt(tree, startKey); | 3684 super.startAt(tree, startKey); |
| 3319 } | 3685 } |
| 3320 [_getValue](node) { | 3686 [_getValue](node) { |
| 3321 return dart.as(node, _SplayTreeNode$(K)); | 3687 return dart.as(node, _SplayTreeNode$(K)); |
| 3322 } | 3688 } |
| 3323 } | 3689 } |
| 3324 dart.defineNamedConstructor(_SplayTreeNodeIterator, 'startAt'); | 3690 dart.defineNamedConstructor(_SplayTreeNodeIterator, 'startAt'); |
| 3691 dart.setSignature(_SplayTreeNodeIterator, { |
| 3692 methods: () => ({[_getValue]: dart.functionType(_SplayTreeNode$(K), [_Spla
yTreeNode])}) |
| 3693 }); |
| 3325 return _SplayTreeNodeIterator; | 3694 return _SplayTreeNodeIterator; |
| 3326 }); | 3695 }); |
| 3327 let _SplayTreeNodeIterator = _SplayTreeNodeIterator$(); | 3696 let _SplayTreeNodeIterator = _SplayTreeNodeIterator$(); |
| 3328 let _clone = Symbol('_clone'); | 3697 let _clone = Symbol('_clone'); |
| 3329 let SplayTreeSet$ = dart.generic(function(E) { | 3698 let SplayTreeSet$ = dart.generic(function(E) { |
| 3330 class SplayTreeSet extends dart.mixin(_SplayTree$(E), IterableMixin$(E), Set
Mixin$(E)) { | 3699 class SplayTreeSet extends dart.mixin(_SplayTree$(E), IterableMixin$(E), Set
Mixin$(E)) { |
| 3331 SplayTreeSet(compare, isValidKey) { | 3700 SplayTreeSet(compare, isValidKey) { |
| 3332 if (compare === void 0) | 3701 if (compare === void 0) |
| 3333 compare = null; | 3702 compare = null; |
| 3334 if (isValidKey === void 0) | 3703 if (isValidKey === void 0) |
| 3335 isValidKey = null; | 3704 isValidKey = null; |
| 3336 this[_comparator] = dart.as(compare == null ? dart.bind(core.Comparable,
'compare') : compare, core.Comparator$(E)); | 3705 this[_comparator] = dart.as(compare == null ? dart.bind(core.Comparable,
'compare') : compare, core.Comparator$(E)); |
| 3337 this[_validKey] = isValidKey != null ? isValidKey : v => dart.is(v, E); | 3706 this[_validKey] = isValidKey != null ? isValidKey : dart.fn(v => dart.is
(v, E), core.bool, [dart.dynamic]); |
| 3338 super._SplayTree(); | 3707 super._SplayTree(); |
| 3339 } | 3708 } |
| 3340 from(elements, compare, isValidKey) { | 3709 from(elements, compare, isValidKey) { |
| 3341 if (compare === void 0) | 3710 if (compare === void 0) |
| 3342 compare = null; | 3711 compare = null; |
| 3343 if (isValidKey === void 0) | 3712 if (isValidKey === void 0) |
| 3344 isValidKey = null; | 3713 isValidKey = null; |
| 3345 let result = new (SplayTreeSet$(E))(compare, isValidKey); | 3714 let result = new (SplayTreeSet$(E))(compare, isValidKey); |
| 3346 for (let element of dart.as(elements, core.Iterable$(E))) { | 3715 for (let element of dart.as(elements, core.Iterable$(E))) { |
| 3347 result.add(element); | 3716 result.add(element); |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3478 this[_clear](); | 3847 this[_clear](); |
| 3479 } | 3848 } |
| 3480 [core.$toSet]() { | 3849 [core.$toSet]() { |
| 3481 return this[_clone](); | 3850 return this[_clone](); |
| 3482 } | 3851 } |
| 3483 toString() { | 3852 toString() { |
| 3484 return IterableBase.iterableToFullString(this, '{', '}'); | 3853 return IterableBase.iterableToFullString(this, '{', '}'); |
| 3485 } | 3854 } |
| 3486 } | 3855 } |
| 3487 dart.defineNamedConstructor(SplayTreeSet, 'from'); | 3856 dart.defineNamedConstructor(SplayTreeSet, 'from'); |
| 3857 dart.setSignature(SplayTreeSet, { |
| 3858 methods: () => ({ |
| 3859 [_compare]: dart.functionType(core.int, [E, E]), |
| 3860 [core.$contains]: dart.functionType(core.bool, [core.Object]), |
| 3861 add: dart.functionType(core.bool, [E]), |
| 3862 remove: dart.functionType(core.bool, [core.Object]), |
| 3863 addAll: dart.functionType(dart.void, [core.Iterable$(E)]), |
| 3864 removeAll: dart.functionType(dart.void, [core.Iterable$(core.Object)]), |
| 3865 retainAll: dart.functionType(dart.void, [core.Iterable$(core.Object)]), |
| 3866 lookup: dart.functionType(E, [core.Object]), |
| 3867 intersection: dart.functionType(core.Set$(E), [core.Set$(core.Object)]), |
| 3868 difference: dart.functionType(core.Set$(E), [core.Set$(core.Object)]), |
| 3869 union: dart.functionType(core.Set$(E), [core.Set$(E)]), |
| 3870 [_clone]: dart.functionType(SplayTreeSet$(E), []), |
| 3871 [_copyNode]: dart.functionType(_SplayTreeNode$(E), [_SplayTreeNode$(E)])
, |
| 3872 clear: dart.functionType(dart.void, []), |
| 3873 [core.$toSet]: dart.functionType(core.Set$(E), []), |
| 3874 toString: dart.functionType(core.String, []) |
| 3875 }) |
| 3876 }); |
| 3488 return SplayTreeSet; | 3877 return SplayTreeSet; |
| 3489 }); | 3878 }); |
| 3490 let SplayTreeSet = SplayTreeSet$(); | 3879 let SplayTreeSet = SplayTreeSet$(); |
| 3491 let __CastType0$ = dart.generic(function(K) { | 3880 let __CastType0$ = dart.generic(function(K) { |
| 3492 let __CastType0 = dart.typedef('__CastType0', () => dart.functionType(core.i
nt, [K, K])); | 3881 let __CastType0 = dart.typedef('__CastType0', () => dart.functionType(core.i
nt, [K, K])); |
| 3493 return __CastType0; | 3882 return __CastType0; |
| 3494 }); | 3883 }); |
| 3495 let __CastType0 = __CastType0$(); | 3884 let __CastType0 = __CastType0$(); |
| 3496 let __CastType3 = dart.typedef('__CastType3', () => dart.functionType(core.boo
l, [core.Object])); | 3885 let __CastType3 = dart.typedef('__CastType3', () => dart.functionType(core.boo
l, [core.Object])); |
| 3497 let _strings = Symbol('_strings'); | 3886 let _strings = Symbol('_strings'); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 3521 get isEmpty() { | 3910 get isEmpty() { |
| 3522 return this[_length] == 0; | 3911 return this[_length] == 0; |
| 3523 } | 3912 } |
| 3524 get isNotEmpty() { | 3913 get isNotEmpty() { |
| 3525 return !dart.notNull(this.isEmpty); | 3914 return !dart.notNull(this.isEmpty); |
| 3526 } | 3915 } |
| 3527 get keys() { | 3916 get keys() { |
| 3528 return new (HashMapKeyIterable$(K))(this); | 3917 return new (HashMapKeyIterable$(K))(this); |
| 3529 } | 3918 } |
| 3530 get values() { | 3919 get values() { |
| 3531 return new (_internal.MappedIterable$(K, V))(this.keys, (each => this.ge
t(each)).bind(this)); | 3920 return new (_internal.MappedIterable$(K, V))(this.keys, dart.fn((each =>
this.get(each)).bind(this), V, [dart.dynamic])); |
| 3532 } | 3921 } |
| 3533 containsKey(key) { | 3922 containsKey(key) { |
| 3534 if (_HashMap$()._isStringKey(key)) { | 3923 if (_HashMap$()._isStringKey(key)) { |
| 3535 let strings = this[_strings]; | 3924 let strings = this[_strings]; |
| 3536 return strings == null ? false : _HashMap$()._hasTableEntry(strings, k
ey); | 3925 return strings == null ? false : _HashMap$()._hasTableEntry(strings, k
ey); |
| 3537 } else if (_HashMap$()._isNumericKey(key)) { | 3926 } else if (_HashMap$()._isNumericKey(key)) { |
| 3538 let nums = this[_nums]; | 3927 let nums = this[_nums]; |
| 3539 return nums == null ? false : _HashMap$()._hasTableEntry(nums, key); | 3928 return nums == null ? false : _HashMap$()._hasTableEntry(nums, key); |
| 3540 } else { | 3929 } else { |
| 3541 return this[_containsKey](key); | 3930 return this[_containsKey](key); |
| 3542 } | 3931 } |
| 3543 } | 3932 } |
| 3544 [_containsKey](key) { | 3933 [_containsKey](key) { |
| 3545 let rest = this[_rest]; | 3934 let rest = this[_rest]; |
| 3546 if (rest == null) | 3935 if (rest == null) |
| 3547 return false; | 3936 return false; |
| 3548 let bucket = this[_getBucket](rest, key); | 3937 let bucket = this[_getBucket](rest, key); |
| 3549 return dart.notNull(this[_findBucketIndex](bucket, key)) >= 0; | 3938 return dart.notNull(this[_findBucketIndex](bucket, key)) >= 0; |
| 3550 } | 3939 } |
| 3551 containsValue(value) { | 3940 containsValue(value) { |
| 3552 return this[_computeKeys]()[core.$any]((each => dart.equals(this.get(eac
h), value)).bind(this)); | 3941 return this[_computeKeys]()[core.$any](dart.fn((each => dart.equals(this
.get(each), value)).bind(this), core.bool, [dart.dynamic])); |
| 3553 } | 3942 } |
| 3554 addAll(other) { | 3943 addAll(other) { |
| 3555 dart.as(other, core.Map$(K, V)); | 3944 dart.as(other, core.Map$(K, V)); |
| 3556 other.forEach(((key, value) => { | 3945 other.forEach(dart.fn(((key, value) => { |
| 3557 dart.as(key, K); | 3946 dart.as(key, K); |
| 3558 dart.as(value, V); | 3947 dart.as(value, V); |
| 3559 this.set(key, value); | 3948 this.set(key, value); |
| 3560 }).bind(this)); | 3949 }).bind(this), dart.dynamic, [K, V])); |
| 3561 } | 3950 } |
| 3562 get(key) { | 3951 get(key) { |
| 3563 if (_HashMap$()._isStringKey(key)) { | 3952 if (_HashMap$()._isStringKey(key)) { |
| 3564 let strings = this[_strings]; | 3953 let strings = this[_strings]; |
| 3565 return strings == null ? null : dart.as(_HashMap$()._getTableEntry(str
ings, key), V); | 3954 return strings == null ? null : dart.as(_HashMap$()._getTableEntry(str
ings, key), V); |
| 3566 } else if (_HashMap$()._isNumericKey(key)) { | 3955 } else if (_HashMap$()._isNumericKey(key)) { |
| 3567 let nums = this[_nums]; | 3956 let nums = this[_nums]; |
| 3568 return nums == null ? null : dart.as(_HashMap$()._getTableEntry(nums,
key), V); | 3957 return nums == null ? null : dart.as(_HashMap$()._getTableEntry(nums,
key), V); |
| 3569 } else { | 3958 } else { |
| 3570 return this[_get](key); | 3959 return this[_get](key); |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3771 } | 4160 } |
| 3772 static _newHashTable() { | 4161 static _newHashTable() { |
| 3773 let table = Object.create(null); | 4162 let table = Object.create(null); |
| 3774 let temporaryKey = '<non-identifier-key>'; | 4163 let temporaryKey = '<non-identifier-key>'; |
| 3775 _HashMap$()._setTableEntry(table, temporaryKey, table); | 4164 _HashMap$()._setTableEntry(table, temporaryKey, table); |
| 3776 _HashMap$()._deleteTableEntry(table, temporaryKey); | 4165 _HashMap$()._deleteTableEntry(table, temporaryKey); |
| 3777 return table; | 4166 return table; |
| 3778 } | 4167 } |
| 3779 } | 4168 } |
| 3780 _HashMap[dart.implements] = () => [HashMap$(K, V)]; | 4169 _HashMap[dart.implements] = () => [HashMap$(K, V)]; |
| 4170 dart.setSignature(_HashMap, { |
| 4171 methods: () => ({ |
| 4172 containsKey: dart.functionType(core.bool, [core.Object]), |
| 4173 [_containsKey]: dart.functionType(core.bool, [core.Object]), |
| 4174 containsValue: dart.functionType(core.bool, [core.Object]), |
| 4175 addAll: dart.functionType(dart.void, [core.Map$(K, V)]), |
| 4176 get: dart.functionType(V, [core.Object]), |
| 4177 [_get]: dart.functionType(V, [core.Object]), |
| 4178 set: dart.functionType(dart.void, [K, V]), |
| 4179 [_set]: dart.functionType(dart.void, [K, V]), |
| 4180 putIfAbsent: dart.functionType(V, [K, dart.functionType(V, [])]), |
| 4181 remove: dart.functionType(V, [core.Object]), |
| 4182 [_remove]: dart.functionType(V, [core.Object]), |
| 4183 clear: dart.functionType(dart.void, []), |
| 4184 forEach: dart.functionType(dart.void, [dart.functionType(dart.void, [K,
V])]), |
| 4185 [_computeKeys]: dart.functionType(core.List, []), |
| 4186 [_addHashTableEntry]: dart.functionType(dart.void, [dart.dynamic, K, V])
, |
| 4187 [_removeHashTableEntry]: dart.functionType(V, [dart.dynamic, core.Object
]), |
| 4188 [_computeHashCode]: dart.functionType(core.int, [dart.dynamic]), |
| 4189 [_getBucket]: dart.functionType(core.List, [dart.dynamic, dart.dynamic])
, |
| 4190 [_findBucketIndex]: dart.functionType(core.int, [dart.dynamic, dart.dyna
mic]) |
| 4191 }), |
| 4192 statics: () => ({ |
| 4193 _isStringKey: dart.functionType(core.bool, [dart.dynamic]), |
| 4194 _isNumericKey: dart.functionType(core.bool, [dart.dynamic]), |
| 4195 _hasTableEntry: dart.functionType(core.bool, [dart.dynamic, dart.dynamic
]), |
| 4196 _getTableEntry: dart.functionType(dart.dynamic, [dart.dynamic, dart.dyna
mic]), |
| 4197 _setTableEntry: dart.functionType(dart.void, [dart.dynamic, dart.dynamic
, dart.dynamic]), |
| 4198 _deleteTableEntry: dart.functionType(dart.void, [dart.dynamic, dart.dyna
mic]), |
| 4199 _newHashTable: dart.functionType(dart.dynamic, []) |
| 4200 }), |
| 4201 names: ['_isStringKey', '_isNumericKey', '_hasTableEntry', '_getTableEntry
', '_setTableEntry', '_deleteTableEntry', '_newHashTable'] |
| 4202 }); |
| 3781 return _HashMap; | 4203 return _HashMap; |
| 3782 }); | 4204 }); |
| 3783 let _HashMap = _HashMap$(); | 4205 let _HashMap = _HashMap$(); |
| 3784 let _IdentityHashMap$ = dart.generic(function(K, V) { | 4206 let _IdentityHashMap$ = dart.generic(function(K, V) { |
| 3785 class _IdentityHashMap extends _HashMap$(K, V) { | 4207 class _IdentityHashMap extends _HashMap$(K, V) { |
| 3786 _IdentityHashMap() { | 4208 _IdentityHashMap() { |
| 3787 super._HashMap(); | 4209 super._HashMap(); |
| 3788 } | 4210 } |
| 3789 [_computeHashCode](key) { | 4211 [_computeHashCode](key) { |
| 3790 return core.identityHashCode(key) & 0x3ffffff; | 4212 return core.identityHashCode(key) & 0x3ffffff; |
| 3791 } | 4213 } |
| 3792 [_findBucketIndex](bucket, key) { | 4214 [_findBucketIndex](bucket, key) { |
| 3793 if (bucket == null) | 4215 if (bucket == null) |
| 3794 return -1; | 4216 return -1; |
| 3795 let length = bucket.length; | 4217 let length = bucket.length; |
| 3796 for (let i = 0; dart.notNull(i) < dart.notNull(length); i = dart.notNull
(i) + 2) { | 4218 for (let i = 0; dart.notNull(i) < dart.notNull(length); i = dart.notNull
(i) + 2) { |
| 3797 if (core.identical(bucket[i], key)) | 4219 if (core.identical(bucket[i], key)) |
| 3798 return i; | 4220 return i; |
| 3799 } | 4221 } |
| 3800 return -1; | 4222 return -1; |
| 3801 } | 4223 } |
| 3802 } | 4224 } |
| 4225 dart.setSignature(_IdentityHashMap, { |
| 4226 methods: () => ({ |
| 4227 [_computeHashCode]: dart.functionType(core.int, [dart.dynamic]), |
| 4228 [_findBucketIndex]: dart.functionType(core.int, [dart.dynamic, dart.dyna
mic]) |
| 4229 }) |
| 4230 }); |
| 3803 return _IdentityHashMap; | 4231 return _IdentityHashMap; |
| 3804 }); | 4232 }); |
| 3805 let _IdentityHashMap = _IdentityHashMap$(); | 4233 let _IdentityHashMap = _IdentityHashMap$(); |
| 3806 let _equals = Symbol('_equals'); | 4234 let _equals = Symbol('_equals'); |
| 3807 let _hashCode = Symbol('_hashCode'); | 4235 let _hashCode = Symbol('_hashCode'); |
| 3808 let _CustomHashMap$ = dart.generic(function(K, V) { | 4236 let _CustomHashMap$ = dart.generic(function(K, V) { |
| 3809 class _CustomHashMap extends _HashMap$(K, V) { | 4237 class _CustomHashMap extends _HashMap$(K, V) { |
| 3810 _CustomHashMap(equals, hashCode, validKey) { | 4238 _CustomHashMap(equals, hashCode, validKey) { |
| 3811 this[_equals] = equals; | 4239 this[_equals] = equals; |
| 3812 this[_hashCode] = hashCode; | 4240 this[_hashCode] = hashCode; |
| 3813 this[_validKey] = validKey != null ? validKey : v => dart.is(v, K); | 4241 this[_validKey] = validKey != null ? validKey : dart.fn(v => dart.is(v,
K), core.bool, [dart.dynamic]); |
| 3814 super._HashMap(); | 4242 super._HashMap(); |
| 3815 } | 4243 } |
| 3816 get(key) { | 4244 get(key) { |
| 3817 if (!dart.notNull(this[_validKey](key))) | 4245 if (!dart.notNull(this[_validKey](key))) |
| 3818 return null; | 4246 return null; |
| 3819 return super[_get](key); | 4247 return super[_get](key); |
| 3820 } | 4248 } |
| 3821 set(key, value) { | 4249 set(key, value) { |
| 3822 dart.as(key, K); | 4250 dart.as(key, K); |
| 3823 dart.as(value, V); | 4251 dart.as(value, V); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 3843 for (let i = 0; dart.notNull(i) < dart.notNull(length); i = dart.notNull
(i) + 2) { | 4271 for (let i = 0; dart.notNull(i) < dart.notNull(length); i = dart.notNull
(i) + 2) { |
| 3844 if (this[_equals](dart.as(bucket[i], K), dart.as(key, K))) | 4272 if (this[_equals](dart.as(bucket[i], K), dart.as(key, K))) |
| 3845 return i; | 4273 return i; |
| 3846 } | 4274 } |
| 3847 return -1; | 4275 return -1; |
| 3848 } | 4276 } |
| 3849 toString() { | 4277 toString() { |
| 3850 return Maps.mapToString(this); | 4278 return Maps.mapToString(this); |
| 3851 } | 4279 } |
| 3852 } | 4280 } |
| 4281 dart.setSignature(_CustomHashMap, { |
| 4282 methods: () => ({ |
| 4283 get: dart.functionType(V, [core.Object]), |
| 4284 set: dart.functionType(dart.void, [K, V]), |
| 4285 containsKey: dart.functionType(core.bool, [core.Object]), |
| 4286 remove: dart.functionType(V, [core.Object]), |
| 4287 [_computeHashCode]: dart.functionType(core.int, [dart.dynamic]), |
| 4288 [_findBucketIndex]: dart.functionType(core.int, [dart.dynamic, dart.dyna
mic]), |
| 4289 toString: dart.functionType(core.String, []) |
| 4290 }) |
| 4291 }); |
| 3853 return _CustomHashMap; | 4292 return _CustomHashMap; |
| 3854 }); | 4293 }); |
| 3855 let _CustomHashMap = _CustomHashMap$(); | 4294 let _CustomHashMap = _CustomHashMap$(); |
| 3856 let HashMapKeyIterable$ = dart.generic(function(E) { | 4295 let HashMapKeyIterable$ = dart.generic(function(E) { |
| 3857 class HashMapKeyIterable extends IterableBase$(E) { | 4296 class HashMapKeyIterable extends IterableBase$(E) { |
| 3858 HashMapKeyIterable(map) { | 4297 HashMapKeyIterable(map) { |
| 3859 this[_map] = map; | 4298 this[_map] = map; |
| 3860 super.IterableBase(); | 4299 super.IterableBase(); |
| 3861 } | 4300 } |
| 3862 get [core.$length]() { | 4301 get [core.$length]() { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 3876 let keys = dart.as(dart.dsend(this[_map], _computeKeys), core.List); | 4315 let keys = dart.as(dart.dsend(this[_map], _computeKeys), core.List); |
| 3877 for (let i = 0, length = keys.length; dart.notNull(i) < dart.notNull(len
gth); i = dart.notNull(i) + 1) { | 4316 for (let i = 0, length = keys.length; dart.notNull(i) < dart.notNull(len
gth); i = dart.notNull(i) + 1) { |
| 3878 f(dart.as(keys[i], E)); | 4317 f(dart.as(keys[i], E)); |
| 3879 if (keys !== dart.dload(this[_map], _keys)) { | 4318 if (keys !== dart.dload(this[_map], _keys)) { |
| 3880 throw new core.ConcurrentModificationError(this[_map]); | 4319 throw new core.ConcurrentModificationError(this[_map]); |
| 3881 } | 4320 } |
| 3882 } | 4321 } |
| 3883 } | 4322 } |
| 3884 } | 4323 } |
| 3885 HashMapKeyIterable[dart.implements] = () => [_internal.EfficientLength]; | 4324 HashMapKeyIterable[dart.implements] = () => [_internal.EfficientLength]; |
| 4325 dart.setSignature(HashMapKeyIterable, { |
| 4326 methods: () => ({ |
| 4327 [core.$contains]: dart.functionType(core.bool, [core.Object]), |
| 4328 [core.$forEach]: dart.functionType(dart.void, [dart.functionType(dart.vo
id, [E])]) |
| 4329 }) |
| 4330 }); |
| 3886 return HashMapKeyIterable; | 4331 return HashMapKeyIterable; |
| 3887 }); | 4332 }); |
| 3888 let HashMapKeyIterable = HashMapKeyIterable$(); | 4333 let HashMapKeyIterable = HashMapKeyIterable$(); |
| 3889 let _offset = Symbol('_offset'); | 4334 let _offset = Symbol('_offset'); |
| 3890 let HashMapKeyIterator$ = dart.generic(function(E) { | 4335 let HashMapKeyIterator$ = dart.generic(function(E) { |
| 3891 class HashMapKeyIterator extends core.Object { | 4336 class HashMapKeyIterator extends core.Object { |
| 3892 HashMapKeyIterator(map, keys) { | 4337 HashMapKeyIterator(map, keys) { |
| 3893 this[_map] = map; | 4338 this[_map] = map; |
| 3894 this[_keys] = keys; | 4339 this[_keys] = keys; |
| 3895 this[_offset] = 0; | 4340 this[_offset] = 0; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 3907 this[_current] = null; | 4352 this[_current] = null; |
| 3908 return false; | 4353 return false; |
| 3909 } else { | 4354 } else { |
| 3910 this[_current] = dart.as(keys[offset], E); | 4355 this[_current] = dart.as(keys[offset], E); |
| 3911 this[_offset] = dart.notNull(offset) + 1; | 4356 this[_offset] = dart.notNull(offset) + 1; |
| 3912 return true; | 4357 return true; |
| 3913 } | 4358 } |
| 3914 } | 4359 } |
| 3915 } | 4360 } |
| 3916 HashMapKeyIterator[dart.implements] = () => [core.Iterator$(E)]; | 4361 HashMapKeyIterator[dart.implements] = () => [core.Iterator$(E)]; |
| 4362 dart.setSignature(HashMapKeyIterator, { |
| 4363 methods: () => ({moveNext: dart.functionType(core.bool, [])}) |
| 4364 }); |
| 3917 return HashMapKeyIterator; | 4365 return HashMapKeyIterator; |
| 3918 }); | 4366 }); |
| 3919 let HashMapKeyIterator = HashMapKeyIterator$(); | 4367 let HashMapKeyIterator = HashMapKeyIterator$(); |
| 3920 let _modifications = Symbol('_modifications'); | 4368 let _modifications = Symbol('_modifications'); |
| 3921 let _value = Symbol('_value'); | 4369 let _value = Symbol('_value'); |
| 3922 let _newLinkedCell = Symbol('_newLinkedCell'); | 4370 let _newLinkedCell = Symbol('_newLinkedCell'); |
| 3923 let _unlinkCell = Symbol('_unlinkCell'); | 4371 let _unlinkCell = Symbol('_unlinkCell'); |
| 3924 let _modified = Symbol('_modified'); | 4372 let _modified = Symbol('_modified'); |
| 3925 let _key = Symbol('_key'); | 4373 let _key = Symbol('_key'); |
| 3926 let _LinkedHashMap$ = dart.generic(function(K, V) { | 4374 let _LinkedHashMap$ = dart.generic(function(K, V) { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 3940 get isEmpty() { | 4388 get isEmpty() { |
| 3941 return this[_length] == 0; | 4389 return this[_length] == 0; |
| 3942 } | 4390 } |
| 3943 get isNotEmpty() { | 4391 get isNotEmpty() { |
| 3944 return !dart.notNull(this.isEmpty); | 4392 return !dart.notNull(this.isEmpty); |
| 3945 } | 4393 } |
| 3946 get keys() { | 4394 get keys() { |
| 3947 return new (LinkedHashMapKeyIterable$(K))(this); | 4395 return new (LinkedHashMapKeyIterable$(K))(this); |
| 3948 } | 4396 } |
| 3949 get values() { | 4397 get values() { |
| 3950 return new (_internal.MappedIterable$(K, V))(this.keys, (each => this.ge
t(each)).bind(this)); | 4398 return new (_internal.MappedIterable$(K, V))(this.keys, dart.fn((each =>
this.get(each)).bind(this), V, [dart.dynamic])); |
| 3951 } | 4399 } |
| 3952 containsKey(key) { | 4400 containsKey(key) { |
| 3953 if (_LinkedHashMap$()._isStringKey(key)) { | 4401 if (_LinkedHashMap$()._isStringKey(key)) { |
| 3954 let strings = this[_strings]; | 4402 let strings = this[_strings]; |
| 3955 if (strings == null) | 4403 if (strings == null) |
| 3956 return false; | 4404 return false; |
| 3957 let cell = dart.as(_LinkedHashMap$()._getTableEntry(strings, key), Lin
kedHashMapCell); | 4405 let cell = dart.as(_LinkedHashMap$()._getTableEntry(strings, key), Lin
kedHashMapCell); |
| 3958 return cell != null; | 4406 return cell != null; |
| 3959 } else if (_LinkedHashMap$()._isNumericKey(key)) { | 4407 } else if (_LinkedHashMap$()._isNumericKey(key)) { |
| 3960 let nums = this[_nums]; | 4408 let nums = this[_nums]; |
| 3961 if (nums == null) | 4409 if (nums == null) |
| 3962 return false; | 4410 return false; |
| 3963 let cell = dart.as(_LinkedHashMap$()._getTableEntry(nums, key), Linked
HashMapCell); | 4411 let cell = dart.as(_LinkedHashMap$()._getTableEntry(nums, key), Linked
HashMapCell); |
| 3964 return cell != null; | 4412 return cell != null; |
| 3965 } else { | 4413 } else { |
| 3966 return this[_containsKey](key); | 4414 return this[_containsKey](key); |
| 3967 } | 4415 } |
| 3968 } | 4416 } |
| 3969 [_containsKey](key) { | 4417 [_containsKey](key) { |
| 3970 let rest = this[_rest]; | 4418 let rest = this[_rest]; |
| 3971 if (rest == null) | 4419 if (rest == null) |
| 3972 return false; | 4420 return false; |
| 3973 let bucket = this[_getBucket](rest, key); | 4421 let bucket = this[_getBucket](rest, key); |
| 3974 return dart.notNull(this[_findBucketIndex](bucket, key)) >= 0; | 4422 return dart.notNull(this[_findBucketIndex](bucket, key)) >= 0; |
| 3975 } | 4423 } |
| 3976 containsValue(value) { | 4424 containsValue(value) { |
| 3977 return this.keys[core.$any]((each => dart.equals(this.get(each), value))
.bind(this)); | 4425 return this.keys[core.$any](dart.fn((each => dart.equals(this.get(each),
value)).bind(this), core.bool, [dart.dynamic])); |
| 3978 } | 4426 } |
| 3979 addAll(other) { | 4427 addAll(other) { |
| 3980 dart.as(other, core.Map$(K, V)); | 4428 dart.as(other, core.Map$(K, V)); |
| 3981 other.forEach(((key, value) => { | 4429 other.forEach(dart.fn(((key, value) => { |
| 3982 dart.as(key, K); | 4430 dart.as(key, K); |
| 3983 dart.as(value, V); | 4431 dart.as(value, V); |
| 3984 this.set(key, value); | 4432 this.set(key, value); |
| 3985 }).bind(this)); | 4433 }).bind(this), dart.dynamic, [K, V])); |
| 3986 } | 4434 } |
| 3987 get(key) { | 4435 get(key) { |
| 3988 if (_LinkedHashMap$()._isStringKey(key)) { | 4436 if (_LinkedHashMap$()._isStringKey(key)) { |
| 3989 let strings = this[_strings]; | 4437 let strings = this[_strings]; |
| 3990 if (strings == null) | 4438 if (strings == null) |
| 3991 return null; | 4439 return null; |
| 3992 let cell = dart.as(_LinkedHashMap$()._getTableEntry(strings, key), Lin
kedHashMapCell); | 4440 let cell = dart.as(_LinkedHashMap$()._getTableEntry(strings, key), Lin
kedHashMapCell); |
| 3993 return cell == null ? null : dart.as(cell[_value], V); | 4441 return cell == null ? null : dart.as(cell[_value], V); |
| 3994 } else if (_LinkedHashMap$()._isNumericKey(key)) { | 4442 } else if (_LinkedHashMap$()._isNumericKey(key)) { |
| 3995 let nums = this[_nums]; | 4443 let nums = this[_nums]; |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4195 let temporaryKey = '<non-identifier-key>'; | 4643 let temporaryKey = '<non-identifier-key>'; |
| 4196 _LinkedHashMap$()._setTableEntry(table, temporaryKey, table); | 4644 _LinkedHashMap$()._setTableEntry(table, temporaryKey, table); |
| 4197 _LinkedHashMap$()._deleteTableEntry(table, temporaryKey); | 4645 _LinkedHashMap$()._deleteTableEntry(table, temporaryKey); |
| 4198 return table; | 4646 return table; |
| 4199 } | 4647 } |
| 4200 toString() { | 4648 toString() { |
| 4201 return Maps.mapToString(this); | 4649 return Maps.mapToString(this); |
| 4202 } | 4650 } |
| 4203 } | 4651 } |
| 4204 _LinkedHashMap[dart.implements] = () => [LinkedHashMap$(K, V), _js_helper.In
ternalMap]; | 4652 _LinkedHashMap[dart.implements] = () => [LinkedHashMap$(K, V), _js_helper.In
ternalMap]; |
| 4653 dart.setSignature(_LinkedHashMap, { |
| 4654 methods: () => ({ |
| 4655 containsKey: dart.functionType(core.bool, [core.Object]), |
| 4656 [_containsKey]: dart.functionType(core.bool, [core.Object]), |
| 4657 containsValue: dart.functionType(core.bool, [core.Object]), |
| 4658 addAll: dart.functionType(dart.void, [core.Map$(K, V)]), |
| 4659 get: dart.functionType(V, [core.Object]), |
| 4660 [_get]: dart.functionType(V, [core.Object]), |
| 4661 set: dart.functionType(dart.void, [K, V]), |
| 4662 [_set]: dart.functionType(dart.void, [K, V]), |
| 4663 putIfAbsent: dart.functionType(V, [K, dart.functionType(V, [])]), |
| 4664 remove: dart.functionType(V, [core.Object]), |
| 4665 [_remove]: dart.functionType(V, [core.Object]), |
| 4666 clear: dart.functionType(dart.void, []), |
| 4667 forEach: dart.functionType(dart.void, [dart.functionType(dart.void, [K,
V])]), |
| 4668 [_addHashTableEntry]: dart.functionType(dart.void, [dart.dynamic, K, V])
, |
| 4669 [_removeHashTableEntry]: dart.functionType(V, [dart.dynamic, core.Object
]), |
| 4670 [_modified]: dart.functionType(dart.void, []), |
| 4671 [_newLinkedCell]: dart.functionType(LinkedHashMapCell, [K, V]), |
| 4672 [_unlinkCell]: dart.functionType(dart.void, [LinkedHashMapCell]), |
| 4673 [_computeHashCode]: dart.functionType(core.int, [dart.dynamic]), |
| 4674 [_getBucket]: dart.functionType(core.List, [dart.dynamic, dart.dynamic])
, |
| 4675 [_findBucketIndex]: dart.functionType(core.int, [dart.dynamic, dart.dyna
mic]), |
| 4676 toString: dart.functionType(core.String, []) |
| 4677 }), |
| 4678 statics: () => ({ |
| 4679 _isStringKey: dart.functionType(core.bool, [dart.dynamic]), |
| 4680 _isNumericKey: dart.functionType(core.bool, [dart.dynamic]), |
| 4681 _getTableEntry: dart.functionType(dart.dynamic, [dart.dynamic, dart.dyna
mic]), |
| 4682 _setTableEntry: dart.functionType(dart.void, [dart.dynamic, dart.dynamic
, dart.dynamic]), |
| 4683 _deleteTableEntry: dart.functionType(dart.void, [dart.dynamic, dart.dyna
mic]), |
| 4684 _newHashTable: dart.functionType(dart.dynamic, []) |
| 4685 }), |
| 4686 names: ['_isStringKey', '_isNumericKey', '_getTableEntry', '_setTableEntry
', '_deleteTableEntry', '_newHashTable'] |
| 4687 }); |
| 4205 return _LinkedHashMap; | 4688 return _LinkedHashMap; |
| 4206 }); | 4689 }); |
| 4207 let _LinkedHashMap = _LinkedHashMap$(); | 4690 let _LinkedHashMap = _LinkedHashMap$(); |
| 4208 let _LinkedIdentityHashMap$ = dart.generic(function(K, V) { | 4691 let _LinkedIdentityHashMap$ = dart.generic(function(K, V) { |
| 4209 class _LinkedIdentityHashMap extends _LinkedHashMap$(K, V) { | 4692 class _LinkedIdentityHashMap extends _LinkedHashMap$(K, V) { |
| 4210 _LinkedIdentityHashMap() { | 4693 _LinkedIdentityHashMap() { |
| 4211 super._LinkedHashMap(); | 4694 super._LinkedHashMap(); |
| 4212 } | 4695 } |
| 4213 [_computeHashCode](key) { | 4696 [_computeHashCode](key) { |
| 4214 return core.identityHashCode(key) & 0x3ffffff; | 4697 return core.identityHashCode(key) & 0x3ffffff; |
| 4215 } | 4698 } |
| 4216 [_findBucketIndex](bucket, key) { | 4699 [_findBucketIndex](bucket, key) { |
| 4217 if (bucket == null) | 4700 if (bucket == null) |
| 4218 return -1; | 4701 return -1; |
| 4219 let length = bucket.length; | 4702 let length = bucket.length; |
| 4220 for (let i = 0; dart.notNull(i) < dart.notNull(length); i = dart.notNull
(i) + 1) { | 4703 for (let i = 0; dart.notNull(i) < dart.notNull(length); i = dart.notNull
(i) + 1) { |
| 4221 let cell = dart.as(bucket[i], LinkedHashMapCell); | 4704 let cell = dart.as(bucket[i], LinkedHashMapCell); |
| 4222 if (core.identical(cell[_key], key)) | 4705 if (core.identical(cell[_key], key)) |
| 4223 return i; | 4706 return i; |
| 4224 } | 4707 } |
| 4225 return -1; | 4708 return -1; |
| 4226 } | 4709 } |
| 4227 } | 4710 } |
| 4711 dart.setSignature(_LinkedIdentityHashMap, { |
| 4712 methods: () => ({ |
| 4713 [_computeHashCode]: dart.functionType(core.int, [dart.dynamic]), |
| 4714 [_findBucketIndex]: dart.functionType(core.int, [dart.dynamic, dart.dyna
mic]) |
| 4715 }) |
| 4716 }); |
| 4228 return _LinkedIdentityHashMap; | 4717 return _LinkedIdentityHashMap; |
| 4229 }); | 4718 }); |
| 4230 let _LinkedIdentityHashMap = _LinkedIdentityHashMap$(); | 4719 let _LinkedIdentityHashMap = _LinkedIdentityHashMap$(); |
| 4231 let _LinkedCustomHashMap$ = dart.generic(function(K, V) { | 4720 let _LinkedCustomHashMap$ = dart.generic(function(K, V) { |
| 4232 class _LinkedCustomHashMap extends _LinkedHashMap$(K, V) { | 4721 class _LinkedCustomHashMap extends _LinkedHashMap$(K, V) { |
| 4233 _LinkedCustomHashMap(equals, hashCode, validKey) { | 4722 _LinkedCustomHashMap(equals, hashCode, validKey) { |
| 4234 this[_equals] = equals; | 4723 this[_equals] = equals; |
| 4235 this[_hashCode] = hashCode; | 4724 this[_hashCode] = hashCode; |
| 4236 this[_validKey] = validKey != null ? validKey : v => dart.is(v, K); | 4725 this[_validKey] = validKey != null ? validKey : dart.fn(v => dart.is(v,
K), core.bool, [dart.dynamic]); |
| 4237 super._LinkedHashMap(); | 4726 super._LinkedHashMap(); |
| 4238 } | 4727 } |
| 4239 get(key) { | 4728 get(key) { |
| 4240 if (!dart.notNull(this[_validKey](key))) | 4729 if (!dart.notNull(this[_validKey](key))) |
| 4241 return null; | 4730 return null; |
| 4242 return super[_get](key); | 4731 return super[_get](key); |
| 4243 } | 4732 } |
| 4244 set(key, value) { | 4733 set(key, value) { |
| 4245 dart.as(key, K); | 4734 dart.as(key, K); |
| 4246 dart.as(value, V); | 4735 dart.as(value, V); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 4264 return -1; | 4753 return -1; |
| 4265 let length = bucket.length; | 4754 let length = bucket.length; |
| 4266 for (let i = 0; dart.notNull(i) < dart.notNull(length); i = dart.notNull
(i) + 1) { | 4755 for (let i = 0; dart.notNull(i) < dart.notNull(length); i = dart.notNull
(i) + 1) { |
| 4267 let cell = dart.as(bucket[i], LinkedHashMapCell); | 4756 let cell = dart.as(bucket[i], LinkedHashMapCell); |
| 4268 if (this[_equals](dart.as(cell[_key], K), dart.as(key, K))) | 4757 if (this[_equals](dart.as(cell[_key], K), dart.as(key, K))) |
| 4269 return i; | 4758 return i; |
| 4270 } | 4759 } |
| 4271 return -1; | 4760 return -1; |
| 4272 } | 4761 } |
| 4273 } | 4762 } |
| 4763 dart.setSignature(_LinkedCustomHashMap, { |
| 4764 methods: () => ({ |
| 4765 get: dart.functionType(V, [core.Object]), |
| 4766 set: dart.functionType(dart.void, [K, V]), |
| 4767 containsKey: dart.functionType(core.bool, [core.Object]), |
| 4768 remove: dart.functionType(V, [core.Object]), |
| 4769 [_computeHashCode]: dart.functionType(core.int, [dart.dynamic]), |
| 4770 [_findBucketIndex]: dart.functionType(core.int, [dart.dynamic, dart.dyna
mic]) |
| 4771 }) |
| 4772 }); |
| 4274 return _LinkedCustomHashMap; | 4773 return _LinkedCustomHashMap; |
| 4275 }); | 4774 }); |
| 4276 let _LinkedCustomHashMap = _LinkedCustomHashMap$(); | 4775 let _LinkedCustomHashMap = _LinkedCustomHashMap$(); |
| 4277 class LinkedHashMapCell extends core.Object { | 4776 class LinkedHashMapCell extends core.Object { |
| 4278 LinkedHashMapCell(key, value) { | 4777 LinkedHashMapCell(key, value) { |
| 4279 this[_key] = key; | 4778 this[_key] = key; |
| 4280 this[_value] = value; | 4779 this[_value] = value; |
| 4281 this[_next] = null; | 4780 this[_next] = null; |
| 4282 this[_previous] = null; | 4781 this[_previous] = null; |
| 4283 } | 4782 } |
| 4284 } | 4783 } |
| 4784 dart.setSignature(LinkedHashMapCell, {}); |
| 4285 let LinkedHashMapKeyIterable$ = dart.generic(function(E) { | 4785 let LinkedHashMapKeyIterable$ = dart.generic(function(E) { |
| 4286 class LinkedHashMapKeyIterable extends IterableBase$(E) { | 4786 class LinkedHashMapKeyIterable extends IterableBase$(E) { |
| 4287 LinkedHashMapKeyIterable(map) { | 4787 LinkedHashMapKeyIterable(map) { |
| 4288 this[_map] = map; | 4788 this[_map] = map; |
| 4289 super.IterableBase(); | 4789 super.IterableBase(); |
| 4290 } | 4790 } |
| 4291 get [core.$length]() { | 4791 get [core.$length]() { |
| 4292 return dart.as(dart.dload(this[_map], _length), core.int); | 4792 return dart.as(dart.dload(this[_map], _length), core.int); |
| 4293 } | 4793 } |
| 4294 get [core.$isEmpty]() { | 4794 get [core.$isEmpty]() { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 4307 while (cell != null) { | 4807 while (cell != null) { |
| 4308 f(dart.as(cell[_key], E)); | 4808 f(dart.as(cell[_key], E)); |
| 4309 if (!dart.equals(modifications, dart.dload(this[_map], _modifications)
)) { | 4809 if (!dart.equals(modifications, dart.dload(this[_map], _modifications)
)) { |
| 4310 throw new core.ConcurrentModificationError(this[_map]); | 4810 throw new core.ConcurrentModificationError(this[_map]); |
| 4311 } | 4811 } |
| 4312 cell = cell[_next]; | 4812 cell = cell[_next]; |
| 4313 } | 4813 } |
| 4314 } | 4814 } |
| 4315 } | 4815 } |
| 4316 LinkedHashMapKeyIterable[dart.implements] = () => [_internal.EfficientLength
]; | 4816 LinkedHashMapKeyIterable[dart.implements] = () => [_internal.EfficientLength
]; |
| 4817 dart.setSignature(LinkedHashMapKeyIterable, { |
| 4818 methods: () => ({ |
| 4819 [core.$contains]: dart.functionType(core.bool, [core.Object]), |
| 4820 [core.$forEach]: dart.functionType(dart.void, [dart.functionType(dart.vo
id, [E])]) |
| 4821 }) |
| 4822 }); |
| 4317 return LinkedHashMapKeyIterable; | 4823 return LinkedHashMapKeyIterable; |
| 4318 }); | 4824 }); |
| 4319 let LinkedHashMapKeyIterable = LinkedHashMapKeyIterable$(); | 4825 let LinkedHashMapKeyIterable = LinkedHashMapKeyIterable$(); |
| 4320 let _cell = Symbol('_cell'); | 4826 let _cell = Symbol('_cell'); |
| 4321 let LinkedHashMapKeyIterator$ = dart.generic(function(E) { | 4827 let LinkedHashMapKeyIterator$ = dart.generic(function(E) { |
| 4322 class LinkedHashMapKeyIterator extends core.Object { | 4828 class LinkedHashMapKeyIterator extends core.Object { |
| 4323 LinkedHashMapKeyIterator(map, modifications) { | 4829 LinkedHashMapKeyIterator(map, modifications) { |
| 4324 this[_map] = map; | 4830 this[_map] = map; |
| 4325 this[_modifications] = modifications; | 4831 this[_modifications] = modifications; |
| 4326 this[_cell] = null; | 4832 this[_cell] = null; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 4337 this[_current] = null; | 4843 this[_current] = null; |
| 4338 return false; | 4844 return false; |
| 4339 } else { | 4845 } else { |
| 4340 this[_current] = dart.as(this[_cell][_key], E); | 4846 this[_current] = dart.as(this[_cell][_key], E); |
| 4341 this[_cell] = this[_cell][_next]; | 4847 this[_cell] = this[_cell][_next]; |
| 4342 return true; | 4848 return true; |
| 4343 } | 4849 } |
| 4344 } | 4850 } |
| 4345 } | 4851 } |
| 4346 LinkedHashMapKeyIterator[dart.implements] = () => [core.Iterator$(E)]; | 4852 LinkedHashMapKeyIterator[dart.implements] = () => [core.Iterator$(E)]; |
| 4853 dart.setSignature(LinkedHashMapKeyIterator, { |
| 4854 methods: () => ({moveNext: dart.functionType(core.bool, [])}) |
| 4855 }); |
| 4347 return LinkedHashMapKeyIterator; | 4856 return LinkedHashMapKeyIterator; |
| 4348 }); | 4857 }); |
| 4349 let LinkedHashMapKeyIterator = LinkedHashMapKeyIterator$(); | 4858 let LinkedHashMapKeyIterator = LinkedHashMapKeyIterator$(); |
| 4350 let _elements = Symbol('_elements'); | 4859 let _elements = Symbol('_elements'); |
| 4351 let _computeElements = Symbol('_computeElements'); | 4860 let _computeElements = Symbol('_computeElements'); |
| 4352 let _contains = Symbol('_contains'); | 4861 let _contains = Symbol('_contains'); |
| 4353 let _lookup = Symbol('_lookup'); | 4862 let _lookup = Symbol('_lookup'); |
| 4354 let _HashSet$ = dart.generic(function(E) { | 4863 let _HashSet$ = dart.generic(function(E) { |
| 4355 class _HashSet extends _HashSetBase$(E) { | 4864 class _HashSet extends _HashSetBase$(E) { |
| 4356 _HashSet() { | 4865 _HashSet() { |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4575 } | 5084 } |
| 4576 static _newHashTable() { | 5085 static _newHashTable() { |
| 4577 let table = Object.create(null); | 5086 let table = Object.create(null); |
| 4578 let temporaryKey = '<non-identifier-key>'; | 5087 let temporaryKey = '<non-identifier-key>'; |
| 4579 _HashSet$()._setTableEntry(table, temporaryKey, table); | 5088 _HashSet$()._setTableEntry(table, temporaryKey, table); |
| 4580 _HashSet$()._deleteTableEntry(table, temporaryKey); | 5089 _HashSet$()._deleteTableEntry(table, temporaryKey); |
| 4581 return table; | 5090 return table; |
| 4582 } | 5091 } |
| 4583 } | 5092 } |
| 4584 _HashSet[dart.implements] = () => [HashSet$(E)]; | 5093 _HashSet[dart.implements] = () => [HashSet$(E)]; |
| 5094 dart.setSignature(_HashSet, { |
| 5095 methods: () => ({ |
| 5096 [_newSet]: dart.functionType(core.Set$(E), []), |
| 5097 [core.$contains]: dart.functionType(core.bool, [core.Object]), |
| 5098 [_contains]: dart.functionType(core.bool, [core.Object]), |
| 5099 lookup: dart.functionType(E, [core.Object]), |
| 5100 [_lookup]: dart.functionType(E, [core.Object]), |
| 5101 add: dart.functionType(core.bool, [E]), |
| 5102 [_add]: dart.functionType(core.bool, [E]), |
| 5103 addAll: dart.functionType(dart.void, [core.Iterable$(E)]), |
| 5104 remove: dart.functionType(core.bool, [core.Object]), |
| 5105 [_remove]: dart.functionType(core.bool, [core.Object]), |
| 5106 clear: dart.functionType(dart.void, []), |
| 5107 [_computeElements]: dart.functionType(core.List, []), |
| 5108 [_addHashTableEntry]: dart.functionType(core.bool, [dart.dynamic, E]), |
| 5109 [_removeHashTableEntry]: dart.functionType(core.bool, [dart.dynamic, cor
e.Object]), |
| 5110 [_computeHashCode]: dart.functionType(core.int, [dart.dynamic]), |
| 5111 [_getBucket]: dart.functionType(core.List, [dart.dynamic, dart.dynamic])
, |
| 5112 [_findBucketIndex]: dart.functionType(core.int, [dart.dynamic, dart.dyna
mic]) |
| 5113 }), |
| 5114 statics: () => ({ |
| 5115 _isStringElement: dart.functionType(core.bool, [dart.dynamic]), |
| 5116 _isNumericElement: dart.functionType(core.bool, [dart.dynamic]), |
| 5117 _hasTableEntry: dart.functionType(core.bool, [dart.dynamic, dart.dynamic
]), |
| 5118 _setTableEntry: dart.functionType(dart.void, [dart.dynamic, dart.dynamic
, dart.dynamic]), |
| 5119 _deleteTableEntry: dart.functionType(dart.void, [dart.dynamic, dart.dyna
mic]), |
| 5120 _newHashTable: dart.functionType(dart.dynamic, []) |
| 5121 }), |
| 5122 names: ['_isStringElement', '_isNumericElement', '_hasTableEntry', '_setTa
bleEntry', '_deleteTableEntry', '_newHashTable'] |
| 5123 }); |
| 4585 return _HashSet; | 5124 return _HashSet; |
| 4586 }); | 5125 }); |
| 4587 let _HashSet = _HashSet$(); | 5126 let _HashSet = _HashSet$(); |
| 4588 let _IdentityHashSet$ = dart.generic(function(E) { | 5127 let _IdentityHashSet$ = dart.generic(function(E) { |
| 4589 class _IdentityHashSet extends _HashSet$(E) { | 5128 class _IdentityHashSet extends _HashSet$(E) { |
| 4590 _IdentityHashSet() { | 5129 _IdentityHashSet() { |
| 4591 super._HashSet(); | 5130 super._HashSet(); |
| 4592 } | 5131 } |
| 4593 [_newSet]() { | 5132 [_newSet]() { |
| 4594 return new (_IdentityHashSet$(E))(); | 5133 return new (_IdentityHashSet$(E))(); |
| 4595 } | 5134 } |
| 4596 [_computeHashCode](key) { | 5135 [_computeHashCode](key) { |
| 4597 return core.identityHashCode(key) & 0x3ffffff; | 5136 return core.identityHashCode(key) & 0x3ffffff; |
| 4598 } | 5137 } |
| 4599 [_findBucketIndex](bucket, element) { | 5138 [_findBucketIndex](bucket, element) { |
| 4600 if (bucket == null) | 5139 if (bucket == null) |
| 4601 return -1; | 5140 return -1; |
| 4602 let length = bucket.length; | 5141 let length = bucket.length; |
| 4603 for (let i = 0; dart.notNull(i) < dart.notNull(length); i = dart.notNull
(i) + 1) { | 5142 for (let i = 0; dart.notNull(i) < dart.notNull(length); i = dart.notNull
(i) + 1) { |
| 4604 if (core.identical(bucket[i], element)) | 5143 if (core.identical(bucket[i], element)) |
| 4605 return i; | 5144 return i; |
| 4606 } | 5145 } |
| 4607 return -1; | 5146 return -1; |
| 4608 } | 5147 } |
| 4609 } | 5148 } |
| 5149 dart.setSignature(_IdentityHashSet, { |
| 5150 methods: () => ({ |
| 5151 [_newSet]: dart.functionType(core.Set$(E), []), |
| 5152 [_computeHashCode]: dart.functionType(core.int, [dart.dynamic]), |
| 5153 [_findBucketIndex]: dart.functionType(core.int, [dart.dynamic, dart.dyna
mic]) |
| 5154 }) |
| 5155 }); |
| 4610 return _IdentityHashSet; | 5156 return _IdentityHashSet; |
| 4611 }); | 5157 }); |
| 4612 let _IdentityHashSet = _IdentityHashSet$(); | 5158 let _IdentityHashSet = _IdentityHashSet$(); |
| 4613 let _equality = Symbol('_equality'); | 5159 let _equality = Symbol('_equality'); |
| 4614 let _hasher = Symbol('_hasher'); | 5160 let _hasher = Symbol('_hasher'); |
| 4615 let _CustomHashSet$ = dart.generic(function(E) { | 5161 let _CustomHashSet$ = dart.generic(function(E) { |
| 4616 class _CustomHashSet extends _HashSet$(E) { | 5162 class _CustomHashSet extends _HashSet$(E) { |
| 4617 _CustomHashSet(equality, hasher, validKey) { | 5163 _CustomHashSet(equality, hasher, validKey) { |
| 4618 this[_equality] = equality; | 5164 this[_equality] = equality; |
| 4619 this[_hasher] = hasher; | 5165 this[_hasher] = hasher; |
| 4620 this[_validKey] = validKey != null ? validKey : x => dart.is(x, E); | 5166 this[_validKey] = validKey != null ? validKey : dart.fn(x => dart.is(x,
E), core.bool, [dart.dynamic]); |
| 4621 super._HashSet(); | 5167 super._HashSet(); |
| 4622 } | 5168 } |
| 4623 [_newSet]() { | 5169 [_newSet]() { |
| 4624 return new (_CustomHashSet$(E))(this[_equality], this[_hasher], this[_va
lidKey]); | 5170 return new (_CustomHashSet$(E))(this[_equality], this[_hasher], this[_va
lidKey]); |
| 4625 } | 5171 } |
| 4626 [_findBucketIndex](bucket, element) { | 5172 [_findBucketIndex](bucket, element) { |
| 4627 if (bucket == null) | 5173 if (bucket == null) |
| 4628 return -1; | 5174 return -1; |
| 4629 let length = bucket.length; | 5175 let length = bucket.length; |
| 4630 for (let i = 0; dart.notNull(i) < dart.notNull(length); i = dart.notNull
(i) + 1) { | 5176 for (let i = 0; dart.notNull(i) < dart.notNull(length); i = dart.notNull
(i) + 1) { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 4649 if (!dart.notNull(this[_validKey](object))) | 5195 if (!dart.notNull(this[_validKey](object))) |
| 4650 return null; | 5196 return null; |
| 4651 return super[_lookup](object); | 5197 return super[_lookup](object); |
| 4652 } | 5198 } |
| 4653 remove(object) { | 5199 remove(object) { |
| 4654 if (!dart.notNull(this[_validKey](object))) | 5200 if (!dart.notNull(this[_validKey](object))) |
| 4655 return false; | 5201 return false; |
| 4656 return super[_remove](object); | 5202 return super[_remove](object); |
| 4657 } | 5203 } |
| 4658 } | 5204 } |
| 5205 dart.setSignature(_CustomHashSet, { |
| 5206 methods: () => ({ |
| 5207 [_newSet]: dart.functionType(core.Set$(E), []), |
| 5208 [_findBucketIndex]: dart.functionType(core.int, [dart.dynamic, dart.dyna
mic]), |
| 5209 [_computeHashCode]: dart.functionType(core.int, [dart.dynamic]), |
| 5210 add: dart.functionType(core.bool, [E]), |
| 5211 [core.$contains]: dart.functionType(core.bool, [core.Object]), |
| 5212 lookup: dart.functionType(E, [core.Object]), |
| 5213 remove: dart.functionType(core.bool, [core.Object]) |
| 5214 }) |
| 5215 }); |
| 4659 return _CustomHashSet; | 5216 return _CustomHashSet; |
| 4660 }); | 5217 }); |
| 4661 let _CustomHashSet = _CustomHashSet$(); | 5218 let _CustomHashSet = _CustomHashSet$(); |
| 4662 let HashSetIterator$ = dart.generic(function(E) { | 5219 let HashSetIterator$ = dart.generic(function(E) { |
| 4663 class HashSetIterator extends core.Object { | 5220 class HashSetIterator extends core.Object { |
| 4664 HashSetIterator(set, elements) { | 5221 HashSetIterator(set, elements) { |
| 4665 this[_set] = set; | 5222 this[_set] = set; |
| 4666 this[_elements] = elements; | 5223 this[_elements] = elements; |
| 4667 this[_offset] = 0; | 5224 this[_offset] = 0; |
| 4668 this[_current] = null; | 5225 this[_current] = null; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 4679 this[_current] = null; | 5236 this[_current] = null; |
| 4680 return false; | 5237 return false; |
| 4681 } else { | 5238 } else { |
| 4682 this[_current] = dart.as(elements[offset], E); | 5239 this[_current] = dart.as(elements[offset], E); |
| 4683 this[_offset] = dart.notNull(offset) + 1; | 5240 this[_offset] = dart.notNull(offset) + 1; |
| 4684 return true; | 5241 return true; |
| 4685 } | 5242 } |
| 4686 } | 5243 } |
| 4687 } | 5244 } |
| 4688 HashSetIterator[dart.implements] = () => [core.Iterator$(E)]; | 5245 HashSetIterator[dart.implements] = () => [core.Iterator$(E)]; |
| 5246 dart.setSignature(HashSetIterator, { |
| 5247 methods: () => ({moveNext: dart.functionType(core.bool, [])}) |
| 5248 }); |
| 4689 return HashSetIterator; | 5249 return HashSetIterator; |
| 4690 }); | 5250 }); |
| 4691 let HashSetIterator = HashSetIterator$(); | 5251 let HashSetIterator = HashSetIterator$(); |
| 4692 let _unsupported = Symbol('_unsupported'); | 5252 let _unsupported = Symbol('_unsupported'); |
| 4693 let _LinkedHashSet$ = dart.generic(function(E) { | 5253 let _LinkedHashSet$ = dart.generic(function(E) { |
| 4694 class _LinkedHashSet extends _HashSetBase$(E) { | 5254 class _LinkedHashSet extends _HashSetBase$(E) { |
| 4695 _LinkedHashSet() { | 5255 _LinkedHashSet() { |
| 4696 this[_length] = 0; | 5256 this[_length] = 0; |
| 4697 this[_strings] = null; | 5257 this[_strings] = null; |
| 4698 this[_nums] = null; | 5258 this[_nums] = null; |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4958 } | 5518 } |
| 4959 static _newHashTable() { | 5519 static _newHashTable() { |
| 4960 let table = Object.create(null); | 5520 let table = Object.create(null); |
| 4961 let temporaryKey = '<non-identifier-key>'; | 5521 let temporaryKey = '<non-identifier-key>'; |
| 4962 _LinkedHashSet$()._setTableEntry(table, temporaryKey, table); | 5522 _LinkedHashSet$()._setTableEntry(table, temporaryKey, table); |
| 4963 _LinkedHashSet$()._deleteTableEntry(table, temporaryKey); | 5523 _LinkedHashSet$()._deleteTableEntry(table, temporaryKey); |
| 4964 return table; | 5524 return table; |
| 4965 } | 5525 } |
| 4966 } | 5526 } |
| 4967 _LinkedHashSet[dart.implements] = () => [LinkedHashSet$(E)]; | 5527 _LinkedHashSet[dart.implements] = () => [LinkedHashSet$(E)]; |
| 5528 dart.setSignature(_LinkedHashSet, { |
| 5529 methods: () => ({ |
| 5530 [_newSet]: dart.functionType(core.Set$(E), []), |
| 5531 [_unsupported]: dart.functionType(dart.void, [core.String]), |
| 5532 [core.$contains]: dart.functionType(core.bool, [core.Object]), |
| 5533 [_contains]: dart.functionType(core.bool, [core.Object]), |
| 5534 lookup: dart.functionType(E, [core.Object]), |
| 5535 [_lookup]: dart.functionType(E, [core.Object]), |
| 5536 [core.$forEach]: dart.functionType(dart.void, [dart.functionType(dart.vo
id, [E])]), |
| 5537 add: dart.functionType(core.bool, [E]), |
| 5538 [_add]: dart.functionType(core.bool, [E]), |
| 5539 remove: dart.functionType(core.bool, [core.Object]), |
| 5540 [_remove]: dart.functionType(core.bool, [core.Object]), |
| 5541 removeWhere: dart.functionType(dart.void, [dart.functionType(core.bool,
[E])]), |
| 5542 retainWhere: dart.functionType(dart.void, [dart.functionType(core.bool,
[E])]), |
| 5543 [_filterWhere]: dart.functionType(dart.void, [dart.functionType(core.boo
l, [E]), core.bool]), |
| 5544 clear: dart.functionType(dart.void, []), |
| 5545 [_addHashTableEntry]: dart.functionType(core.bool, [dart.dynamic, E]), |
| 5546 [_removeHashTableEntry]: dart.functionType(core.bool, [dart.dynamic, cor
e.Object]), |
| 5547 [_modified]: dart.functionType(dart.void, []), |
| 5548 [_newLinkedCell]: dart.functionType(LinkedHashSetCell, [E]), |
| 5549 [_unlinkCell]: dart.functionType(dart.void, [LinkedHashSetCell]), |
| 5550 [_computeHashCode]: dart.functionType(core.int, [dart.dynamic]), |
| 5551 [_getBucket]: dart.functionType(core.List, [dart.dynamic, dart.dynamic])
, |
| 5552 [_findBucketIndex]: dart.functionType(core.int, [dart.dynamic, dart.dyna
mic]) |
| 5553 }), |
| 5554 statics: () => ({ |
| 5555 _isStringElement: dart.functionType(core.bool, [dart.dynamic]), |
| 5556 _isNumericElement: dart.functionType(core.bool, [dart.dynamic]), |
| 5557 _getTableEntry: dart.functionType(dart.dynamic, [dart.dynamic, dart.dyna
mic]), |
| 5558 _setTableEntry: dart.functionType(dart.void, [dart.dynamic, dart.dynamic
, dart.dynamic]), |
| 5559 _deleteTableEntry: dart.functionType(dart.void, [dart.dynamic, dart.dyna
mic]), |
| 5560 _newHashTable: dart.functionType(dart.dynamic, []) |
| 5561 }), |
| 5562 names: ['_isStringElement', '_isNumericElement', '_getTableEntry', '_setTa
bleEntry', '_deleteTableEntry', '_newHashTable'] |
| 5563 }); |
| 4968 return _LinkedHashSet; | 5564 return _LinkedHashSet; |
| 4969 }); | 5565 }); |
| 4970 let _LinkedHashSet = _LinkedHashSet$(); | 5566 let _LinkedHashSet = _LinkedHashSet$(); |
| 4971 let _LinkedIdentityHashSet$ = dart.generic(function(E) { | 5567 let _LinkedIdentityHashSet$ = dart.generic(function(E) { |
| 4972 class _LinkedIdentityHashSet extends _LinkedHashSet$(E) { | 5568 class _LinkedIdentityHashSet extends _LinkedHashSet$(E) { |
| 4973 _LinkedIdentityHashSet() { | 5569 _LinkedIdentityHashSet() { |
| 4974 super._LinkedHashSet(); | 5570 super._LinkedHashSet(); |
| 4975 } | 5571 } |
| 4976 [_newSet]() { | 5572 [_newSet]() { |
| 4977 return new (_LinkedIdentityHashSet$(E))(); | 5573 return new (_LinkedIdentityHashSet$(E))(); |
| 4978 } | 5574 } |
| 4979 [_computeHashCode](key) { | 5575 [_computeHashCode](key) { |
| 4980 return core.identityHashCode(key) & 0x3ffffff; | 5576 return core.identityHashCode(key) & 0x3ffffff; |
| 4981 } | 5577 } |
| 4982 [_findBucketIndex](bucket, element) { | 5578 [_findBucketIndex](bucket, element) { |
| 4983 if (bucket == null) | 5579 if (bucket == null) |
| 4984 return -1; | 5580 return -1; |
| 4985 let length = bucket.length; | 5581 let length = bucket.length; |
| 4986 for (let i = 0; dart.notNull(i) < dart.notNull(length); i = dart.notNull
(i) + 1) { | 5582 for (let i = 0; dart.notNull(i) < dart.notNull(length); i = dart.notNull
(i) + 1) { |
| 4987 let cell = dart.as(bucket[i], LinkedHashSetCell); | 5583 let cell = dart.as(bucket[i], LinkedHashSetCell); |
| 4988 if (core.identical(cell[_element], element)) | 5584 if (core.identical(cell[_element], element)) |
| 4989 return i; | 5585 return i; |
| 4990 } | 5586 } |
| 4991 return -1; | 5587 return -1; |
| 4992 } | 5588 } |
| 4993 } | 5589 } |
| 5590 dart.setSignature(_LinkedIdentityHashSet, { |
| 5591 methods: () => ({ |
| 5592 [_newSet]: dart.functionType(core.Set$(E), []), |
| 5593 [_computeHashCode]: dart.functionType(core.int, [dart.dynamic]), |
| 5594 [_findBucketIndex]: dart.functionType(core.int, [dart.dynamic, dart.dyna
mic]) |
| 5595 }) |
| 5596 }); |
| 4994 return _LinkedIdentityHashSet; | 5597 return _LinkedIdentityHashSet; |
| 4995 }); | 5598 }); |
| 4996 let _LinkedIdentityHashSet = _LinkedIdentityHashSet$(); | 5599 let _LinkedIdentityHashSet = _LinkedIdentityHashSet$(); |
| 4997 let _LinkedCustomHashSet$ = dart.generic(function(E) { | 5600 let _LinkedCustomHashSet$ = dart.generic(function(E) { |
| 4998 class _LinkedCustomHashSet extends _LinkedHashSet$(E) { | 5601 class _LinkedCustomHashSet extends _LinkedHashSet$(E) { |
| 4999 _LinkedCustomHashSet(equality, hasher, validKey) { | 5602 _LinkedCustomHashSet(equality, hasher, validKey) { |
| 5000 this[_equality] = equality; | 5603 this[_equality] = equality; |
| 5001 this[_hasher] = hasher; | 5604 this[_hasher] = hasher; |
| 5002 this[_validKey] = validKey != null ? validKey : x => dart.is(x, E); | 5605 this[_validKey] = validKey != null ? validKey : dart.fn(x => dart.is(x,
E), core.bool, [dart.dynamic]); |
| 5003 super._LinkedHashSet(); | 5606 super._LinkedHashSet(); |
| 5004 } | 5607 } |
| 5005 [_newSet]() { | 5608 [_newSet]() { |
| 5006 return new (_LinkedCustomHashSet$(E))(this[_equality], this[_hasher], th
is[_validKey]); | 5609 return new (_LinkedCustomHashSet$(E))(this[_equality], this[_hasher], th
is[_validKey]); |
| 5007 } | 5610 } |
| 5008 [_findBucketIndex](bucket, element) { | 5611 [_findBucketIndex](bucket, element) { |
| 5009 if (bucket == null) | 5612 if (bucket == null) |
| 5010 return -1; | 5613 return -1; |
| 5011 let length = bucket.length; | 5614 let length = bucket.length; |
| 5012 for (let i = 0; dart.notNull(i) < dart.notNull(length); i = dart.notNull
(i) + 1) { | 5615 for (let i = 0; dart.notNull(i) < dart.notNull(length); i = dart.notNull
(i) + 1) { |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5046 return true; | 5649 return true; |
| 5047 } | 5650 } |
| 5048 removeAll(elements) { | 5651 removeAll(elements) { |
| 5049 for (let element of elements) { | 5652 for (let element of elements) { |
| 5050 if (this[_validKey](element)) { | 5653 if (this[_validKey](element)) { |
| 5051 super[_remove](element); | 5654 super[_remove](element); |
| 5052 } | 5655 } |
| 5053 } | 5656 } |
| 5054 } | 5657 } |
| 5055 } | 5658 } |
| 5659 dart.setSignature(_LinkedCustomHashSet, { |
| 5660 methods: () => ({ |
| 5661 [_newSet]: dart.functionType(core.Set$(E), []), |
| 5662 [_findBucketIndex]: dart.functionType(core.int, [dart.dynamic, dart.dyna
mic]), |
| 5663 [_computeHashCode]: dart.functionType(core.int, [dart.dynamic]), |
| 5664 add: dart.functionType(core.bool, [E]), |
| 5665 [core.$contains]: dart.functionType(core.bool, [core.Object]), |
| 5666 lookup: dart.functionType(E, [core.Object]), |
| 5667 remove: dart.functionType(core.bool, [core.Object]), |
| 5668 containsAll: dart.functionType(core.bool, [core.Iterable$(core.Object)])
, |
| 5669 removeAll: dart.functionType(dart.void, [core.Iterable$(core.Object)]) |
| 5670 }) |
| 5671 }); |
| 5056 return _LinkedCustomHashSet; | 5672 return _LinkedCustomHashSet; |
| 5057 }); | 5673 }); |
| 5058 let _LinkedCustomHashSet = _LinkedCustomHashSet$(); | 5674 let _LinkedCustomHashSet = _LinkedCustomHashSet$(); |
| 5059 class LinkedHashSetCell extends core.Object { | 5675 class LinkedHashSetCell extends core.Object { |
| 5060 LinkedHashSetCell(element) { | 5676 LinkedHashSetCell(element) { |
| 5061 this[_element] = element; | 5677 this[_element] = element; |
| 5062 this[_next] = null; | 5678 this[_next] = null; |
| 5063 this[_previous] = null; | 5679 this[_previous] = null; |
| 5064 } | 5680 } |
| 5065 } | 5681 } |
| 5682 dart.setSignature(LinkedHashSetCell, {}); |
| 5066 let LinkedHashSetIterator$ = dart.generic(function(E) { | 5683 let LinkedHashSetIterator$ = dart.generic(function(E) { |
| 5067 class LinkedHashSetIterator extends core.Object { | 5684 class LinkedHashSetIterator extends core.Object { |
| 5068 LinkedHashSetIterator(set, modifications) { | 5685 LinkedHashSetIterator(set, modifications) { |
| 5069 this[_set] = set; | 5686 this[_set] = set; |
| 5070 this[_modifications] = modifications; | 5687 this[_modifications] = modifications; |
| 5071 this[_cell] = null; | 5688 this[_cell] = null; |
| 5072 this[_current] = null; | 5689 this[_current] = null; |
| 5073 this[_cell] = dart.as(dart.dload(this[_set], _first), LinkedHashSetCell)
; | 5690 this[_cell] = dart.as(dart.dload(this[_set], _first), LinkedHashSetCell)
; |
| 5074 } | 5691 } |
| 5075 get current() { | 5692 get current() { |
| 5076 return this[_current]; | 5693 return this[_current]; |
| 5077 } | 5694 } |
| 5078 moveNext() { | 5695 moveNext() { |
| 5079 if (!dart.equals(this[_modifications], dart.dload(this[_set], _modificat
ions))) { | 5696 if (!dart.equals(this[_modifications], dart.dload(this[_set], _modificat
ions))) { |
| 5080 throw new core.ConcurrentModificationError(this[_set]); | 5697 throw new core.ConcurrentModificationError(this[_set]); |
| 5081 } else if (this[_cell] == null) { | 5698 } else if (this[_cell] == null) { |
| 5082 this[_current] = null; | 5699 this[_current] = null; |
| 5083 return false; | 5700 return false; |
| 5084 } else { | 5701 } else { |
| 5085 this[_current] = dart.as(this[_cell][_element], E); | 5702 this[_current] = dart.as(this[_cell][_element], E); |
| 5086 this[_cell] = this[_cell][_next]; | 5703 this[_cell] = this[_cell][_next]; |
| 5087 return true; | 5704 return true; |
| 5088 } | 5705 } |
| 5089 } | 5706 } |
| 5090 } | 5707 } |
| 5091 LinkedHashSetIterator[dart.implements] = () => [core.Iterator$(E)]; | 5708 LinkedHashSetIterator[dart.implements] = () => [core.Iterator$(E)]; |
| 5709 dart.setSignature(LinkedHashSetIterator, { |
| 5710 methods: () => ({moveNext: dart.functionType(core.bool, [])}) |
| 5711 }); |
| 5092 return LinkedHashSetIterator; | 5712 return LinkedHashSetIterator; |
| 5093 }); | 5713 }); |
| 5094 let LinkedHashSetIterator = LinkedHashSetIterator$(); | 5714 let LinkedHashSetIterator = LinkedHashSetIterator$(); |
| 5095 // Exports: | 5715 // Exports: |
| 5096 exports.UnmodifiableListView$ = UnmodifiableListView$; | 5716 exports.UnmodifiableListView$ = UnmodifiableListView$; |
| 5097 exports.HashMap$ = HashMap$; | 5717 exports.HashMap$ = HashMap$; |
| 5098 exports.HashMap = HashMap; | 5718 exports.HashMap = HashMap; |
| 5099 exports.SetMixin$ = SetMixin$; | 5719 exports.SetMixin$ = SetMixin$; |
| 5100 exports.SetMixin = SetMixin; | 5720 exports.SetMixin = SetMixin; |
| 5101 exports.SetBase$ = SetBase$; | 5721 exports.SetBase$ = SetBase$; |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5151 exports.LinkedHashMapKeyIterable$ = LinkedHashMapKeyIterable$; | 5771 exports.LinkedHashMapKeyIterable$ = LinkedHashMapKeyIterable$; |
| 5152 exports.LinkedHashMapKeyIterable = LinkedHashMapKeyIterable; | 5772 exports.LinkedHashMapKeyIterable = LinkedHashMapKeyIterable; |
| 5153 exports.LinkedHashMapKeyIterator$ = LinkedHashMapKeyIterator$; | 5773 exports.LinkedHashMapKeyIterator$ = LinkedHashMapKeyIterator$; |
| 5154 exports.LinkedHashMapKeyIterator = LinkedHashMapKeyIterator; | 5774 exports.LinkedHashMapKeyIterator = LinkedHashMapKeyIterator; |
| 5155 exports.HashSetIterator$ = HashSetIterator$; | 5775 exports.HashSetIterator$ = HashSetIterator$; |
| 5156 exports.HashSetIterator = HashSetIterator; | 5776 exports.HashSetIterator = HashSetIterator; |
| 5157 exports.LinkedHashSetCell = LinkedHashSetCell; | 5777 exports.LinkedHashSetCell = LinkedHashSetCell; |
| 5158 exports.LinkedHashSetIterator$ = LinkedHashSetIterator$; | 5778 exports.LinkedHashSetIterator$ = LinkedHashSetIterator$; |
| 5159 exports.LinkedHashSetIterator = LinkedHashSetIterator; | 5779 exports.LinkedHashSetIterator = LinkedHashSetIterator; |
| 5160 })(collection, _internal, core, _js_helper, math); | 5780 })(collection, _internal, core, _js_helper, math); |
| OLD | NEW |