| 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) { |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 let i = 0; | 190 let i = 0; |
| 191 for (let element of this) | 191 for (let element of this) |
| 192 result[core.$set]((() => { | 192 result[core.$set]((() => { |
| 193 let x = i; | 193 let x = i; |
| 194 i = dart.notNull(x) + 1; | 194 i = dart.notNull(x) + 1; |
| 195 return x; | 195 return x; |
| 196 })(), element); | 196 })(), element); |
| 197 return result; | 197 return result; |
| 198 } | 198 } |
| 199 [core.$map](f) { | 199 [core.$map](f) { |
| 200 dart.as(f, dart.functionType(dart.dynamic, [E])); | 200 dart.as(f, dart.functionType(core.Object, [E])); |
| 201 return new (_internal.EfficientLengthMappedIterable$(E, dart.dynamic))(t
his, f); | 201 return new (_internal.EfficientLengthMappedIterable$(E, core.Object))(th
is, f); |
| 202 } | 202 } |
| 203 get [core.$single]() { | 203 get [core.$single]() { |
| 204 if (dart.notNull(this[core.$length]) > 1) | 204 if (dart.notNull(this[core.$length]) > 1) |
| 205 throw _internal.IterableElementError.tooMany(); | 205 throw _internal.IterableElementError.tooMany(); |
| 206 let it = this[core.$iterator]; | 206 let it = this[core.$iterator]; |
| 207 if (!dart.notNull(it.moveNext())) | 207 if (!dart.notNull(it.moveNext())) |
| 208 throw _internal.IterableElementError.noElement(); | 208 throw _internal.IterableElementError.noElement(); |
| 209 let result = it.current; | 209 let result = it.current; |
| 210 return result; | 210 return result; |
| 211 } | 211 } |
| 212 toString() { | 212 toString() { |
| 213 return IterableBase.iterableToFullString(this, '{', '}'); | 213 return IterableBase.iterableToFullString(this, '{', '}'); |
| 214 } | 214 } |
| 215 [core.$where](f) { | 215 [core.$where](f) { |
| 216 dart.as(f, dart.functionType(core.bool, [E])); | 216 dart.as(f, dart.functionType(core.bool, [E])); |
| 217 return new (_internal.WhereIterable$(E))(this, f); | 217 return new (_internal.WhereIterable$(E))(this, f); |
| 218 } | 218 } |
| 219 [core.$expand](f) { | 219 [core.$expand](f) { |
| 220 dart.as(f, dart.functionType(core.Iterable, [E])); | 220 dart.as(f, dart.functionType(core.Iterable, [E])); |
| 221 return new (_internal.ExpandIterable$(E, dart.dynamic))(this, f); | 221 return new (_internal.ExpandIterable$(E, core.Object))(this, f); |
| 222 } | 222 } |
| 223 [core.$forEach](f) { | 223 [core.$forEach](f) { |
| 224 dart.as(f, dart.functionType(dart.void, [E])); | 224 dart.as(f, dart.functionType(dart.void, [E])); |
| 225 for (let element of this) | 225 for (let element of this) |
| 226 f(element); | 226 f(element); |
| 227 } | 227 } |
| 228 [core.$reduce](combine) { | 228 [core.$reduce](combine) { |
| 229 dart.as(combine, dart.functionType(E, [E, E])); | 229 dart.as(combine, dart.functionType(E, [E, E])); |
| 230 let iterator = this[core.$iterator]; | 230 let iterator = this[core.$iterator]; |
| 231 if (!dart.notNull(iterator.moveNext())) { | 231 if (!dart.notNull(iterator.moveNext())) { |
| 232 throw _internal.IterableElementError.noElement(); | 232 throw _internal.IterableElementError.noElement(); |
| 233 } | 233 } |
| 234 let value = iterator.current; | 234 let value = iterator.current; |
| 235 while (iterator.moveNext()) { | 235 while (iterator.moveNext()) { |
| 236 value = combine(value, iterator.current); | 236 value = combine(value, iterator.current); |
| 237 } | 237 } |
| 238 return value; | 238 return value; |
| 239 } | 239 } |
| 240 [core.$fold](initialValue, combine) { | 240 [core.$fold](initialValue, combine) { |
| 241 dart.as(combine, dart.functionType(dart.dynamic, [dart.dynamic, E])); | 241 dart.as(combine, dart.functionType(core.Object, [dart.bottom, E])); |
| 242 let value = initialValue; | 242 let value = initialValue; |
| 243 for (let element of this) | 243 for (let element of this) |
| 244 value = dart.dcall(combine, value, element); | 244 value = dart.dcall(combine, value, element); |
| 245 return value; | 245 return value; |
| 246 } | 246 } |
| 247 [core.$every](f) { | 247 [core.$every](f) { |
| 248 dart.as(f, dart.functionType(core.bool, [E])); | 248 dart.as(f, dart.functionType(core.bool, [E])); |
| 249 for (let element of this) { | 249 for (let element of this) { |
| 250 if (!dart.notNull(f(element))) | 250 if (!dart.notNull(f(element))) |
| 251 return false; | 251 return false; |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 addAll: dart.functionType(dart.void, [core.Iterable$(E)]), | 379 addAll: dart.functionType(dart.void, [core.Iterable$(E)]), |
| 380 removeAll: dart.functionType(dart.void, [core.Iterable$(core.Object)]), | 380 removeAll: dart.functionType(dart.void, [core.Iterable$(core.Object)]), |
| 381 retainAll: dart.functionType(dart.void, [core.Iterable$(core.Object)]), | 381 retainAll: dart.functionType(dart.void, [core.Iterable$(core.Object)]), |
| 382 removeWhere: dart.functionType(dart.void, [dart.functionType(core.bool,
[E])]), | 382 removeWhere: dart.functionType(dart.void, [dart.functionType(core.bool,
[E])]), |
| 383 retainWhere: dart.functionType(dart.void, [dart.functionType(core.bool,
[E])]), | 383 retainWhere: dart.functionType(dart.void, [dart.functionType(core.bool,
[E])]), |
| 384 containsAll: dart.functionType(core.bool, [core.Iterable$(core.Object)])
, | 384 containsAll: dart.functionType(core.bool, [core.Iterable$(core.Object)])
, |
| 385 union: dart.functionType(core.Set$(E), [core.Set$(E)]), | 385 union: dart.functionType(core.Set$(E), [core.Set$(E)]), |
| 386 intersection: dart.functionType(core.Set$(E), [core.Set$(core.Object)]), | 386 intersection: dart.functionType(core.Set$(E), [core.Set$(core.Object)]), |
| 387 difference: dart.functionType(core.Set$(E), [core.Set$(core.Object)]), | 387 difference: dart.functionType(core.Set$(E), [core.Set$(core.Object)]), |
| 388 [core.$toList]: dart.functionType(core.List$(E), [], {rowabl: core.bool}
), | 388 [core.$toList]: dart.functionType(core.List$(E), [], {rowabl: core.bool}
), |
| 389 [core.$map]: dart.functionType(core.Iterable, [dart.functionType(dart.dy
namic, [E])]), | 389 [core.$map]: dart.functionType(core.Iterable, [dart.functionType(core.Ob
ject, [E])]), |
| 390 [core.$where]: dart.functionType(core.Iterable$(E), [dart.functionType(c
ore.bool, [E])]), | 390 [core.$where]: dart.functionType(core.Iterable$(E), [dart.functionType(c
ore.bool, [E])]), |
| 391 [core.$expand]: dart.functionType(core.Iterable, [dart.functionType(core
.Iterable, [E])]), | 391 [core.$expand]: dart.functionType(core.Iterable, [dart.functionType(core
.Iterable, [E])]), |
| 392 [core.$forEach]: dart.functionType(dart.void, [dart.functionType(dart.vo
id, [E])]), | 392 [core.$forEach]: dart.functionType(dart.void, [dart.functionType(dart.vo
id, [E])]), |
| 393 [core.$reduce]: dart.functionType(E, [dart.functionType(E, [E, E])]), | 393 [core.$reduce]: dart.functionType(E, [dart.functionType(E, [E, E])]), |
| 394 [core.$fold]: dart.functionType(dart.dynamic, [dart.dynamic, dart.functi
onType(dart.dynamic, [dart.dynamic, E])]), | 394 [core.$fold]: dart.functionType(core.Object, [core.Object, dart.function
Type(core.Object, [dart.bottom, E])]), |
| 395 [core.$every]: dart.functionType(core.bool, [dart.functionType(core.bool
, [E])]), | 395 [core.$every]: dart.functionType(core.bool, [dart.functionType(core.bool
, [E])]), |
| 396 [core.$join]: dart.functionType(core.String, [], [core.String]), | 396 [core.$join]: dart.functionType(core.String, [], [core.String]), |
| 397 [core.$any]: dart.functionType(core.bool, [dart.functionType(core.bool,
[E])]), | 397 [core.$any]: dart.functionType(core.bool, [dart.functionType(core.bool,
[E])]), |
| 398 [core.$take]: dart.functionType(core.Iterable$(E), [core.int]), | 398 [core.$take]: dart.functionType(core.Iterable$(E), [core.int]), |
| 399 [core.$takeWhile]: dart.functionType(core.Iterable$(E), [dart.functionTy
pe(core.bool, [E])]), | 399 [core.$takeWhile]: dart.functionType(core.Iterable$(E), [dart.functionTy
pe(core.bool, [E])]), |
| 400 [core.$skip]: dart.functionType(core.Iterable$(E), [core.int]), | 400 [core.$skip]: dart.functionType(core.Iterable$(E), [core.int]), |
| 401 [core.$skipWhile]: dart.functionType(core.Iterable$(E), [dart.functionTy
pe(core.bool, [E])]), | 401 [core.$skipWhile]: dart.functionType(core.Iterable$(E), [dart.functionTy
pe(core.bool, [E])]), |
| 402 [core.$firstWhere]: dart.functionType(E, [dart.functionType(core.bool, [
E])], {rEls: dart.functionType(E, [])}), | 402 [core.$firstWhere]: dart.functionType(E, [dart.functionType(core.bool, [
E])], {rEls: dart.functionType(E, [])}), |
| 403 [core.$lastWhere]: dart.functionType(E, [dart.functionType(core.bool, [E
])], {rEls: dart.functionType(E, [])}), | 403 [core.$lastWhere]: dart.functionType(E, [dart.functionType(core.bool, [E
])], {rEls: dart.functionType(E, [])}), |
| 404 [core.$singleWhere]: dart.functionType(E, [dart.functionType(core.bool,
[E])]), | 404 [core.$singleWhere]: dart.functionType(E, [dart.functionType(core.bool,
[E])]), |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 503 } | 503 } |
| 504 HashSet[dart.implements] = () => [core.Set$(E)]; | 504 HashSet[dart.implements] = () => [core.Set$(E)]; |
| 505 dart.defineNamedConstructor(HashSet, 'identity'); | 505 dart.defineNamedConstructor(HashSet, 'identity'); |
| 506 dart.defineNamedConstructor(HashSet, 'from'); | 506 dart.defineNamedConstructor(HashSet, 'from'); |
| 507 return HashSet; | 507 return HashSet; |
| 508 }); | 508 }); |
| 509 let HashSet = HashSet$(); | 509 let HashSet = HashSet$(); |
| 510 let IterableMixin$ = dart.generic(function(E) { | 510 let IterableMixin$ = dart.generic(function(E) { |
| 511 class IterableMixin extends core.Object { | 511 class IterableMixin extends core.Object { |
| 512 [core.$map](f) { | 512 [core.$map](f) { |
| 513 dart.as(f, dart.functionType(dart.dynamic, [E])); | 513 dart.as(f, dart.functionType(core.Object, [E])); |
| 514 return new (_internal.MappedIterable$(E, dart.dynamic))(this, f); | 514 return new (_internal.MappedIterable$(E, core.Object))(this, f); |
| 515 } | 515 } |
| 516 [core.$where](f) { | 516 [core.$where](f) { |
| 517 dart.as(f, dart.functionType(core.bool, [E])); | 517 dart.as(f, dart.functionType(core.bool, [E])); |
| 518 return new (_internal.WhereIterable$(E))(this, f); | 518 return new (_internal.WhereIterable$(E))(this, f); |
| 519 } | 519 } |
| 520 [core.$expand](f) { | 520 [core.$expand](f) { |
| 521 dart.as(f, dart.functionType(core.Iterable, [E])); | 521 dart.as(f, dart.functionType(core.Iterable, [E])); |
| 522 return new (_internal.ExpandIterable$(E, dart.dynamic))(this, f); | 522 return new (_internal.ExpandIterable$(E, core.Object))(this, f); |
| 523 } | 523 } |
| 524 [core.$contains](element) { | 524 [core.$contains](element) { |
| 525 for (let e of this) { | 525 for (let e of this) { |
| 526 if (dart.equals(e, element)) | 526 if (dart.equals(e, element)) |
| 527 return true; | 527 return true; |
| 528 } | 528 } |
| 529 return false; | 529 return false; |
| 530 } | 530 } |
| 531 [core.$forEach](f) { | 531 [core.$forEach](f) { |
| 532 dart.as(f, dart.functionType(dart.void, [E])); | 532 dart.as(f, dart.functionType(dart.void, [E])); |
| 533 for (let element of this) | 533 for (let element of this) |
| 534 f(element); | 534 f(element); |
| 535 } | 535 } |
| 536 [core.$reduce](combine) { | 536 [core.$reduce](combine) { |
| 537 dart.as(combine, dart.functionType(E, [E, E])); | 537 dart.as(combine, dart.functionType(E, [E, E])); |
| 538 let iterator = this[core.$iterator]; | 538 let iterator = this[core.$iterator]; |
| 539 if (!dart.notNull(iterator.moveNext())) { | 539 if (!dart.notNull(iterator.moveNext())) { |
| 540 throw _internal.IterableElementError.noElement(); | 540 throw _internal.IterableElementError.noElement(); |
| 541 } | 541 } |
| 542 let value = iterator.current; | 542 let value = iterator.current; |
| 543 while (iterator.moveNext()) { | 543 while (iterator.moveNext()) { |
| 544 value = combine(value, iterator.current); | 544 value = combine(value, iterator.current); |
| 545 } | 545 } |
| 546 return value; | 546 return value; |
| 547 } | 547 } |
| 548 [core.$fold](initialValue, combine) { | 548 [core.$fold](initialValue, combine) { |
| 549 dart.as(combine, dart.functionType(dart.dynamic, [dart.dynamic, E])); | 549 dart.as(combine, dart.functionType(core.Object, [dart.bottom, E])); |
| 550 let value = initialValue; | 550 let value = initialValue; |
| 551 for (let element of this) | 551 for (let element of this) |
| 552 value = dart.dcall(combine, value, element); | 552 value = dart.dcall(combine, value, element); |
| 553 return value; | 553 return value; |
| 554 } | 554 } |
| 555 [core.$every](f) { | 555 [core.$every](f) { |
| 556 dart.as(f, dart.functionType(core.bool, [E])); | 556 dart.as(f, dart.functionType(core.bool, [E])); |
| 557 for (let element of this) { | 557 for (let element of this) { |
| 558 if (!dart.notNull(f(element))) | 558 if (!dart.notNull(f(element))) |
| 559 return false; | 559 return false; |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 713 toString() { | 713 toString() { |
| 714 return IterableBase.iterableToShortString(this, '(', ')'); | 714 return IterableBase.iterableToShortString(this, '(', ')'); |
| 715 } | 715 } |
| 716 [Symbol.iterator]() { | 716 [Symbol.iterator]() { |
| 717 return new dart.JsIterator(this[core.$iterator]); | 717 return new dart.JsIterator(this[core.$iterator]); |
| 718 } | 718 } |
| 719 } | 719 } |
| 720 IterableMixin[dart.implements] = () => [core.Iterable$(E)]; | 720 IterableMixin[dart.implements] = () => [core.Iterable$(E)]; |
| 721 dart.setSignature(IterableMixin, { | 721 dart.setSignature(IterableMixin, { |
| 722 methods: () => ({ | 722 methods: () => ({ |
| 723 [core.$map]: dart.functionType(core.Iterable, [dart.functionType(dart.dy
namic, [E])]), | 723 [core.$map]: dart.functionType(core.Iterable, [dart.functionType(core.Ob
ject, [E])]), |
| 724 [core.$where]: dart.functionType(core.Iterable$(E), [dart.functionType(c
ore.bool, [E])]), | 724 [core.$where]: dart.functionType(core.Iterable$(E), [dart.functionType(c
ore.bool, [E])]), |
| 725 [core.$expand]: dart.functionType(core.Iterable, [dart.functionType(core
.Iterable, [E])]), | 725 [core.$expand]: dart.functionType(core.Iterable, [dart.functionType(core
.Iterable, [E])]), |
| 726 [core.$contains]: dart.functionType(core.bool, [core.Object]), | 726 [core.$contains]: dart.functionType(core.bool, [core.Object]), |
| 727 [core.$forEach]: dart.functionType(dart.void, [dart.functionType(dart.vo
id, [E])]), | 727 [core.$forEach]: dart.functionType(dart.void, [dart.functionType(dart.vo
id, [E])]), |
| 728 [core.$reduce]: dart.functionType(E, [dart.functionType(E, [E, E])]), | 728 [core.$reduce]: dart.functionType(E, [dart.functionType(E, [E, E])]), |
| 729 [core.$fold]: dart.functionType(dart.dynamic, [dart.dynamic, dart.functi
onType(dart.dynamic, [dart.dynamic, E])]), | 729 [core.$fold]: dart.functionType(core.Object, [core.Object, dart.function
Type(core.Object, [dart.bottom, E])]), |
| 730 [core.$every]: dart.functionType(core.bool, [dart.functionType(core.bool
, [E])]), | 730 [core.$every]: dart.functionType(core.bool, [dart.functionType(core.bool
, [E])]), |
| 731 [core.$join]: dart.functionType(core.String, [], [core.String]), | 731 [core.$join]: dart.functionType(core.String, [], [core.String]), |
| 732 [core.$any]: dart.functionType(core.bool, [dart.functionType(core.bool,
[E])]), | 732 [core.$any]: dart.functionType(core.bool, [dart.functionType(core.bool,
[E])]), |
| 733 [core.$toList]: dart.functionType(core.List$(E), [], {rowabl: core.bool}
), | 733 [core.$toList]: dart.functionType(core.List$(E), [], {rowabl: core.bool}
), |
| 734 [core.$toSet]: dart.functionType(core.Set$(E), []), | 734 [core.$toSet]: dart.functionType(core.Set$(E), []), |
| 735 [core.$take]: dart.functionType(core.Iterable$(E), [core.int]), | 735 [core.$take]: dart.functionType(core.Iterable$(E), [core.int]), |
| 736 [core.$takeWhile]: dart.functionType(core.Iterable$(E), [dart.functionTy
pe(core.bool, [E])]), | 736 [core.$takeWhile]: dart.functionType(core.Iterable$(E), [dart.functionTy
pe(core.bool, [E])]), |
| 737 [core.$skip]: dart.functionType(core.Iterable$(E), [core.int]), | 737 [core.$skip]: dart.functionType(core.Iterable$(E), [core.int]), |
| 738 [core.$skipWhile]: dart.functionType(core.Iterable$(E), [dart.functionTy
pe(core.bool, [E])]), | 738 [core.$skipWhile]: dart.functionType(core.Iterable$(E), [dart.functionTy
pe(core.bool, [E])]), |
| 739 [core.$firstWhere]: dart.functionType(E, [dart.functionType(core.bool, [
E])], {rEls: dart.functionType(E, [])}), | 739 [core.$firstWhere]: dart.functionType(E, [dart.functionType(core.bool, [
E])], {rEls: dart.functionType(E, [])}), |
| 740 [core.$lastWhere]: dart.functionType(E, [dart.functionType(core.bool, [E
])], {rEls: dart.functionType(E, [])}), | 740 [core.$lastWhere]: dart.functionType(E, [dart.functionType(core.bool, [E
])], {rEls: dart.functionType(E, [])}), |
| 741 [core.$singleWhere]: dart.functionType(E, [dart.functionType(core.bool,
[E])]), | 741 [core.$singleWhere]: dart.functionType(E, [dart.functionType(core.bool,
[E])]), |
| 742 [core.$elementAt]: dart.functionType(E, [core.int]) | 742 [core.$elementAt]: dart.functionType(E, [core.int]) |
| 743 }) | 743 }) |
| 744 }); | 744 }); |
| 745 return IterableMixin; | 745 return IterableMixin; |
| 746 }); | 746 }); |
| 747 let IterableMixin = IterableMixin$(); | 747 let IterableMixin = IterableMixin$(); |
| 748 let IterableBase$ = dart.generic(function(E) { | 748 let IterableBase$ = dart.generic(function(E) { |
| 749 class IterableBase extends core.Object { | 749 class IterableBase extends core.Object { |
| 750 IterableBase() { | 750 IterableBase() { |
| 751 } | 751 } |
| 752 [core.$map](f) { | 752 [core.$map](f) { |
| 753 dart.as(f, dart.functionType(dart.dynamic, [E])); | 753 dart.as(f, dart.functionType(core.Object, [E])); |
| 754 return new (_internal.MappedIterable$(E, dart.dynamic))(this, f); | 754 return new (_internal.MappedIterable$(E, core.Object))(this, f); |
| 755 } | 755 } |
| 756 [core.$where](f) { | 756 [core.$where](f) { |
| 757 dart.as(f, dart.functionType(core.bool, [E])); | 757 dart.as(f, dart.functionType(core.bool, [E])); |
| 758 return new (_internal.WhereIterable$(E))(this, f); | 758 return new (_internal.WhereIterable$(E))(this, f); |
| 759 } | 759 } |
| 760 [core.$expand](f) { | 760 [core.$expand](f) { |
| 761 dart.as(f, dart.functionType(core.Iterable, [E])); | 761 dart.as(f, dart.functionType(core.Iterable, [E])); |
| 762 return new (_internal.ExpandIterable$(E, dart.dynamic))(this, f); | 762 return new (_internal.ExpandIterable$(E, core.Object))(this, f); |
| 763 } | 763 } |
| 764 [core.$contains](element) { | 764 [core.$contains](element) { |
| 765 for (let e of this) { | 765 for (let e of this) { |
| 766 if (dart.equals(e, element)) | 766 if (dart.equals(e, element)) |
| 767 return true; | 767 return true; |
| 768 } | 768 } |
| 769 return false; | 769 return false; |
| 770 } | 770 } |
| 771 [core.$forEach](f) { | 771 [core.$forEach](f) { |
| 772 dart.as(f, dart.functionType(dart.void, [E])); | 772 dart.as(f, dart.functionType(dart.void, [E])); |
| 773 for (let element of this) | 773 for (let element of this) |
| 774 f(element); | 774 f(element); |
| 775 } | 775 } |
| 776 [core.$reduce](combine) { | 776 [core.$reduce](combine) { |
| 777 dart.as(combine, dart.functionType(E, [E, E])); | 777 dart.as(combine, dart.functionType(E, [E, E])); |
| 778 let iterator = this[core.$iterator]; | 778 let iterator = this[core.$iterator]; |
| 779 if (!dart.notNull(iterator.moveNext())) { | 779 if (!dart.notNull(iterator.moveNext())) { |
| 780 throw _internal.IterableElementError.noElement(); | 780 throw _internal.IterableElementError.noElement(); |
| 781 } | 781 } |
| 782 let value = iterator.current; | 782 let value = iterator.current; |
| 783 while (iterator.moveNext()) { | 783 while (iterator.moveNext()) { |
| 784 value = combine(value, iterator.current); | 784 value = combine(value, iterator.current); |
| 785 } | 785 } |
| 786 return value; | 786 return value; |
| 787 } | 787 } |
| 788 [core.$fold](initialValue, combine) { | 788 [core.$fold](initialValue, combine) { |
| 789 dart.as(combine, dart.functionType(dart.dynamic, [dart.dynamic, E])); | 789 dart.as(combine, dart.functionType(core.Object, [dart.bottom, E])); |
| 790 let value = initialValue; | 790 let value = initialValue; |
| 791 for (let element of this) | 791 for (let element of this) |
| 792 value = dart.dcall(combine, value, element); | 792 value = dart.dcall(combine, value, element); |
| 793 return value; | 793 return value; |
| 794 } | 794 } |
| 795 [core.$every](f) { | 795 [core.$every](f) { |
| 796 dart.as(f, dart.functionType(core.bool, [E])); | 796 dart.as(f, dart.functionType(core.bool, [E])); |
| 797 for (let element of this) { | 797 for (let element of this) { |
| 798 if (!dart.notNull(f(element))) | 798 if (!dart.notNull(f(element))) |
| 799 return false; | 799 return false; |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1083 parts[core.$add](penultimateString); | 1083 parts[core.$add](penultimateString); |
| 1084 parts[core.$add](ultimateString); | 1084 parts[core.$add](ultimateString); |
| 1085 } | 1085 } |
| 1086 [Symbol.iterator]() { | 1086 [Symbol.iterator]() { |
| 1087 return new dart.JsIterator(this[core.$iterator]); | 1087 return new dart.JsIterator(this[core.$iterator]); |
| 1088 } | 1088 } |
| 1089 } | 1089 } |
| 1090 IterableBase[dart.implements] = () => [core.Iterable$(E)]; | 1090 IterableBase[dart.implements] = () => [core.Iterable$(E)]; |
| 1091 dart.setSignature(IterableBase, { | 1091 dart.setSignature(IterableBase, { |
| 1092 methods: () => ({ | 1092 methods: () => ({ |
| 1093 [core.$map]: dart.functionType(core.Iterable, [dart.functionType(dart.dy
namic, [E])]), | 1093 [core.$map]: dart.functionType(core.Iterable, [dart.functionType(core.Ob
ject, [E])]), |
| 1094 [core.$where]: dart.functionType(core.Iterable$(E), [dart.functionType(c
ore.bool, [E])]), | 1094 [core.$where]: dart.functionType(core.Iterable$(E), [dart.functionType(c
ore.bool, [E])]), |
| 1095 [core.$expand]: dart.functionType(core.Iterable, [dart.functionType(core
.Iterable, [E])]), | 1095 [core.$expand]: dart.functionType(core.Iterable, [dart.functionType(core
.Iterable, [E])]), |
| 1096 [core.$contains]: dart.functionType(core.bool, [core.Object]), | 1096 [core.$contains]: dart.functionType(core.bool, [core.Object]), |
| 1097 [core.$forEach]: dart.functionType(dart.void, [dart.functionType(dart.vo
id, [E])]), | 1097 [core.$forEach]: dart.functionType(dart.void, [dart.functionType(dart.vo
id, [E])]), |
| 1098 [core.$reduce]: dart.functionType(E, [dart.functionType(E, [E, E])]), | 1098 [core.$reduce]: dart.functionType(E, [dart.functionType(E, [E, E])]), |
| 1099 [core.$fold]: dart.functionType(dart.dynamic, [dart.dynamic, dart.functi
onType(dart.dynamic, [dart.dynamic, E])]), | 1099 [core.$fold]: dart.functionType(core.Object, [core.Object, dart.function
Type(core.Object, [dart.bottom, E])]), |
| 1100 [core.$every]: dart.functionType(core.bool, [dart.functionType(core.bool
, [E])]), | 1100 [core.$every]: dart.functionType(core.bool, [dart.functionType(core.bool
, [E])]), |
| 1101 [core.$join]: dart.functionType(core.String, [], [core.String]), | 1101 [core.$join]: dart.functionType(core.String, [], [core.String]), |
| 1102 [core.$any]: dart.functionType(core.bool, [dart.functionType(core.bool,
[E])]), | 1102 [core.$any]: dart.functionType(core.bool, [dart.functionType(core.bool,
[E])]), |
| 1103 [core.$toList]: dart.functionType(core.List$(E), [], {rowabl: core.bool}
), | 1103 [core.$toList]: dart.functionType(core.List$(E), [], {rowabl: core.bool}
), |
| 1104 [core.$toSet]: dart.functionType(core.Set$(E), []), | 1104 [core.$toSet]: dart.functionType(core.Set$(E), []), |
| 1105 [core.$take]: dart.functionType(core.Iterable$(E), [core.int]), | 1105 [core.$take]: dart.functionType(core.Iterable$(E), [core.int]), |
| 1106 [core.$takeWhile]: dart.functionType(core.Iterable$(E), [dart.functionTy
pe(core.bool, [E])]), | 1106 [core.$takeWhile]: dart.functionType(core.Iterable$(E), [dart.functionTy
pe(core.bool, [E])]), |
| 1107 [core.$skip]: dart.functionType(core.Iterable$(E), [core.int]), | 1107 [core.$skip]: dart.functionType(core.Iterable$(E), [core.int]), |
| 1108 [core.$skipWhile]: dart.functionType(core.Iterable$(E), [dart.functionTy
pe(core.bool, [E])]), | 1108 [core.$skipWhile]: dart.functionType(core.Iterable$(E), [dart.functionTy
pe(core.bool, [E])]), |
| 1109 [core.$firstWhere]: dart.functionType(E, [dart.functionType(core.bool, [
E])], {rEls: dart.functionType(E, [])}), | 1109 [core.$firstWhere]: dart.functionType(E, [dart.functionType(core.bool, [
E])], {rEls: dart.functionType(E, [])}), |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1308 addFirst(entry) { | 1308 addFirst(entry) { |
| 1309 dart.as(entry, E); | 1309 dart.as(entry, E); |
| 1310 this[_insertAfter](this, entry); | 1310 this[_insertAfter](this, entry); |
| 1311 } | 1311 } |
| 1312 add(entry) { | 1312 add(entry) { |
| 1313 dart.as(entry, E); | 1313 dart.as(entry, E); |
| 1314 this[_insertAfter](this[_previous], entry); | 1314 this[_insertAfter](this[_previous], entry); |
| 1315 } | 1315 } |
| 1316 addAll(entries) { | 1316 addAll(entries) { |
| 1317 dart.as(entries, core.Iterable$(E)); | 1317 dart.as(entries, core.Iterable$(E)); |
| 1318 entries[core.$forEach](dart.fn((entry => this[_insertAfter](this[_previo
us], dart.as(entry, E))).bind(this), dart.void, [dart.dynamic])); | 1318 entries[core.$forEach](dart.fn((entry => this[_insertAfter](this[_previo
us], dart.as(entry, E))).bind(this), dart.void, [core.Object])); |
| 1319 } | 1319 } |
| 1320 remove(entry) { | 1320 remove(entry) { |
| 1321 dart.as(entry, E); | 1321 dart.as(entry, E); |
| 1322 if (!dart.equals(entry[_list], this)) | 1322 if (!dart.equals(entry[_list], this)) |
| 1323 return false; | 1323 return false; |
| 1324 this[_unlink](entry); | 1324 this[_unlink](entry); |
| 1325 return true; | 1325 return true; |
| 1326 } | 1326 } |
| 1327 get [core.$iterator]() { | 1327 get [core.$iterator]() { |
| 1328 return new (_LinkedListIterator$(E))(this); | 1328 return new (_LinkedListIterator$(E))(this); |
| (...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1641 return ""; | 1641 return ""; |
| 1642 let buffer = new core.StringBuffer(); | 1642 let buffer = new core.StringBuffer(); |
| 1643 buffer.writeAll(this, separator); | 1643 buffer.writeAll(this, separator); |
| 1644 return dart.toString(buffer); | 1644 return dart.toString(buffer); |
| 1645 } | 1645 } |
| 1646 [core.$where](test) { | 1646 [core.$where](test) { |
| 1647 dart.as(test, dart.functionType(core.bool, [E])); | 1647 dart.as(test, dart.functionType(core.bool, [E])); |
| 1648 return new (_internal.WhereIterable$(E))(this, test); | 1648 return new (_internal.WhereIterable$(E))(this, test); |
| 1649 } | 1649 } |
| 1650 [core.$map](f) { | 1650 [core.$map](f) { |
| 1651 dart.as(f, dart.functionType(dart.dynamic, [E])); | 1651 dart.as(f, dart.functionType(core.Object, [E])); |
| 1652 return new _internal.MappedListIterable(this, f); | 1652 return new _internal.MappedListIterable(this, f); |
| 1653 } | 1653 } |
| 1654 [core.$expand](f) { | 1654 [core.$expand](f) { |
| 1655 dart.as(f, dart.functionType(core.Iterable, [E])); | 1655 dart.as(f, dart.functionType(core.Iterable, [E])); |
| 1656 return new (_internal.ExpandIterable$(E, dart.dynamic))(this, f); | 1656 return new (_internal.ExpandIterable$(E, core.Object))(this, f); |
| 1657 } | 1657 } |
| 1658 [core.$reduce](combine) { | 1658 [core.$reduce](combine) { |
| 1659 dart.as(combine, dart.functionType(E, [E, E])); | 1659 dart.as(combine, dart.functionType(E, [E, E])); |
| 1660 let length = this[core.$length]; | 1660 let length = this[core.$length]; |
| 1661 if (length == 0) | 1661 if (length == 0) |
| 1662 throw _internal.IterableElementError.noElement(); | 1662 throw _internal.IterableElementError.noElement(); |
| 1663 let value = this[core.$get](0); | 1663 let value = this[core.$get](0); |
| 1664 for (let i = 1; dart.notNull(i) < dart.notNull(length); i = dart.notNull
(i) + 1) { | 1664 for (let i = 1; dart.notNull(i) < dart.notNull(length); i = dart.notNull
(i) + 1) { |
| 1665 value = combine(value, this[core.$get](i)); | 1665 value = combine(value, this[core.$get](i)); |
| 1666 if (length != this[core.$length]) { | 1666 if (length != this[core.$length]) { |
| 1667 throw new core.ConcurrentModificationError(this); | 1667 throw new core.ConcurrentModificationError(this); |
| 1668 } | 1668 } |
| 1669 } | 1669 } |
| 1670 return value; | 1670 return value; |
| 1671 } | 1671 } |
| 1672 [core.$fold](initialValue, combine) { | 1672 [core.$fold](initialValue, combine) { |
| 1673 dart.as(combine, dart.functionType(dart.dynamic, [dart.dynamic, E])); | 1673 dart.as(combine, dart.functionType(core.Object, [dart.bottom, E])); |
| 1674 let value = initialValue; | 1674 let value = initialValue; |
| 1675 let length = this[core.$length]; | 1675 let length = this[core.$length]; |
| 1676 for (let i = 0; dart.notNull(i) < dart.notNull(length); i = dart.notNull
(i) + 1) { | 1676 for (let i = 0; dart.notNull(i) < dart.notNull(length); i = dart.notNull
(i) + 1) { |
| 1677 value = dart.dcall(combine, value, this[core.$get](i)); | 1677 value = dart.dcall(combine, value, this[core.$get](i)); |
| 1678 if (length != this[core.$length]) { | 1678 if (length != this[core.$length]) { |
| 1679 throw new core.ConcurrentModificationError(this); | 1679 throw new core.ConcurrentModificationError(this); |
| 1680 } | 1680 } |
| 1681 } | 1681 } |
| 1682 return value; | 1682 return value; |
| 1683 } | 1683 } |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1746 } | 1746 } |
| 1747 [core.$removeWhere](test) { | 1747 [core.$removeWhere](test) { |
| 1748 dart.as(test, dart.functionType(core.bool, [E])); | 1748 dart.as(test, dart.functionType(core.bool, [E])); |
| 1749 ListMixin$()._filter(this, test, false); | 1749 ListMixin$()._filter(this, test, false); |
| 1750 } | 1750 } |
| 1751 [core.$retainWhere](test) { | 1751 [core.$retainWhere](test) { |
| 1752 dart.as(test, dart.functionType(core.bool, [E])); | 1752 dart.as(test, dart.functionType(core.bool, [E])); |
| 1753 ListMixin$()._filter(this, test, true); | 1753 ListMixin$()._filter(this, test, true); |
| 1754 } | 1754 } |
| 1755 static _filter(source, test, retainMatching) { | 1755 static _filter(source, test, retainMatching) { |
| 1756 dart.as(test, dart.functionType(core.bool, [dart.dynamic])); | 1756 dart.as(test, dart.functionType(core.bool, [dart.bottom])); |
| 1757 let retained = []; | 1757 let retained = []; |
| 1758 let length = source[core.$length]; | 1758 let length = source[core.$length]; |
| 1759 for (let i = 0; dart.notNull(i) < dart.notNull(length); i = dart.notNull
(i) + 1) { | 1759 for (let i = 0; dart.notNull(i) < dart.notNull(length); i = dart.notNull
(i) + 1) { |
| 1760 let element = source[core.$get](i); | 1760 let element = source[core.$get](i); |
| 1761 if (dart.dcall(test, element) == retainMatching) { | 1761 if (dart.dcall(test, element) == retainMatching) { |
| 1762 retained[core.$add](element); | 1762 retained[core.$add](element); |
| 1763 } | 1763 } |
| 1764 if (length != source[core.$length]) { | 1764 if (length != source[core.$length]) { |
| 1765 throw new core.ConcurrentModificationError(source); | 1765 throw new core.ConcurrentModificationError(source); |
| 1766 } | 1766 } |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1988 [core.$elementAt]: dart.functionType(E, [core.int]), | 1988 [core.$elementAt]: dart.functionType(E, [core.int]), |
| 1989 [core.$forEach]: dart.functionType(dart.void, [dart.functionType(dart.vo
id, [E])]), | 1989 [core.$forEach]: dart.functionType(dart.void, [dart.functionType(dart.vo
id, [E])]), |
| 1990 [core.$contains]: dart.functionType(core.bool, [core.Object]), | 1990 [core.$contains]: dart.functionType(core.bool, [core.Object]), |
| 1991 [core.$every]: dart.functionType(core.bool, [dart.functionType(core.bool
, [E])]), | 1991 [core.$every]: dart.functionType(core.bool, [dart.functionType(core.bool
, [E])]), |
| 1992 [core.$any]: dart.functionType(core.bool, [dart.functionType(core.bool,
[E])]), | 1992 [core.$any]: dart.functionType(core.bool, [dart.functionType(core.bool,
[E])]), |
| 1993 [core.$firstWhere]: dart.functionType(E, [dart.functionType(core.bool, [
E])], {rEls: dart.functionType(E, [])}), | 1993 [core.$firstWhere]: dart.functionType(E, [dart.functionType(core.bool, [
E])], {rEls: dart.functionType(E, [])}), |
| 1994 [core.$lastWhere]: dart.functionType(E, [dart.functionType(core.bool, [E
])], {rEls: dart.functionType(E, [])}), | 1994 [core.$lastWhere]: dart.functionType(E, [dart.functionType(core.bool, [E
])], {rEls: dart.functionType(E, [])}), |
| 1995 [core.$singleWhere]: dart.functionType(E, [dart.functionType(core.bool,
[E])]), | 1995 [core.$singleWhere]: dart.functionType(E, [dart.functionType(core.bool,
[E])]), |
| 1996 [core.$join]: dart.functionType(core.String, [], [core.String]), | 1996 [core.$join]: dart.functionType(core.String, [], [core.String]), |
| 1997 [core.$where]: dart.functionType(core.Iterable$(E), [dart.functionType(c
ore.bool, [E])]), | 1997 [core.$where]: dart.functionType(core.Iterable$(E), [dart.functionType(c
ore.bool, [E])]), |
| 1998 [core.$map]: dart.functionType(core.Iterable, [dart.functionType(dart.dy
namic, [E])]), | 1998 [core.$map]: dart.functionType(core.Iterable, [dart.functionType(core.Ob
ject, [E])]), |
| 1999 [core.$expand]: dart.functionType(core.Iterable, [dart.functionType(core
.Iterable, [E])]), | 1999 [core.$expand]: dart.functionType(core.Iterable, [dart.functionType(core
.Iterable, [E])]), |
| 2000 [core.$reduce]: dart.functionType(E, [dart.functionType(E, [E, E])]), | 2000 [core.$reduce]: dart.functionType(E, [dart.functionType(E, [E, E])]), |
| 2001 [core.$fold]: dart.functionType(dart.dynamic, [dart.dynamic, dart.functi
onType(dart.dynamic, [dart.dynamic, E])]), | 2001 [core.$fold]: dart.functionType(core.Object, [core.Object, dart.function
Type(core.Object, [dart.bottom, E])]), |
| 2002 [core.$skip]: dart.functionType(core.Iterable$(E), [core.int]), | 2002 [core.$skip]: dart.functionType(core.Iterable$(E), [core.int]), |
| 2003 [core.$skipWhile]: dart.functionType(core.Iterable$(E), [dart.functionTy
pe(core.bool, [E])]), | 2003 [core.$skipWhile]: dart.functionType(core.Iterable$(E), [dart.functionTy
pe(core.bool, [E])]), |
| 2004 [core.$take]: dart.functionType(core.Iterable$(E), [core.int]), | 2004 [core.$take]: dart.functionType(core.Iterable$(E), [core.int]), |
| 2005 [core.$takeWhile]: dart.functionType(core.Iterable$(E), [dart.functionTy
pe(core.bool, [E])]), | 2005 [core.$takeWhile]: dart.functionType(core.Iterable$(E), [dart.functionTy
pe(core.bool, [E])]), |
| 2006 [core.$toList]: dart.functionType(core.List$(E), [], {rowabl: core.bool}
), | 2006 [core.$toList]: dart.functionType(core.List$(E), [], {rowabl: core.bool}
), |
| 2007 [core.$toSet]: dart.functionType(core.Set$(E), []), | 2007 [core.$toSet]: dart.functionType(core.Set$(E), []), |
| 2008 [core.$add]: dart.functionType(dart.void, [E]), | 2008 [core.$add]: dart.functionType(dart.void, [E]), |
| 2009 [core.$addAll]: dart.functionType(dart.void, [core.Iterable$(E)]), | 2009 [core.$addAll]: dart.functionType(dart.void, [core.Iterable$(E)]), |
| 2010 [core.$remove]: dart.functionType(core.bool, [core.Object]), | 2010 [core.$remove]: dart.functionType(core.bool, [core.Object]), |
| 2011 [core.$removeWhere]: dart.functionType(dart.void, [dart.functionType(cor
e.bool, [E])]), | 2011 [core.$removeWhere]: dart.functionType(dart.void, [dart.functionType(cor
e.bool, [E])]), |
| 2012 [core.$retainWhere]: dart.functionType(dart.void, [dart.functionType(cor
e.bool, [E])]), | 2012 [core.$retainWhere]: dart.functionType(dart.void, [dart.functionType(cor
e.bool, [E])]), |
| 2013 [core.$clear]: dart.functionType(dart.void, []), | 2013 [core.$clear]: dart.functionType(dart.void, []), |
| 2014 [core.$removeLast]: dart.functionType(E, []), | 2014 [core.$removeLast]: dart.functionType(E, []), |
| 2015 [core.$sort]: dart.functionType(dart.void, [], [dart.functionType(core.i
nt, [E, E])]), | 2015 [core.$sort]: dart.functionType(dart.void, [], [dart.functionType(core.i
nt, [E, E])]), |
| 2016 [core.$shuffle]: dart.functionType(dart.void, [], [math.Random]), | 2016 [core.$shuffle]: dart.functionType(dart.void, [], [math.Random]), |
| 2017 [core.$asMap]: dart.functionType(core.Map$(core.int, E), []), | 2017 [core.$asMap]: dart.functionType(core.Map$(core.int, E), []), |
| 2018 [core.$sublist]: dart.functionType(core.List$(E), [core.int], [core.int]
), | 2018 [core.$sublist]: dart.functionType(core.List$(E), [core.int], [core.int]
), |
| 2019 [core.$getRange]: dart.functionType(core.Iterable$(E), [core.int, core.i
nt]), | 2019 [core.$getRange]: dart.functionType(core.Iterable$(E), [core.int, core.i
nt]), |
| 2020 [core.$removeRange]: dart.functionType(dart.void, [core.int, core.int]), | 2020 [core.$removeRange]: dart.functionType(dart.void, [core.int, core.int]), |
| 2021 [core.$fillRange]: dart.functionType(dart.void, [core.int, core.int], [E
]), | 2021 [core.$fillRange]: dart.functionType(dart.void, [core.int, core.int], [E
]), |
| 2022 [core.$setRange]: dart.functionType(dart.void, [core.int, core.int, core
.Iterable$(E)], [core.int]), | 2022 [core.$setRange]: dart.functionType(dart.void, [core.int, core.int, core
.Iterable$(E)], [core.int]), |
| 2023 [core.$replaceRange]: dart.functionType(dart.void, [core.int, core.int,
core.Iterable$(E)]), | 2023 [core.$replaceRange]: dart.functionType(dart.void, [core.int, core.int,
core.Iterable$(E)]), |
| 2024 [core.$indexOf]: dart.functionType(core.int, [core.Object], [core.int]), | 2024 [core.$indexOf]: dart.functionType(core.int, [core.Object], [core.int]), |
| 2025 [core.$lastIndexOf]: dart.functionType(core.int, [core.Object], [core.in
t]), | 2025 [core.$lastIndexOf]: dart.functionType(core.int, [core.Object], [core.in
t]), |
| 2026 [core.$insert]: dart.functionType(dart.void, [core.int, E]), | 2026 [core.$insert]: dart.functionType(dart.void, [core.int, E]), |
| 2027 [core.$removeAt]: dart.functionType(E, [core.int]), | 2027 [core.$removeAt]: dart.functionType(E, [core.int]), |
| 2028 [core.$insertAll]: dart.functionType(dart.void, [core.int, core.Iterable
$(E)]), | 2028 [core.$insertAll]: dart.functionType(dart.void, [core.int, core.Iterable
$(E)]), |
| 2029 [core.$setAll]: dart.functionType(dart.void, [core.int, core.Iterable$(E
)]) | 2029 [core.$setAll]: dart.functionType(dart.void, [core.int, core.Iterable$(E
)]) |
| 2030 }), | 2030 }), |
| 2031 statics: () => ({_filter: dart.functionType(dart.void, [core.List, dart.fu
nctionType(core.bool, [dart.dynamic]), core.bool])}), | 2031 statics: () => ({_filter: dart.functionType(dart.void, [core.List, dart.fu
nctionType(core.bool, [dart.bottom]), core.bool])}), |
| 2032 names: ['_filter'] | 2032 names: ['_filter'] |
| 2033 }); | 2033 }); |
| 2034 return ListMixin; | 2034 return ListMixin; |
| 2035 }); | 2035 }); |
| 2036 let ListMixin = ListMixin$(); | 2036 let ListMixin = ListMixin$(); |
| 2037 let ListBase$ = dart.generic(function(E) { | 2037 let ListBase$ = dart.generic(function(E) { |
| 2038 class ListBase extends dart.mixin(core.Object, ListMixin$(E)) { | 2038 class ListBase extends dart.mixin(core.Object, ListMixin$(E)) { |
| 2039 static listToString(list) { | 2039 static listToString(list) { |
| 2040 return IterableBase.iterableToFullString(list, '[', ']'); | 2040 return IterableBase.iterableToFullString(list, '[', ']'); |
| 2041 } | 2041 } |
| (...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2387 hasNextKey = keyIterator.moveNext(); | 2387 hasNextKey = keyIterator.moveNext(); |
| 2388 hasNextValue = valueIterator.moveNext(); | 2388 hasNextValue = valueIterator.moveNext(); |
| 2389 } | 2389 } |
| 2390 if (dart.notNull(hasNextKey) || dart.notNull(hasNextValue)) { | 2390 if (dart.notNull(hasNextKey) || dart.notNull(hasNextValue)) { |
| 2391 throw new core.ArgumentError("Iterables do not have same length."); | 2391 throw new core.ArgumentError("Iterables do not have same length."); |
| 2392 } | 2392 } |
| 2393 } | 2393 } |
| 2394 } | 2394 } |
| 2395 dart.setSignature(Maps, { | 2395 dart.setSignature(Maps, { |
| 2396 statics: () => ({ | 2396 statics: () => ({ |
| 2397 containsValue: dart.functionType(core.bool, [core.Map, dart.dynamic]), | 2397 containsValue: dart.functionType(core.bool, [core.Map, core.Object]), |
| 2398 containsKey: dart.functionType(core.bool, [core.Map, dart.dynamic]), | 2398 containsKey: dart.functionType(core.bool, [core.Map, core.Object]), |
| 2399 putIfAbsent: dart.functionType(dart.dynamic, [core.Map, dart.dynamic, dart
.functionType(dart.dynamic, [])]), | 2399 putIfAbsent: dart.functionType(core.Object, [core.Map, core.Object, dart.f
unctionType(core.Object, [])]), |
| 2400 clear: dart.functionType(dart.dynamic, [core.Map]), | 2400 clear: dart.functionType(core.Object, [core.Map]), |
| 2401 forEach: dart.functionType(dart.dynamic, [core.Map, dart.functionType(dart
.void, [dart.dynamic, dart.dynamic])]), | 2401 forEach: dart.functionType(core.Object, [core.Map, dart.functionType(dart.
void, [dart.bottom, dart.bottom])]), |
| 2402 getValues: dart.functionType(core.Iterable, [core.Map]), | 2402 getValues: dart.functionType(core.Iterable, [core.Map]), |
| 2403 length: dart.functionType(core.int, [core.Map]), | 2403 length: dart.functionType(core.int, [core.Map]), |
| 2404 isEmpty: dart.functionType(core.bool, [core.Map]), | 2404 isEmpty: dart.functionType(core.bool, [core.Map]), |
| 2405 isNotEmpty: dart.functionType(core.bool, [core.Map]), | 2405 isNotEmpty: dart.functionType(core.bool, [core.Map]), |
| 2406 mapToString: dart.functionType(core.String, [core.Map]), | 2406 mapToString: dart.functionType(core.String, [core.Map]), |
| 2407 _id: dart.functionType(dart.dynamic, [dart.dynamic]), | 2407 _id: dart.functionType(core.Object, [core.Object]), |
| 2408 _fillMapWithMappedIterable: dart.functionType(dart.void, [core.Map, core.I
terable, dart.functionType(dart.dynamic, [dart.dynamic]), dart.functionType(dart
.dynamic, [dart.dynamic])]), | 2408 _fillMapWithMappedIterable: dart.functionType(dart.void, [core.Map, core.I
terable, dart.functionType(core.Object, [dart.bottom]), dart.functionType(core.O
bject, [dart.bottom])]), |
| 2409 _fillMapWithIterables: dart.functionType(dart.void, [core.Map, core.Iterab
le, core.Iterable]) | 2409 _fillMapWithIterables: dart.functionType(dart.void, [core.Map, core.Iterab
le, core.Iterable]) |
| 2410 }), | 2410 }), |
| 2411 names: ['containsValue', 'containsKey', 'putIfAbsent', 'clear', 'forEach', '
getValues', 'length', 'isEmpty', 'isNotEmpty', 'mapToString', '_id', '_fillMapWi
thMappedIterable', '_fillMapWithIterables'] | 2411 names: ['containsValue', 'containsKey', 'putIfAbsent', 'clear', 'forEach', '
getValues', 'length', 'isEmpty', 'isNotEmpty', 'mapToString', '_id', '_fillMapWi
thMappedIterable', '_fillMapWithIterables'] |
| 2412 }); | 2412 }); |
| 2413 let Queue$ = dart.generic(function(E) { | 2413 let Queue$ = dart.generic(function(E) { |
| 2414 class Queue extends core.Object { | 2414 class Queue extends core.Object { |
| 2415 Queue() { | 2415 Queue() { |
| 2416 return new (ListQueue$(E))(); | 2416 return new (ListQueue$(E))(); |
| 2417 } | 2417 } |
| 2418 from(elements) { | 2418 from(elements) { |
| (...skipping 837 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3256 let _comparator = Symbol('_comparator'); | 3256 let _comparator = Symbol('_comparator'); |
| 3257 let _validKey = Symbol('_validKey'); | 3257 let _validKey = Symbol('_validKey'); |
| 3258 let SplayTreeMap$ = dart.generic(function(K, V) { | 3258 let SplayTreeMap$ = dart.generic(function(K, V) { |
| 3259 class SplayTreeMap extends _SplayTree$(K) { | 3259 class SplayTreeMap extends _SplayTree$(K) { |
| 3260 SplayTreeMap(compare, isValidKey) { | 3260 SplayTreeMap(compare, isValidKey) { |
| 3261 if (compare === void 0) | 3261 if (compare === void 0) |
| 3262 compare = null; | 3262 compare = null; |
| 3263 if (isValidKey === void 0) | 3263 if (isValidKey === void 0) |
| 3264 isValidKey = null; | 3264 isValidKey = null; |
| 3265 this[_comparator] = dart.as(compare == null ? core.Comparable.compare :
compare, core.Comparator$(K)); | 3265 this[_comparator] = dart.as(compare == null ? core.Comparable.compare :
compare, core.Comparator$(K)); |
| 3266 this[_validKey] = isValidKey != null ? isValidKey : dart.fn(v => dart.is
(v, K), core.bool, [dart.dynamic]); | 3266 this[_validKey] = isValidKey != null ? isValidKey : dart.fn(v => dart.is
(v, K), core.bool, [core.Object]); |
| 3267 super._SplayTree(); | 3267 super._SplayTree(); |
| 3268 } | 3268 } |
| 3269 from(other, compare, isValidKey) { | 3269 from(other, compare, isValidKey) { |
| 3270 if (compare === void 0) | 3270 if (compare === void 0) |
| 3271 compare = null; | 3271 compare = null; |
| 3272 if (isValidKey === void 0) | 3272 if (isValidKey === void 0) |
| 3273 isValidKey = null; | 3273 isValidKey = null; |
| 3274 let result = new (SplayTreeMap$(K, V))(); | 3274 let result = new (SplayTreeMap$(K, V))(); |
| 3275 other.forEach(dart.fn((k, v) => { | 3275 other.forEach(dart.fn((k, v) => { |
| 3276 result.set(k, dart.as(v, V)); | 3276 result.set(k, dart.as(v, V)); |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3331 dart.as(key, K); | 3331 dart.as(key, K); |
| 3332 dart.as(value, V); | 3332 dart.as(value, V); |
| 3333 if (key == null) | 3333 if (key == null) |
| 3334 throw new core.ArgumentError(key); | 3334 throw new core.ArgumentError(key); |
| 3335 let comp = this[_splay](key); | 3335 let comp = this[_splay](key); |
| 3336 if (comp == 0) { | 3336 if (comp == 0) { |
| 3337 let mapRoot = dart.as(this[_root], _SplayTreeMapNode); | 3337 let mapRoot = dart.as(this[_root], _SplayTreeMapNode); |
| 3338 mapRoot.value = value; | 3338 mapRoot.value = value; |
| 3339 return; | 3339 return; |
| 3340 } | 3340 } |
| 3341 this[_addNewRoot](new (_SplayTreeMapNode$(K, dart.dynamic))(key, value),
comp); | 3341 this[_addNewRoot](new (_SplayTreeMapNode$(K, core.Object))(key, value),
comp); |
| 3342 } | 3342 } |
| 3343 putIfAbsent(key, ifAbsent) { | 3343 putIfAbsent(key, ifAbsent) { |
| 3344 dart.as(key, K); | 3344 dart.as(key, K); |
| 3345 dart.as(ifAbsent, dart.functionType(V, [])); | 3345 dart.as(ifAbsent, dart.functionType(V, [])); |
| 3346 if (key == null) | 3346 if (key == null) |
| 3347 throw new core.ArgumentError(key); | 3347 throw new core.ArgumentError(key); |
| 3348 let comp = this[_splay](key); | 3348 let comp = this[_splay](key); |
| 3349 if (comp == 0) { | 3349 if (comp == 0) { |
| 3350 let mapRoot = dart.as(this[_root], _SplayTreeMapNode); | 3350 let mapRoot = dart.as(this[_root], _SplayTreeMapNode); |
| 3351 return dart.as(mapRoot.value, V); | 3351 return dart.as(mapRoot.value, V); |
| 3352 } | 3352 } |
| 3353 let modificationCount = this[_modificationCount]; | 3353 let modificationCount = this[_modificationCount]; |
| 3354 let splayCount = this[_splayCount]; | 3354 let splayCount = this[_splayCount]; |
| 3355 let value = ifAbsent(); | 3355 let value = ifAbsent(); |
| 3356 if (modificationCount != this[_modificationCount]) { | 3356 if (modificationCount != this[_modificationCount]) { |
| 3357 throw new core.ConcurrentModificationError(this); | 3357 throw new core.ConcurrentModificationError(this); |
| 3358 } | 3358 } |
| 3359 if (splayCount != this[_splayCount]) { | 3359 if (splayCount != this[_splayCount]) { |
| 3360 comp = this[_splay](key); | 3360 comp = this[_splay](key); |
| 3361 dart.assert(comp != 0); | 3361 dart.assert(comp != 0); |
| 3362 } | 3362 } |
| 3363 this[_addNewRoot](new (_SplayTreeMapNode$(K, dart.dynamic))(key, value),
comp); | 3363 this[_addNewRoot](new (_SplayTreeMapNode$(K, core.Object))(key, value),
comp); |
| 3364 return value; | 3364 return value; |
| 3365 } | 3365 } |
| 3366 addAll(other) { | 3366 addAll(other) { |
| 3367 dart.as(other, core.Map$(K, V)); | 3367 dart.as(other, core.Map$(K, V)); |
| 3368 other.forEach(dart.fn(((key, value) => { | 3368 other.forEach(dart.fn(((key, value) => { |
| 3369 dart.as(key, K); | 3369 dart.as(key, K); |
| 3370 dart.as(value, V); | 3370 dart.as(value, V); |
| 3371 this.set(key, value); | 3371 this.set(key, value); |
| 3372 }).bind(this), dart.dynamic, [K, V])); | 3372 }).bind(this), core.Object, [K, V])); |
| 3373 } | 3373 } |
| 3374 get isEmpty() { | 3374 get isEmpty() { |
| 3375 return this[_root] == null; | 3375 return this[_root] == null; |
| 3376 } | 3376 } |
| 3377 get isNotEmpty() { | 3377 get isNotEmpty() { |
| 3378 return !dart.notNull(this.isEmpty); | 3378 return !dart.notNull(this.isEmpty); |
| 3379 } | 3379 } |
| 3380 forEach(f) { | 3380 forEach(f) { |
| 3381 dart.as(f, dart.functionType(dart.void, [K, V])); | 3381 dart.as(f, dart.functionType(dart.void, [K, V])); |
| 3382 let nodes = new (_SplayTreeNodeIterator$(K))(this); | 3382 let nodes = new (_SplayTreeNodeIterator$(K))(this); |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3677 let _SplayTreeNodeIterator = _SplayTreeNodeIterator$(); | 3677 let _SplayTreeNodeIterator = _SplayTreeNodeIterator$(); |
| 3678 let _clone = Symbol('_clone'); | 3678 let _clone = Symbol('_clone'); |
| 3679 let SplayTreeSet$ = dart.generic(function(E) { | 3679 let SplayTreeSet$ = dart.generic(function(E) { |
| 3680 class SplayTreeSet extends dart.mixin(_SplayTree$(E), IterableMixin$(E), Set
Mixin$(E)) { | 3680 class SplayTreeSet extends dart.mixin(_SplayTree$(E), IterableMixin$(E), Set
Mixin$(E)) { |
| 3681 SplayTreeSet(compare, isValidKey) { | 3681 SplayTreeSet(compare, isValidKey) { |
| 3682 if (compare === void 0) | 3682 if (compare === void 0) |
| 3683 compare = null; | 3683 compare = null; |
| 3684 if (isValidKey === void 0) | 3684 if (isValidKey === void 0) |
| 3685 isValidKey = null; | 3685 isValidKey = null; |
| 3686 this[_comparator] = dart.as(compare == null ? core.Comparable.compare :
compare, core.Comparator$(E)); | 3686 this[_comparator] = dart.as(compare == null ? core.Comparable.compare :
compare, core.Comparator$(E)); |
| 3687 this[_validKey] = isValidKey != null ? isValidKey : dart.fn(v => dart.is
(v, E), core.bool, [dart.dynamic]); | 3687 this[_validKey] = isValidKey != null ? isValidKey : dart.fn(v => dart.is
(v, E), core.bool, [core.Object]); |
| 3688 super._SplayTree(); | 3688 super._SplayTree(); |
| 3689 } | 3689 } |
| 3690 from(elements, compare, isValidKey) { | 3690 from(elements, compare, isValidKey) { |
| 3691 if (compare === void 0) | 3691 if (compare === void 0) |
| 3692 compare = null; | 3692 compare = null; |
| 3693 if (isValidKey === void 0) | 3693 if (isValidKey === void 0) |
| 3694 isValidKey = null; | 3694 isValidKey = null; |
| 3695 let result = new (SplayTreeSet$(E))(compare, isValidKey); | 3695 let result = new (SplayTreeSet$(E))(compare, isValidKey); |
| 3696 for (let element of dart.as(elements, core.Iterable$(E))) { | 3696 for (let element of dart.as(elements, core.Iterable$(E))) { |
| 3697 result.add(element); | 3697 result.add(element); |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3887 get isEmpty() { | 3887 get isEmpty() { |
| 3888 return this[_length] == 0; | 3888 return this[_length] == 0; |
| 3889 } | 3889 } |
| 3890 get isNotEmpty() { | 3890 get isNotEmpty() { |
| 3891 return !dart.notNull(this.isEmpty); | 3891 return !dart.notNull(this.isEmpty); |
| 3892 } | 3892 } |
| 3893 get keys() { | 3893 get keys() { |
| 3894 return new (HashMapKeyIterable$(K))(this); | 3894 return new (HashMapKeyIterable$(K))(this); |
| 3895 } | 3895 } |
| 3896 get values() { | 3896 get values() { |
| 3897 return new (_internal.MappedIterable$(K, V))(this.keys, dart.fn((each =>
this.get(each)).bind(this), V, [dart.dynamic])); | 3897 return new (_internal.MappedIterable$(K, V))(this.keys, dart.fn((each =>
this.get(each)).bind(this), V, [core.Object])); |
| 3898 } | 3898 } |
| 3899 containsKey(key) { | 3899 containsKey(key) { |
| 3900 if (_HashMap$()._isStringKey(key)) { | 3900 if (_HashMap$()._isStringKey(key)) { |
| 3901 let strings = this[_strings]; | 3901 let strings = this[_strings]; |
| 3902 return strings == null ? false : _HashMap$()._hasTableEntry(strings, k
ey); | 3902 return strings == null ? false : _HashMap$()._hasTableEntry(strings, k
ey); |
| 3903 } else if (_HashMap$()._isNumericKey(key)) { | 3903 } else if (_HashMap$()._isNumericKey(key)) { |
| 3904 let nums = this[_nums]; | 3904 let nums = this[_nums]; |
| 3905 return nums == null ? false : _HashMap$()._hasTableEntry(nums, key); | 3905 return nums == null ? false : _HashMap$()._hasTableEntry(nums, key); |
| 3906 } else { | 3906 } else { |
| 3907 return this[_containsKey](key); | 3907 return this[_containsKey](key); |
| 3908 } | 3908 } |
| 3909 } | 3909 } |
| 3910 [_containsKey](key) { | 3910 [_containsKey](key) { |
| 3911 let rest = this[_rest]; | 3911 let rest = this[_rest]; |
| 3912 if (rest == null) | 3912 if (rest == null) |
| 3913 return false; | 3913 return false; |
| 3914 let bucket = this[_getBucket](rest, key); | 3914 let bucket = this[_getBucket](rest, key); |
| 3915 return dart.notNull(this[_findBucketIndex](bucket, key)) >= 0; | 3915 return dart.notNull(this[_findBucketIndex](bucket, key)) >= 0; |
| 3916 } | 3916 } |
| 3917 containsValue(value) { | 3917 containsValue(value) { |
| 3918 return this[_computeKeys]()[core.$any](dart.fn((each => dart.equals(this
.get(each), value)).bind(this), core.bool, [dart.dynamic])); | 3918 return this[_computeKeys]()[core.$any](dart.fn((each => dart.equals(this
.get(each), value)).bind(this), core.bool, [core.Object])); |
| 3919 } | 3919 } |
| 3920 addAll(other) { | 3920 addAll(other) { |
| 3921 dart.as(other, core.Map$(K, V)); | 3921 dart.as(other, core.Map$(K, V)); |
| 3922 other.forEach(dart.fn(((key, value) => { | 3922 other.forEach(dart.fn(((key, value) => { |
| 3923 dart.as(key, K); | 3923 dart.as(key, K); |
| 3924 dart.as(value, V); | 3924 dart.as(value, V); |
| 3925 this.set(key, value); | 3925 this.set(key, value); |
| 3926 }).bind(this), dart.dynamic, [K, V])); | 3926 }).bind(this), core.Object, [K, V])); |
| 3927 } | 3927 } |
| 3928 get(key) { | 3928 get(key) { |
| 3929 if (_HashMap$()._isStringKey(key)) { | 3929 if (_HashMap$()._isStringKey(key)) { |
| 3930 let strings = this[_strings]; | 3930 let strings = this[_strings]; |
| 3931 return strings == null ? null : dart.as(_HashMap$()._getTableEntry(str
ings, key), V); | 3931 return strings == null ? null : dart.as(_HashMap$()._getTableEntry(str
ings, key), V); |
| 3932 } else if (_HashMap$()._isNumericKey(key)) { | 3932 } else if (_HashMap$()._isNumericKey(key)) { |
| 3933 let nums = this[_nums]; | 3933 let nums = this[_nums]; |
| 3934 return nums == null ? null : dart.as(_HashMap$()._getTableEntry(nums,
key), V); | 3934 return nums == null ? null : dart.as(_HashMap$()._getTableEntry(nums,
key), V); |
| 3935 } else { | 3935 } else { |
| 3936 return this[_get](key); | 3936 return this[_get](key); |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4153 get: dart.functionType(V, [core.Object]), | 4153 get: dart.functionType(V, [core.Object]), |
| 4154 [_get]: dart.functionType(V, [core.Object]), | 4154 [_get]: dart.functionType(V, [core.Object]), |
| 4155 set: dart.functionType(dart.void, [K, V]), | 4155 set: dart.functionType(dart.void, [K, V]), |
| 4156 [_set]: dart.functionType(dart.void, [K, V]), | 4156 [_set]: dart.functionType(dart.void, [K, V]), |
| 4157 putIfAbsent: dart.functionType(V, [K, dart.functionType(V, [])]), | 4157 putIfAbsent: dart.functionType(V, [K, dart.functionType(V, [])]), |
| 4158 remove: dart.functionType(V, [core.Object]), | 4158 remove: dart.functionType(V, [core.Object]), |
| 4159 [_remove]: dart.functionType(V, [core.Object]), | 4159 [_remove]: dart.functionType(V, [core.Object]), |
| 4160 clear: dart.functionType(dart.void, []), | 4160 clear: dart.functionType(dart.void, []), |
| 4161 forEach: dart.functionType(dart.void, [dart.functionType(dart.void, [K,
V])]), | 4161 forEach: dart.functionType(dart.void, [dart.functionType(dart.void, [K,
V])]), |
| 4162 [_computeKeys]: dart.functionType(core.List, []), | 4162 [_computeKeys]: dart.functionType(core.List, []), |
| 4163 [_addHashTableEntry]: dart.functionType(dart.void, [dart.dynamic, K, V])
, | 4163 [_addHashTableEntry]: dart.functionType(dart.void, [core.Object, K, V]), |
| 4164 [_removeHashTableEntry]: dart.functionType(V, [dart.dynamic, core.Object
]), | 4164 [_removeHashTableEntry]: dart.functionType(V, [core.Object, core.Object]
), |
| 4165 [_computeHashCode]: dart.functionType(core.int, [dart.dynamic]), | 4165 [_computeHashCode]: dart.functionType(core.int, [core.Object]), |
| 4166 [_getBucket]: dart.functionType(core.List, [dart.dynamic, dart.dynamic])
, | 4166 [_getBucket]: dart.functionType(core.List, [core.Object, core.Object]), |
| 4167 [_findBucketIndex]: dart.functionType(core.int, [dart.dynamic, dart.dyna
mic]) | 4167 [_findBucketIndex]: dart.functionType(core.int, [core.Object, core.Objec
t]) |
| 4168 }), | 4168 }), |
| 4169 statics: () => ({ | 4169 statics: () => ({ |
| 4170 _isStringKey: dart.functionType(core.bool, [dart.dynamic]), | 4170 _isStringKey: dart.functionType(core.bool, [core.Object]), |
| 4171 _isNumericKey: dart.functionType(core.bool, [dart.dynamic]), | 4171 _isNumericKey: dart.functionType(core.bool, [core.Object]), |
| 4172 _hasTableEntry: dart.functionType(core.bool, [dart.dynamic, dart.dynamic
]), | 4172 _hasTableEntry: dart.functionType(core.bool, [core.Object, core.Object])
, |
| 4173 _getTableEntry: dart.functionType(dart.dynamic, [dart.dynamic, dart.dyna
mic]), | 4173 _getTableEntry: dart.functionType(core.Object, [core.Object, core.Object
]), |
| 4174 _setTableEntry: dart.functionType(dart.void, [dart.dynamic, dart.dynamic
, dart.dynamic]), | 4174 _setTableEntry: dart.functionType(dart.void, [core.Object, core.Object,
core.Object]), |
| 4175 _deleteTableEntry: dart.functionType(dart.void, [dart.dynamic, dart.dyna
mic]), | 4175 _deleteTableEntry: dart.functionType(dart.void, [core.Object, core.Objec
t]), |
| 4176 _newHashTable: dart.functionType(dart.dynamic, []) | 4176 _newHashTable: dart.functionType(core.Object, []) |
| 4177 }), | 4177 }), |
| 4178 names: ['_isStringKey', '_isNumericKey', '_hasTableEntry', '_getTableEntry
', '_setTableEntry', '_deleteTableEntry', '_newHashTable'] | 4178 names: ['_isStringKey', '_isNumericKey', '_hasTableEntry', '_getTableEntry
', '_setTableEntry', '_deleteTableEntry', '_newHashTable'] |
| 4179 }); | 4179 }); |
| 4180 return _HashMap; | 4180 return _HashMap; |
| 4181 }); | 4181 }); |
| 4182 let _HashMap = _HashMap$(); | 4182 let _HashMap = _HashMap$(); |
| 4183 let _IdentityHashMap$ = dart.generic(function(K, V) { | 4183 let _IdentityHashMap$ = dart.generic(function(K, V) { |
| 4184 class _IdentityHashMap extends _HashMap$(K, V) { | 4184 class _IdentityHashMap extends _HashMap$(K, V) { |
| 4185 _IdentityHashMap() { | 4185 _IdentityHashMap() { |
| 4186 super._HashMap(); | 4186 super._HashMap(); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 4202 return _IdentityHashMap; | 4202 return _IdentityHashMap; |
| 4203 }); | 4203 }); |
| 4204 let _IdentityHashMap = _IdentityHashMap$(); | 4204 let _IdentityHashMap = _IdentityHashMap$(); |
| 4205 let _equals = Symbol('_equals'); | 4205 let _equals = Symbol('_equals'); |
| 4206 let _hashCode = Symbol('_hashCode'); | 4206 let _hashCode = Symbol('_hashCode'); |
| 4207 let _CustomHashMap$ = dart.generic(function(K, V) { | 4207 let _CustomHashMap$ = dart.generic(function(K, V) { |
| 4208 class _CustomHashMap extends _HashMap$(K, V) { | 4208 class _CustomHashMap extends _HashMap$(K, V) { |
| 4209 _CustomHashMap(equals, hashCode, validKey) { | 4209 _CustomHashMap(equals, hashCode, validKey) { |
| 4210 this[_equals] = equals; | 4210 this[_equals] = equals; |
| 4211 this[_hashCode] = hashCode; | 4211 this[_hashCode] = hashCode; |
| 4212 this[_validKey] = validKey != null ? validKey : dart.fn(v => dart.is(v,
K), core.bool, [dart.dynamic]); | 4212 this[_validKey] = validKey != null ? validKey : dart.fn(v => dart.is(v,
K), core.bool, [core.Object]); |
| 4213 super._HashMap(); | 4213 super._HashMap(); |
| 4214 } | 4214 } |
| 4215 get(key) { | 4215 get(key) { |
| 4216 if (!dart.notNull(this[_validKey](key))) | 4216 if (!dart.notNull(this[_validKey](key))) |
| 4217 return null; | 4217 return null; |
| 4218 return super[_get](key); | 4218 return super[_get](key); |
| 4219 } | 4219 } |
| 4220 set(key, value) { | 4220 set(key, value) { |
| 4221 dart.as(key, K); | 4221 dart.as(key, K); |
| 4222 dart.as(value, V); | 4222 dart.as(value, V); |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4352 get isEmpty() { | 4352 get isEmpty() { |
| 4353 return this[_length] == 0; | 4353 return this[_length] == 0; |
| 4354 } | 4354 } |
| 4355 get isNotEmpty() { | 4355 get isNotEmpty() { |
| 4356 return !dart.notNull(this.isEmpty); | 4356 return !dart.notNull(this.isEmpty); |
| 4357 } | 4357 } |
| 4358 get keys() { | 4358 get keys() { |
| 4359 return new (LinkedHashMapKeyIterable$(K))(this); | 4359 return new (LinkedHashMapKeyIterable$(K))(this); |
| 4360 } | 4360 } |
| 4361 get values() { | 4361 get values() { |
| 4362 return new (_internal.MappedIterable$(K, V))(this.keys, dart.fn((each =>
this.get(each)).bind(this), V, [dart.dynamic])); | 4362 return new (_internal.MappedIterable$(K, V))(this.keys, dart.fn((each =>
this.get(each)).bind(this), V, [core.Object])); |
| 4363 } | 4363 } |
| 4364 containsKey(key) { | 4364 containsKey(key) { |
| 4365 if (_LinkedHashMap$()._isStringKey(key)) { | 4365 if (_LinkedHashMap$()._isStringKey(key)) { |
| 4366 let strings = this[_strings]; | 4366 let strings = this[_strings]; |
| 4367 if (strings == null) | 4367 if (strings == null) |
| 4368 return false; | 4368 return false; |
| 4369 let cell = dart.as(_LinkedHashMap$()._getTableEntry(strings, key), Lin
kedHashMapCell); | 4369 let cell = dart.as(_LinkedHashMap$()._getTableEntry(strings, key), Lin
kedHashMapCell); |
| 4370 return cell != null; | 4370 return cell != null; |
| 4371 } else if (_LinkedHashMap$()._isNumericKey(key)) { | 4371 } else if (_LinkedHashMap$()._isNumericKey(key)) { |
| 4372 let nums = this[_nums]; | 4372 let nums = this[_nums]; |
| 4373 if (nums == null) | 4373 if (nums == null) |
| 4374 return false; | 4374 return false; |
| 4375 let cell = dart.as(_LinkedHashMap$()._getTableEntry(nums, key), Linked
HashMapCell); | 4375 let cell = dart.as(_LinkedHashMap$()._getTableEntry(nums, key), Linked
HashMapCell); |
| 4376 return cell != null; | 4376 return cell != null; |
| 4377 } else { | 4377 } else { |
| 4378 return this[_containsKey](key); | 4378 return this[_containsKey](key); |
| 4379 } | 4379 } |
| 4380 } | 4380 } |
| 4381 [_containsKey](key) { | 4381 [_containsKey](key) { |
| 4382 let rest = this[_rest]; | 4382 let rest = this[_rest]; |
| 4383 if (rest == null) | 4383 if (rest == null) |
| 4384 return false; | 4384 return false; |
| 4385 let bucket = this[_getBucket](rest, key); | 4385 let bucket = this[_getBucket](rest, key); |
| 4386 return dart.notNull(this[_findBucketIndex](bucket, key)) >= 0; | 4386 return dart.notNull(this[_findBucketIndex](bucket, key)) >= 0; |
| 4387 } | 4387 } |
| 4388 containsValue(value) { | 4388 containsValue(value) { |
| 4389 return this.keys[core.$any](dart.fn((each => dart.equals(this.get(each),
value)).bind(this), core.bool, [dart.dynamic])); | 4389 return this.keys[core.$any](dart.fn((each => dart.equals(this.get(each),
value)).bind(this), core.bool, [core.Object])); |
| 4390 } | 4390 } |
| 4391 addAll(other) { | 4391 addAll(other) { |
| 4392 dart.as(other, core.Map$(K, V)); | 4392 dart.as(other, core.Map$(K, V)); |
| 4393 other.forEach(dart.fn(((key, value) => { | 4393 other.forEach(dart.fn(((key, value) => { |
| 4394 dart.as(key, K); | 4394 dart.as(key, K); |
| 4395 dart.as(value, V); | 4395 dart.as(value, V); |
| 4396 this.set(key, value); | 4396 this.set(key, value); |
| 4397 }).bind(this), dart.dynamic, [K, V])); | 4397 }).bind(this), core.Object, [K, V])); |
| 4398 } | 4398 } |
| 4399 get(key) { | 4399 get(key) { |
| 4400 if (_LinkedHashMap$()._isStringKey(key)) { | 4400 if (_LinkedHashMap$()._isStringKey(key)) { |
| 4401 let strings = this[_strings]; | 4401 let strings = this[_strings]; |
| 4402 if (strings == null) | 4402 if (strings == null) |
| 4403 return null; | 4403 return null; |
| 4404 let cell = dart.as(_LinkedHashMap$()._getTableEntry(strings, key), Lin
kedHashMapCell); | 4404 let cell = dart.as(_LinkedHashMap$()._getTableEntry(strings, key), Lin
kedHashMapCell); |
| 4405 return cell == null ? null : dart.as(cell[_value], V); | 4405 return cell == null ? null : dart.as(cell[_value], V); |
| 4406 } else if (_LinkedHashMap$()._isNumericKey(key)) { | 4406 } else if (_LinkedHashMap$()._isNumericKey(key)) { |
| 4407 let nums = this[_nums]; | 4407 let nums = this[_nums]; |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4622 addAll: dart.functionType(dart.void, [core.Map$(K, V)]), | 4622 addAll: dart.functionType(dart.void, [core.Map$(K, V)]), |
| 4623 get: dart.functionType(V, [core.Object]), | 4623 get: dart.functionType(V, [core.Object]), |
| 4624 [_get]: dart.functionType(V, [core.Object]), | 4624 [_get]: dart.functionType(V, [core.Object]), |
| 4625 set: dart.functionType(dart.void, [K, V]), | 4625 set: dart.functionType(dart.void, [K, V]), |
| 4626 [_set]: dart.functionType(dart.void, [K, V]), | 4626 [_set]: dart.functionType(dart.void, [K, V]), |
| 4627 putIfAbsent: dart.functionType(V, [K, dart.functionType(V, [])]), | 4627 putIfAbsent: dart.functionType(V, [K, dart.functionType(V, [])]), |
| 4628 remove: dart.functionType(V, [core.Object]), | 4628 remove: dart.functionType(V, [core.Object]), |
| 4629 [_remove]: dart.functionType(V, [core.Object]), | 4629 [_remove]: dart.functionType(V, [core.Object]), |
| 4630 clear: dart.functionType(dart.void, []), | 4630 clear: dart.functionType(dart.void, []), |
| 4631 forEach: dart.functionType(dart.void, [dart.functionType(dart.void, [K,
V])]), | 4631 forEach: dart.functionType(dart.void, [dart.functionType(dart.void, [K,
V])]), |
| 4632 [_addHashTableEntry]: dart.functionType(dart.void, [dart.dynamic, K, V])
, | 4632 [_addHashTableEntry]: dart.functionType(dart.void, [core.Object, K, V]), |
| 4633 [_removeHashTableEntry]: dart.functionType(V, [dart.dynamic, core.Object
]), | 4633 [_removeHashTableEntry]: dart.functionType(V, [core.Object, core.Object]
), |
| 4634 [_modified]: dart.functionType(dart.void, []), | 4634 [_modified]: dart.functionType(dart.void, []), |
| 4635 [_newLinkedCell]: dart.functionType(LinkedHashMapCell, [K, V]), | 4635 [_newLinkedCell]: dart.functionType(LinkedHashMapCell, [K, V]), |
| 4636 [_unlinkCell]: dart.functionType(dart.void, [LinkedHashMapCell]), | 4636 [_unlinkCell]: dart.functionType(dart.void, [LinkedHashMapCell]), |
| 4637 [_computeHashCode]: dart.functionType(core.int, [dart.dynamic]), | 4637 [_computeHashCode]: dart.functionType(core.int, [core.Object]), |
| 4638 [_getBucket]: dart.functionType(core.List, [dart.dynamic, dart.dynamic])
, | 4638 [_getBucket]: dart.functionType(core.List, [core.Object, core.Object]), |
| 4639 [_findBucketIndex]: dart.functionType(core.int, [dart.dynamic, dart.dyna
mic]) | 4639 [_findBucketIndex]: dart.functionType(core.int, [core.Object, core.Objec
t]) |
| 4640 }), | 4640 }), |
| 4641 statics: () => ({ | 4641 statics: () => ({ |
| 4642 _isStringKey: dart.functionType(core.bool, [dart.dynamic]), | 4642 _isStringKey: dart.functionType(core.bool, [core.Object]), |
| 4643 _isNumericKey: dart.functionType(core.bool, [dart.dynamic]), | 4643 _isNumericKey: dart.functionType(core.bool, [core.Object]), |
| 4644 _getTableEntry: dart.functionType(dart.dynamic, [dart.dynamic, dart.dyna
mic]), | 4644 _getTableEntry: dart.functionType(core.Object, [core.Object, core.Object
]), |
| 4645 _setTableEntry: dart.functionType(dart.void, [dart.dynamic, dart.dynamic
, dart.dynamic]), | 4645 _setTableEntry: dart.functionType(dart.void, [core.Object, core.Object,
core.Object]), |
| 4646 _deleteTableEntry: dart.functionType(dart.void, [dart.dynamic, dart.dyna
mic]), | 4646 _deleteTableEntry: dart.functionType(dart.void, [core.Object, core.Objec
t]), |
| 4647 _newHashTable: dart.functionType(dart.dynamic, []) | 4647 _newHashTable: dart.functionType(core.Object, []) |
| 4648 }), | 4648 }), |
| 4649 names: ['_isStringKey', '_isNumericKey', '_getTableEntry', '_setTableEntry
', '_deleteTableEntry', '_newHashTable'] | 4649 names: ['_isStringKey', '_isNumericKey', '_getTableEntry', '_setTableEntry
', '_deleteTableEntry', '_newHashTable'] |
| 4650 }); | 4650 }); |
| 4651 return _LinkedHashMap; | 4651 return _LinkedHashMap; |
| 4652 }); | 4652 }); |
| 4653 let _LinkedHashMap = _LinkedHashMap$(); | 4653 let _LinkedHashMap = _LinkedHashMap$(); |
| 4654 let _LinkedIdentityHashMap$ = dart.generic(function(K, V) { | 4654 let _LinkedIdentityHashMap$ = dart.generic(function(K, V) { |
| 4655 class _LinkedIdentityHashMap extends _LinkedHashMap$(K, V) { | 4655 class _LinkedIdentityHashMap extends _LinkedHashMap$(K, V) { |
| 4656 _LinkedIdentityHashMap() { | 4656 _LinkedIdentityHashMap() { |
| 4657 super._LinkedHashMap(); | 4657 super._LinkedHashMap(); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 4672 } | 4672 } |
| 4673 } | 4673 } |
| 4674 return _LinkedIdentityHashMap; | 4674 return _LinkedIdentityHashMap; |
| 4675 }); | 4675 }); |
| 4676 let _LinkedIdentityHashMap = _LinkedIdentityHashMap$(); | 4676 let _LinkedIdentityHashMap = _LinkedIdentityHashMap$(); |
| 4677 let _LinkedCustomHashMap$ = dart.generic(function(K, V) { | 4677 let _LinkedCustomHashMap$ = dart.generic(function(K, V) { |
| 4678 class _LinkedCustomHashMap extends _LinkedHashMap$(K, V) { | 4678 class _LinkedCustomHashMap extends _LinkedHashMap$(K, V) { |
| 4679 _LinkedCustomHashMap(equals, hashCode, validKey) { | 4679 _LinkedCustomHashMap(equals, hashCode, validKey) { |
| 4680 this[_equals] = equals; | 4680 this[_equals] = equals; |
| 4681 this[_hashCode] = hashCode; | 4681 this[_hashCode] = hashCode; |
| 4682 this[_validKey] = validKey != null ? validKey : dart.fn(v => dart.is(v,
K), core.bool, [dart.dynamic]); | 4682 this[_validKey] = validKey != null ? validKey : dart.fn(v => dart.is(v,
K), core.bool, [core.Object]); |
| 4683 super._LinkedHashMap(); | 4683 super._LinkedHashMap(); |
| 4684 } | 4684 } |
| 4685 get(key) { | 4685 get(key) { |
| 4686 if (!dart.notNull(this[_validKey](key))) | 4686 if (!dart.notNull(this[_validKey](key))) |
| 4687 return null; | 4687 return null; |
| 4688 return super[_get](key); | 4688 return super[_get](key); |
| 4689 } | 4689 } |
| 4690 set(key, value) { | 4690 set(key, value) { |
| 4691 dart.as(key, K); | 4691 dart.as(key, K); |
| 4692 dart.as(value, V); | 4692 dart.as(value, V); |
| (...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5047 [core.$contains]: dart.functionType(core.bool, [core.Object]), | 5047 [core.$contains]: dart.functionType(core.bool, [core.Object]), |
| 5048 [_contains]: dart.functionType(core.bool, [core.Object]), | 5048 [_contains]: dart.functionType(core.bool, [core.Object]), |
| 5049 lookup: dart.functionType(E, [core.Object]), | 5049 lookup: dart.functionType(E, [core.Object]), |
| 5050 [_lookup]: dart.functionType(E, [core.Object]), | 5050 [_lookup]: dart.functionType(E, [core.Object]), |
| 5051 add: dart.functionType(core.bool, [E]), | 5051 add: dart.functionType(core.bool, [E]), |
| 5052 [_add]: dart.functionType(core.bool, [E]), | 5052 [_add]: dart.functionType(core.bool, [E]), |
| 5053 addAll: dart.functionType(dart.void, [core.Iterable$(E)]), | 5053 addAll: dart.functionType(dart.void, [core.Iterable$(E)]), |
| 5054 remove: dart.functionType(core.bool, [core.Object]), | 5054 remove: dart.functionType(core.bool, [core.Object]), |
| 5055 [_remove]: dart.functionType(core.bool, [core.Object]), | 5055 [_remove]: dart.functionType(core.bool, [core.Object]), |
| 5056 [_computeElements]: dart.functionType(core.List, []), | 5056 [_computeElements]: dart.functionType(core.List, []), |
| 5057 [_addHashTableEntry]: dart.functionType(core.bool, [dart.dynamic, E]), | 5057 [_addHashTableEntry]: dart.functionType(core.bool, [core.Object, E]), |
| 5058 [_removeHashTableEntry]: dart.functionType(core.bool, [dart.dynamic, cor
e.Object]), | 5058 [_removeHashTableEntry]: dart.functionType(core.bool, [core.Object, core
.Object]), |
| 5059 [_computeHashCode]: dart.functionType(core.int, [dart.dynamic]), | 5059 [_computeHashCode]: dart.functionType(core.int, [core.Object]), |
| 5060 [_getBucket]: dart.functionType(core.List, [dart.dynamic, dart.dynamic])
, | 5060 [_getBucket]: dart.functionType(core.List, [core.Object, core.Object]), |
| 5061 [_findBucketIndex]: dart.functionType(core.int, [dart.dynamic, dart.dyna
mic]) | 5061 [_findBucketIndex]: dart.functionType(core.int, [core.Object, core.Objec
t]) |
| 5062 }), | 5062 }), |
| 5063 statics: () => ({ | 5063 statics: () => ({ |
| 5064 _isStringElement: dart.functionType(core.bool, [dart.dynamic]), | 5064 _isStringElement: dart.functionType(core.bool, [core.Object]), |
| 5065 _isNumericElement: dart.functionType(core.bool, [dart.dynamic]), | 5065 _isNumericElement: dart.functionType(core.bool, [core.Object]), |
| 5066 _hasTableEntry: dart.functionType(core.bool, [dart.dynamic, dart.dynamic
]), | 5066 _hasTableEntry: dart.functionType(core.bool, [core.Object, core.Object])
, |
| 5067 _setTableEntry: dart.functionType(dart.void, [dart.dynamic, dart.dynamic
, dart.dynamic]), | 5067 _setTableEntry: dart.functionType(dart.void, [core.Object, core.Object,
core.Object]), |
| 5068 _deleteTableEntry: dart.functionType(dart.void, [dart.dynamic, dart.dyna
mic]), | 5068 _deleteTableEntry: dart.functionType(dart.void, [core.Object, core.Objec
t]), |
| 5069 _newHashTable: dart.functionType(dart.dynamic, []) | 5069 _newHashTable: dart.functionType(core.Object, []) |
| 5070 }), | 5070 }), |
| 5071 names: ['_isStringElement', '_isNumericElement', '_hasTableEntry', '_setTa
bleEntry', '_deleteTableEntry', '_newHashTable'] | 5071 names: ['_isStringElement', '_isNumericElement', '_hasTableEntry', '_setTa
bleEntry', '_deleteTableEntry', '_newHashTable'] |
| 5072 }); | 5072 }); |
| 5073 return _HashSet; | 5073 return _HashSet; |
| 5074 }); | 5074 }); |
| 5075 let _HashSet = _HashSet$(); | 5075 let _HashSet = _HashSet$(); |
| 5076 let _IdentityHashSet$ = dart.generic(function(E) { | 5076 let _IdentityHashSet$ = dart.generic(function(E) { |
| 5077 class _IdentityHashSet extends _HashSet$(E) { | 5077 class _IdentityHashSet extends _HashSet$(E) { |
| 5078 _IdentityHashSet() { | 5078 _IdentityHashSet() { |
| 5079 super._HashSet(); | 5079 super._HashSet(); |
| (...skipping 21 matching lines...) Expand all Loading... |
| 5101 return _IdentityHashSet; | 5101 return _IdentityHashSet; |
| 5102 }); | 5102 }); |
| 5103 let _IdentityHashSet = _IdentityHashSet$(); | 5103 let _IdentityHashSet = _IdentityHashSet$(); |
| 5104 let _equality = Symbol('_equality'); | 5104 let _equality = Symbol('_equality'); |
| 5105 let _hasher = Symbol('_hasher'); | 5105 let _hasher = Symbol('_hasher'); |
| 5106 let _CustomHashSet$ = dart.generic(function(E) { | 5106 let _CustomHashSet$ = dart.generic(function(E) { |
| 5107 class _CustomHashSet extends _HashSet$(E) { | 5107 class _CustomHashSet extends _HashSet$(E) { |
| 5108 _CustomHashSet(equality, hasher, validKey) { | 5108 _CustomHashSet(equality, hasher, validKey) { |
| 5109 this[_equality] = equality; | 5109 this[_equality] = equality; |
| 5110 this[_hasher] = hasher; | 5110 this[_hasher] = hasher; |
| 5111 this[_validKey] = validKey != null ? validKey : dart.fn(x => dart.is(x,
E), core.bool, [dart.dynamic]); | 5111 this[_validKey] = validKey != null ? validKey : dart.fn(x => dart.is(x,
E), core.bool, [core.Object]); |
| 5112 super._HashSet(); | 5112 super._HashSet(); |
| 5113 } | 5113 } |
| 5114 [_newSet]() { | 5114 [_newSet]() { |
| 5115 return new (_CustomHashSet$(E))(this[_equality], this[_hasher], this[_va
lidKey]); | 5115 return new (_CustomHashSet$(E))(this[_equality], this[_hasher], this[_va
lidKey]); |
| 5116 } | 5116 } |
| 5117 [_findBucketIndex](bucket, element) { | 5117 [_findBucketIndex](bucket, element) { |
| 5118 if (bucket == null) | 5118 if (bucket == null) |
| 5119 return -1; | 5119 return -1; |
| 5120 let length = bucket.length; | 5120 let length = bucket.length; |
| 5121 for (let i = 0; dart.notNull(i) < dart.notNull(length); i = dart.notNull
(i) + 1) { | 5121 for (let i = 0; dart.notNull(i) < dart.notNull(length); i = dart.notNull
(i) + 1) { |
| (...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5475 lookup: dart.functionType(E, [core.Object]), | 5475 lookup: dart.functionType(E, [core.Object]), |
| 5476 [_lookup]: dart.functionType(E, [core.Object]), | 5476 [_lookup]: dart.functionType(E, [core.Object]), |
| 5477 [core.$forEach]: dart.functionType(dart.void, [dart.functionType(dart.vo
id, [E])]), | 5477 [core.$forEach]: dart.functionType(dart.void, [dart.functionType(dart.vo
id, [E])]), |
| 5478 add: dart.functionType(core.bool, [E]), | 5478 add: dart.functionType(core.bool, [E]), |
| 5479 [_add]: dart.functionType(core.bool, [E]), | 5479 [_add]: dart.functionType(core.bool, [E]), |
| 5480 remove: dart.functionType(core.bool, [core.Object]), | 5480 remove: dart.functionType(core.bool, [core.Object]), |
| 5481 [_remove]: dart.functionType(core.bool, [core.Object]), | 5481 [_remove]: dart.functionType(core.bool, [core.Object]), |
| 5482 removeWhere: dart.functionType(dart.void, [dart.functionType(core.bool,
[E])]), | 5482 removeWhere: dart.functionType(dart.void, [dart.functionType(core.bool,
[E])]), |
| 5483 retainWhere: dart.functionType(dart.void, [dart.functionType(core.bool,
[E])]), | 5483 retainWhere: dart.functionType(dart.void, [dart.functionType(core.bool,
[E])]), |
| 5484 [_filterWhere]: dart.functionType(dart.void, [dart.functionType(core.boo
l, [E]), core.bool]), | 5484 [_filterWhere]: dart.functionType(dart.void, [dart.functionType(core.boo
l, [E]), core.bool]), |
| 5485 [_addHashTableEntry]: dart.functionType(core.bool, [dart.dynamic, E]), | 5485 [_addHashTableEntry]: dart.functionType(core.bool, [core.Object, E]), |
| 5486 [_removeHashTableEntry]: dart.functionType(core.bool, [dart.dynamic, cor
e.Object]), | 5486 [_removeHashTableEntry]: dart.functionType(core.bool, [core.Object, core
.Object]), |
| 5487 [_modified]: dart.functionType(dart.void, []), | 5487 [_modified]: dart.functionType(dart.void, []), |
| 5488 [_newLinkedCell]: dart.functionType(LinkedHashSetCell, [E]), | 5488 [_newLinkedCell]: dart.functionType(LinkedHashSetCell, [E]), |
| 5489 [_unlinkCell]: dart.functionType(dart.void, [LinkedHashSetCell]), | 5489 [_unlinkCell]: dart.functionType(dart.void, [LinkedHashSetCell]), |
| 5490 [_computeHashCode]: dart.functionType(core.int, [dart.dynamic]), | 5490 [_computeHashCode]: dart.functionType(core.int, [core.Object]), |
| 5491 [_getBucket]: dart.functionType(core.List, [dart.dynamic, dart.dynamic])
, | 5491 [_getBucket]: dart.functionType(core.List, [core.Object, core.Object]), |
| 5492 [_findBucketIndex]: dart.functionType(core.int, [dart.dynamic, dart.dyna
mic]) | 5492 [_findBucketIndex]: dart.functionType(core.int, [core.Object, core.Objec
t]) |
| 5493 }), | 5493 }), |
| 5494 statics: () => ({ | 5494 statics: () => ({ |
| 5495 _isStringElement: dart.functionType(core.bool, [dart.dynamic]), | 5495 _isStringElement: dart.functionType(core.bool, [core.Object]), |
| 5496 _isNumericElement: dart.functionType(core.bool, [dart.dynamic]), | 5496 _isNumericElement: dart.functionType(core.bool, [core.Object]), |
| 5497 _getTableEntry: dart.functionType(dart.dynamic, [dart.dynamic, dart.dyna
mic]), | 5497 _getTableEntry: dart.functionType(core.Object, [core.Object, core.Object
]), |
| 5498 _setTableEntry: dart.functionType(dart.void, [dart.dynamic, dart.dynamic
, dart.dynamic]), | 5498 _setTableEntry: dart.functionType(dart.void, [core.Object, core.Object,
core.Object]), |
| 5499 _deleteTableEntry: dart.functionType(dart.void, [dart.dynamic, dart.dyna
mic]), | 5499 _deleteTableEntry: dart.functionType(dart.void, [core.Object, core.Objec
t]), |
| 5500 _newHashTable: dart.functionType(dart.dynamic, []) | 5500 _newHashTable: dart.functionType(core.Object, []) |
| 5501 }), | 5501 }), |
| 5502 names: ['_isStringElement', '_isNumericElement', '_getTableEntry', '_setTa
bleEntry', '_deleteTableEntry', '_newHashTable'] | 5502 names: ['_isStringElement', '_isNumericElement', '_getTableEntry', '_setTa
bleEntry', '_deleteTableEntry', '_newHashTable'] |
| 5503 }); | 5503 }); |
| 5504 return _LinkedHashSet; | 5504 return _LinkedHashSet; |
| 5505 }); | 5505 }); |
| 5506 let _LinkedHashSet = _LinkedHashSet$(); | 5506 let _LinkedHashSet = _LinkedHashSet$(); |
| 5507 let _LinkedIdentityHashSet$ = dart.generic(function(E) { | 5507 let _LinkedIdentityHashSet$ = dart.generic(function(E) { |
| 5508 class _LinkedIdentityHashSet extends _LinkedHashSet$(E) { | 5508 class _LinkedIdentityHashSet extends _LinkedHashSet$(E) { |
| 5509 _LinkedIdentityHashSet() { | 5509 _LinkedIdentityHashSet() { |
| 5510 super._LinkedHashSet(); | 5510 super._LinkedHashSet(); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 5531 methods: () => ({[_newSet]: dart.functionType(core.Set$(E), [])}) | 5531 methods: () => ({[_newSet]: dart.functionType(core.Set$(E), [])}) |
| 5532 }); | 5532 }); |
| 5533 return _LinkedIdentityHashSet; | 5533 return _LinkedIdentityHashSet; |
| 5534 }); | 5534 }); |
| 5535 let _LinkedIdentityHashSet = _LinkedIdentityHashSet$(); | 5535 let _LinkedIdentityHashSet = _LinkedIdentityHashSet$(); |
| 5536 let _LinkedCustomHashSet$ = dart.generic(function(E) { | 5536 let _LinkedCustomHashSet$ = dart.generic(function(E) { |
| 5537 class _LinkedCustomHashSet extends _LinkedHashSet$(E) { | 5537 class _LinkedCustomHashSet extends _LinkedHashSet$(E) { |
| 5538 _LinkedCustomHashSet(equality, hasher, validKey) { | 5538 _LinkedCustomHashSet(equality, hasher, validKey) { |
| 5539 this[_equality] = equality; | 5539 this[_equality] = equality; |
| 5540 this[_hasher] = hasher; | 5540 this[_hasher] = hasher; |
| 5541 this[_validKey] = validKey != null ? validKey : dart.fn(x => dart.is(x,
E), core.bool, [dart.dynamic]); | 5541 this[_validKey] = validKey != null ? validKey : dart.fn(x => dart.is(x,
E), core.bool, [core.Object]); |
| 5542 super._LinkedHashSet(); | 5542 super._LinkedHashSet(); |
| 5543 } | 5543 } |
| 5544 [_newSet]() { | 5544 [_newSet]() { |
| 5545 return new (_LinkedCustomHashSet$(E))(this[_equality], this[_hasher], th
is[_validKey]); | 5545 return new (_LinkedCustomHashSet$(E))(this[_equality], this[_hasher], th
is[_validKey]); |
| 5546 } | 5546 } |
| 5547 [_findBucketIndex](bucket, element) { | 5547 [_findBucketIndex](bucket, element) { |
| 5548 if (bucket == null) | 5548 if (bucket == null) |
| 5549 return -1; | 5549 return -1; |
| 5550 let length = bucket.length; | 5550 let length = bucket.length; |
| 5551 for (let i = 0; dart.notNull(i) < dart.notNull(length); i = dart.notNull
(i) + 1) { | 5551 for (let i = 0; dart.notNull(i) < dart.notNull(length); i = dart.notNull
(i) + 1) { |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5700 exports.LinkedHashMapKeyIterable$ = LinkedHashMapKeyIterable$; | 5700 exports.LinkedHashMapKeyIterable$ = LinkedHashMapKeyIterable$; |
| 5701 exports.LinkedHashMapKeyIterable = LinkedHashMapKeyIterable; | 5701 exports.LinkedHashMapKeyIterable = LinkedHashMapKeyIterable; |
| 5702 exports.LinkedHashMapKeyIterator$ = LinkedHashMapKeyIterator$; | 5702 exports.LinkedHashMapKeyIterator$ = LinkedHashMapKeyIterator$; |
| 5703 exports.LinkedHashMapKeyIterator = LinkedHashMapKeyIterator; | 5703 exports.LinkedHashMapKeyIterator = LinkedHashMapKeyIterator; |
| 5704 exports.HashSetIterator$ = HashSetIterator$; | 5704 exports.HashSetIterator$ = HashSetIterator$; |
| 5705 exports.HashSetIterator = HashSetIterator; | 5705 exports.HashSetIterator = HashSetIterator; |
| 5706 exports.LinkedHashSetCell = LinkedHashSetCell; | 5706 exports.LinkedHashSetCell = LinkedHashSetCell; |
| 5707 exports.LinkedHashSetIterator$ = LinkedHashSetIterator$; | 5707 exports.LinkedHashSetIterator$ = LinkedHashSetIterator$; |
| 5708 exports.LinkedHashSetIterator = LinkedHashSetIterator; | 5708 exports.LinkedHashSetIterator = LinkedHashSetIterator; |
| 5709 })(collection, _internal, core, _js_helper, math); | 5709 })(collection, _internal, core, _js_helper, math); |
| OLD | NEW |