Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(479)

Side by Side Diff: lib/runtime/dart/collection.js

Issue 1195523002: Handle dynamic as bottom inside of function type reps (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Fix typo in comment Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « lib/runtime/dart/async.js ('k') | lib/runtime/dart/convert.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 dart_library.library('dart/collection', null, /* Imports */[ 1 dart_library.library('dart/collection', null, /* Imports */[
2 "dart_runtime/dart", 2 "dart_runtime/dart",
3 'dart/core' 3 'dart/core'
4 ], /* Lazy imports */[ 4 ], /* Lazy imports */[
5 'dart/_internal', 5 'dart/_internal',
6 'dart/_js_helper', 6 'dart/_js_helper',
7 'dart/math' 7 'dart/math'
8 ], function(exports, dart, core, _internal, _js_helper, math) { 8 ], function(exports, dart, core, _internal, _js_helper, math) {
9 'use strict'; 9 'use strict';
10 let dartx = dart.dartx; 10 let dartx = dart.dartx;
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 Maps._fillMapWithIterables(map, keys, values); 99 Maps._fillMapWithIterables(map, keys, values);
100 return map; 100 return map;
101 } 101 }
102 } 102 }
103 HashMap[dart.implements] = () => [core.Map$(K, V)]; 103 HashMap[dart.implements] = () => [core.Map$(K, V)];
104 dart.setSignature(HashMap, { 104 dart.setSignature(HashMap, {
105 constructors: () => ({ 105 constructors: () => ({
106 new: [HashMap$(K, V), [], {equals: dart.functionType(core.bool, [K, K]), hashCode: dart.functionType(core.int, [K]), isValidKey: dart.functionType(core. bool, [core.Object])}], 106 new: [HashMap$(K, V), [], {equals: dart.functionType(core.bool, [K, K]), hashCode: dart.functionType(core.int, [K]), isValidKey: dart.functionType(core. bool, [core.Object])}],
107 identity: [HashMap$(K, V), []], 107 identity: [HashMap$(K, V), []],
108 from: [HashMap$(K, V), [core.Map]], 108 from: [HashMap$(K, V), [core.Map]],
109 fromIterable: [HashMap$(K, V), [core.Iterable], {key: dart.functionType( K, [dart.bottom]), value: dart.functionType(V, [dart.bottom])}], 109 fromIterable: [HashMap$(K, V), [core.Iterable], {key: dart.functionType( K, [dart.dynamic]), value: dart.functionType(V, [dart.dynamic])}],
110 fromIterables: [HashMap$(K, V), [core.Iterable$(K), core.Iterable$(V)]] 110 fromIterables: [HashMap$(K, V), [core.Iterable$(K), core.Iterable$(V)]]
111 }) 111 })
112 }); 112 });
113 return HashMap; 113 return HashMap;
114 }); 114 });
115 let HashMap = HashMap$(); 115 let HashMap = HashMap$();
116 let SetMixin$ = dart.generic(function(E) { 116 let SetMixin$ = dart.generic(function(E) {
117 class SetMixin extends core.Object { 117 class SetMixin extends core.Object {
118 [Symbol.iterator]() { 118 [Symbol.iterator]() {
119 return new dart.JsIterator(this.iterator); 119 return new dart.JsIterator(this.iterator);
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 let i = 0; 200 let i = 0;
201 for (let element of this) 201 for (let element of this)
202 result[dartx.set]((() => { 202 result[dartx.set]((() => {
203 let x = i; 203 let x = i;
204 i = dart.notNull(x) + 1; 204 i = dart.notNull(x) + 1;
205 return x; 205 return x;
206 })(), element); 206 })(), element);
207 return result; 207 return result;
208 } 208 }
209 map(f) { 209 map(f) {
210 dart.as(f, dart.functionType(core.Object, [E])); 210 dart.as(f, dart.functionType(dart.dynamic, [E]));
211 return new (_internal.EfficientLengthMappedIterable$(E, core.Object))(th is, f); 211 return new (_internal.EfficientLengthMappedIterable$(E, dart.dynamic))(t his, f);
212 } 212 }
213 get single() { 213 get single() {
214 if (dart.notNull(this.length) > 1) 214 if (dart.notNull(this.length) > 1)
215 throw _internal.IterableElementError.tooMany(); 215 throw _internal.IterableElementError.tooMany();
216 let it = this.iterator; 216 let it = this.iterator;
217 if (!dart.notNull(it.moveNext())) 217 if (!dart.notNull(it.moveNext()))
218 throw _internal.IterableElementError.noElement(); 218 throw _internal.IterableElementError.noElement();
219 let result = it.current; 219 let result = it.current;
220 return result; 220 return result;
221 } 221 }
222 toString() { 222 toString() {
223 return IterableBase.iterableToFullString(this, '{', '}'); 223 return IterableBase.iterableToFullString(this, '{', '}');
224 } 224 }
225 where(f) { 225 where(f) {
226 dart.as(f, dart.functionType(core.bool, [E])); 226 dart.as(f, dart.functionType(core.bool, [E]));
227 return new (_internal.WhereIterable$(E))(this, f); 227 return new (_internal.WhereIterable$(E))(this, f);
228 } 228 }
229 expand(f) { 229 expand(f) {
230 dart.as(f, dart.functionType(core.Iterable, [E])); 230 dart.as(f, dart.functionType(core.Iterable, [E]));
231 return new (_internal.ExpandIterable$(E, core.Object))(this, f); 231 return new (_internal.ExpandIterable$(E, dart.dynamic))(this, f);
232 } 232 }
233 forEach(f) { 233 forEach(f) {
234 dart.as(f, dart.functionType(dart.void, [E])); 234 dart.as(f, dart.functionType(dart.void, [E]));
235 for (let element of this) 235 for (let element of this)
236 f(element); 236 f(element);
237 } 237 }
238 reduce(combine) { 238 reduce(combine) {
239 dart.as(combine, dart.functionType(E, [E, E])); 239 dart.as(combine, dart.functionType(E, [E, E]));
240 let iterator = this.iterator; 240 let iterator = this.iterator;
241 if (!dart.notNull(iterator.moveNext())) { 241 if (!dart.notNull(iterator.moveNext())) {
242 throw _internal.IterableElementError.noElement(); 242 throw _internal.IterableElementError.noElement();
243 } 243 }
244 let value = iterator.current; 244 let value = iterator.current;
245 while (dart.notNull(iterator.moveNext())) { 245 while (dart.notNull(iterator.moveNext())) {
246 value = combine(value, iterator.current); 246 value = combine(value, iterator.current);
247 } 247 }
248 return value; 248 return value;
249 } 249 }
250 fold(initialValue, combine) { 250 fold(initialValue, combine) {
251 dart.as(combine, dart.functionType(core.Object, [dart.bottom, E])); 251 dart.as(combine, dart.functionType(dart.dynamic, [dart.dynamic, E]));
252 let value = initialValue; 252 let value = initialValue;
253 for (let element of this) 253 for (let element of this)
254 value = dart.dcall(combine, value, element); 254 value = dart.dcall(combine, value, element);
255 return value; 255 return value;
256 } 256 }
257 every(f) { 257 every(f) {
258 dart.as(f, dart.functionType(core.bool, [E])); 258 dart.as(f, dart.functionType(core.bool, [E]));
259 for (let element of this) { 259 for (let element of this) {
260 if (!dart.notNull(f(element))) 260 if (!dart.notNull(f(element)))
261 return false; 261 return false;
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 addAll: [dart.void, [core.Iterable$(E)]], 389 addAll: [dart.void, [core.Iterable$(E)]],
390 removeAll: [dart.void, [core.Iterable$(core.Object)]], 390 removeAll: [dart.void, [core.Iterable$(core.Object)]],
391 retainAll: [dart.void, [core.Iterable$(core.Object)]], 391 retainAll: [dart.void, [core.Iterable$(core.Object)]],
392 removeWhere: [dart.void, [dart.functionType(core.bool, [E])]], 392 removeWhere: [dart.void, [dart.functionType(core.bool, [E])]],
393 retainWhere: [dart.void, [dart.functionType(core.bool, [E])]], 393 retainWhere: [dart.void, [dart.functionType(core.bool, [E])]],
394 containsAll: [core.bool, [core.Iterable$(core.Object)]], 394 containsAll: [core.bool, [core.Iterable$(core.Object)]],
395 union: [core.Set$(E), [core.Set$(E)]], 395 union: [core.Set$(E), [core.Set$(E)]],
396 intersection: [core.Set$(E), [core.Set$(core.Object)]], 396 intersection: [core.Set$(E), [core.Set$(core.Object)]],
397 difference: [core.Set$(E), [core.Set$(core.Object)]], 397 difference: [core.Set$(E), [core.Set$(core.Object)]],
398 toList: [core.List$(E), [], {growable: core.bool}], 398 toList: [core.List$(E), [], {growable: core.bool}],
399 map: [core.Iterable, [dart.functionType(core.Object, [E])]], 399 map: [core.Iterable, [dart.functionType(dart.dynamic, [E])]],
400 where: [core.Iterable$(E), [dart.functionType(core.bool, [E])]], 400 where: [core.Iterable$(E), [dart.functionType(core.bool, [E])]],
401 expand: [core.Iterable, [dart.functionType(core.Iterable, [E])]], 401 expand: [core.Iterable, [dart.functionType(core.Iterable, [E])]],
402 forEach: [dart.void, [dart.functionType(dart.void, [E])]], 402 forEach: [dart.void, [dart.functionType(dart.void, [E])]],
403 reduce: [E, [dart.functionType(E, [E, E])]], 403 reduce: [E, [dart.functionType(E, [E, E])]],
404 fold: [core.Object, [core.Object, dart.functionType(core.Object, [dart.b ottom, E])]], 404 fold: [dart.dynamic, [dart.dynamic, dart.functionType(dart.dynamic, [dar t.dynamic, E])]],
405 every: [core.bool, [dart.functionType(core.bool, [E])]], 405 every: [core.bool, [dart.functionType(core.bool, [E])]],
406 join: [core.String, [], [core.String]], 406 join: [core.String, [], [core.String]],
407 any: [core.bool, [dart.functionType(core.bool, [E])]], 407 any: [core.bool, [dart.functionType(core.bool, [E])]],
408 take: [core.Iterable$(E), [core.int]], 408 take: [core.Iterable$(E), [core.int]],
409 takeWhile: [core.Iterable$(E), [dart.functionType(core.bool, [E])]], 409 takeWhile: [core.Iterable$(E), [dart.functionType(core.bool, [E])]],
410 skip: [core.Iterable$(E), [core.int]], 410 skip: [core.Iterable$(E), [core.int]],
411 skipWhile: [core.Iterable$(E), [dart.functionType(core.bool, [E])]], 411 skipWhile: [core.Iterable$(E), [dart.functionType(core.bool, [E])]],
412 firstWhere: [E, [dart.functionType(core.bool, [E])], {orElse: dart.funct ionType(E, [])}], 412 firstWhere: [E, [dart.functionType(core.bool, [E])], {orElse: dart.funct ionType(E, [])}],
413 lastWhere: [E, [dart.functionType(core.bool, [E])], {orElse: dart.functi onType(E, [])}], 413 lastWhere: [E, [dart.functionType(core.bool, [E])], {orElse: dart.functi onType(E, [])}],
414 singleWhere: [E, [dart.functionType(core.bool, [E])]], 414 singleWhere: [E, [dart.functionType(core.bool, [E])]],
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
544 identity: [HashSet$(E), []], 544 identity: [HashSet$(E), []],
545 from: [HashSet$(E), [core.Iterable]] 545 from: [HashSet$(E), [core.Iterable]]
546 }) 546 })
547 }); 547 });
548 return HashSet; 548 return HashSet;
549 }); 549 });
550 let HashSet = HashSet$(); 550 let HashSet = HashSet$();
551 let IterableMixin$ = dart.generic(function(E) { 551 let IterableMixin$ = dart.generic(function(E) {
552 class IterableMixin extends core.Object { 552 class IterableMixin extends core.Object {
553 map(f) { 553 map(f) {
554 dart.as(f, dart.functionType(core.Object, [E])); 554 dart.as(f, dart.functionType(dart.dynamic, [E]));
555 return _internal.MappedIterable$(E, core.Object).new(this, f); 555 return _internal.MappedIterable$(E, dart.dynamic).new(this, f);
556 } 556 }
557 where(f) { 557 where(f) {
558 dart.as(f, dart.functionType(core.bool, [E])); 558 dart.as(f, dart.functionType(core.bool, [E]));
559 return new (_internal.WhereIterable$(E))(this, f); 559 return new (_internal.WhereIterable$(E))(this, f);
560 } 560 }
561 expand(f) { 561 expand(f) {
562 dart.as(f, dart.functionType(core.Iterable, [E])); 562 dart.as(f, dart.functionType(core.Iterable, [E]));
563 return new (_internal.ExpandIterable$(E, core.Object))(this, f); 563 return new (_internal.ExpandIterable$(E, dart.dynamic))(this, f);
564 } 564 }
565 contains(element) { 565 contains(element) {
566 for (let e of this) { 566 for (let e of this) {
567 if (dart.equals(e, element)) 567 if (dart.equals(e, element))
568 return true; 568 return true;
569 } 569 }
570 return false; 570 return false;
571 } 571 }
572 forEach(f) { 572 forEach(f) {
573 dart.as(f, dart.functionType(dart.void, [E])); 573 dart.as(f, dart.functionType(dart.void, [E]));
574 for (let element of this) 574 for (let element of this)
575 f(element); 575 f(element);
576 } 576 }
577 reduce(combine) { 577 reduce(combine) {
578 dart.as(combine, dart.functionType(E, [E, E])); 578 dart.as(combine, dart.functionType(E, [E, E]));
579 let iterator = this.iterator; 579 let iterator = this.iterator;
580 if (!dart.notNull(iterator.moveNext())) { 580 if (!dart.notNull(iterator.moveNext())) {
581 throw _internal.IterableElementError.noElement(); 581 throw _internal.IterableElementError.noElement();
582 } 582 }
583 let value = iterator.current; 583 let value = iterator.current;
584 while (dart.notNull(iterator.moveNext())) { 584 while (dart.notNull(iterator.moveNext())) {
585 value = combine(value, iterator.current); 585 value = combine(value, iterator.current);
586 } 586 }
587 return value; 587 return value;
588 } 588 }
589 fold(initialValue, combine) { 589 fold(initialValue, combine) {
590 dart.as(combine, dart.functionType(core.Object, [dart.bottom, E])); 590 dart.as(combine, dart.functionType(dart.dynamic, [dart.dynamic, E]));
591 let value = initialValue; 591 let value = initialValue;
592 for (let element of this) 592 for (let element of this)
593 value = dart.dcall(combine, value, element); 593 value = dart.dcall(combine, value, element);
594 return value; 594 return value;
595 } 595 }
596 every(f) { 596 every(f) {
597 dart.as(f, dart.functionType(core.bool, [E])); 597 dart.as(f, dart.functionType(core.bool, [E]));
598 for (let element of this) { 598 for (let element of this) {
599 if (!dart.notNull(f(element))) 599 if (!dart.notNull(f(element)))
600 return false; 600 return false;
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
754 toString() { 754 toString() {
755 return IterableBase.iterableToShortString(this, '(', ')'); 755 return IterableBase.iterableToShortString(this, '(', ')');
756 } 756 }
757 [Symbol.iterator]() { 757 [Symbol.iterator]() {
758 return new dart.JsIterator(this.iterator); 758 return new dart.JsIterator(this.iterator);
759 } 759 }
760 } 760 }
761 IterableMixin[dart.implements] = () => [core.Iterable$(E)]; 761 IterableMixin[dart.implements] = () => [core.Iterable$(E)];
762 dart.setSignature(IterableMixin, { 762 dart.setSignature(IterableMixin, {
763 methods: () => ({ 763 methods: () => ({
764 map: [core.Iterable, [dart.functionType(core.Object, [E])]], 764 map: [core.Iterable, [dart.functionType(dart.dynamic, [E])]],
765 where: [core.Iterable$(E), [dart.functionType(core.bool, [E])]], 765 where: [core.Iterable$(E), [dart.functionType(core.bool, [E])]],
766 expand: [core.Iterable, [dart.functionType(core.Iterable, [E])]], 766 expand: [core.Iterable, [dart.functionType(core.Iterable, [E])]],
767 contains: [core.bool, [core.Object]], 767 contains: [core.bool, [core.Object]],
768 forEach: [dart.void, [dart.functionType(dart.void, [E])]], 768 forEach: [dart.void, [dart.functionType(dart.void, [E])]],
769 reduce: [E, [dart.functionType(E, [E, E])]], 769 reduce: [E, [dart.functionType(E, [E, E])]],
770 fold: [core.Object, [core.Object, dart.functionType(core.Object, [dart.b ottom, E])]], 770 fold: [dart.dynamic, [dart.dynamic, dart.functionType(dart.dynamic, [dar t.dynamic, E])]],
771 every: [core.bool, [dart.functionType(core.bool, [E])]], 771 every: [core.bool, [dart.functionType(core.bool, [E])]],
772 join: [core.String, [], [core.String]], 772 join: [core.String, [], [core.String]],
773 any: [core.bool, [dart.functionType(core.bool, [E])]], 773 any: [core.bool, [dart.functionType(core.bool, [E])]],
774 toList: [core.List$(E), [], {growable: core.bool}], 774 toList: [core.List$(E), [], {growable: core.bool}],
775 toSet: [core.Set$(E), []], 775 toSet: [core.Set$(E), []],
776 take: [core.Iterable$(E), [core.int]], 776 take: [core.Iterable$(E), [core.int]],
777 takeWhile: [core.Iterable$(E), [dart.functionType(core.bool, [E])]], 777 takeWhile: [core.Iterable$(E), [dart.functionType(core.bool, [E])]],
778 skip: [core.Iterable$(E), [core.int]], 778 skip: [core.Iterable$(E), [core.int]],
779 skipWhile: [core.Iterable$(E), [dart.functionType(core.bool, [E])]], 779 skipWhile: [core.Iterable$(E), [dart.functionType(core.bool, [E])]],
780 firstWhere: [E, [dart.functionType(core.bool, [E])], {orElse: dart.funct ionType(E, [])}], 780 firstWhere: [E, [dart.functionType(core.bool, [E])], {orElse: dart.funct ionType(E, [])}],
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
812 'single' 812 'single'
813 ]); 813 ]);
814 return IterableMixin; 814 return IterableMixin;
815 }); 815 });
816 let IterableMixin = IterableMixin$(); 816 let IterableMixin = IterableMixin$();
817 let IterableBase$ = dart.generic(function(E) { 817 let IterableBase$ = dart.generic(function(E) {
818 class IterableBase extends core.Object { 818 class IterableBase extends core.Object {
819 IterableBase() { 819 IterableBase() {
820 } 820 }
821 map(f) { 821 map(f) {
822 dart.as(f, dart.functionType(core.Object, [E])); 822 dart.as(f, dart.functionType(dart.dynamic, [E]));
823 return _internal.MappedIterable$(E, core.Object).new(this, f); 823 return _internal.MappedIterable$(E, dart.dynamic).new(this, f);
824 } 824 }
825 where(f) { 825 where(f) {
826 dart.as(f, dart.functionType(core.bool, [E])); 826 dart.as(f, dart.functionType(core.bool, [E]));
827 return new (_internal.WhereIterable$(E))(this, f); 827 return new (_internal.WhereIterable$(E))(this, f);
828 } 828 }
829 expand(f) { 829 expand(f) {
830 dart.as(f, dart.functionType(core.Iterable, [E])); 830 dart.as(f, dart.functionType(core.Iterable, [E]));
831 return new (_internal.ExpandIterable$(E, core.Object))(this, f); 831 return new (_internal.ExpandIterable$(E, dart.dynamic))(this, f);
832 } 832 }
833 contains(element) { 833 contains(element) {
834 for (let e of this) { 834 for (let e of this) {
835 if (dart.equals(e, element)) 835 if (dart.equals(e, element))
836 return true; 836 return true;
837 } 837 }
838 return false; 838 return false;
839 } 839 }
840 forEach(f) { 840 forEach(f) {
841 dart.as(f, dart.functionType(dart.void, [E])); 841 dart.as(f, dart.functionType(dart.void, [E]));
842 for (let element of this) 842 for (let element of this)
843 f(element); 843 f(element);
844 } 844 }
845 reduce(combine) { 845 reduce(combine) {
846 dart.as(combine, dart.functionType(E, [E, E])); 846 dart.as(combine, dart.functionType(E, [E, E]));
847 let iterator = this.iterator; 847 let iterator = this.iterator;
848 if (!dart.notNull(iterator.moveNext())) { 848 if (!dart.notNull(iterator.moveNext())) {
849 throw _internal.IterableElementError.noElement(); 849 throw _internal.IterableElementError.noElement();
850 } 850 }
851 let value = iterator.current; 851 let value = iterator.current;
852 while (dart.notNull(iterator.moveNext())) { 852 while (dart.notNull(iterator.moveNext())) {
853 value = combine(value, iterator.current); 853 value = combine(value, iterator.current);
854 } 854 }
855 return value; 855 return value;
856 } 856 }
857 fold(initialValue, combine) { 857 fold(initialValue, combine) {
858 dart.as(combine, dart.functionType(core.Object, [dart.bottom, E])); 858 dart.as(combine, dart.functionType(dart.dynamic, [dart.dynamic, E]));
859 let value = initialValue; 859 let value = initialValue;
860 for (let element of this) 860 for (let element of this)
861 value = dart.dcall(combine, value, element); 861 value = dart.dcall(combine, value, element);
862 return value; 862 return value;
863 } 863 }
864 every(f) { 864 every(f) {
865 dart.as(f, dart.functionType(core.bool, [E])); 865 dart.as(f, dart.functionType(core.bool, [E]));
866 for (let element of this) { 866 for (let element of this) {
867 if (!dart.notNull(f(element))) 867 if (!dart.notNull(f(element)))
868 return false; 868 return false;
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
1153 parts[dartx.add](ultimateString); 1153 parts[dartx.add](ultimateString);
1154 } 1154 }
1155 [Symbol.iterator]() { 1155 [Symbol.iterator]() {
1156 return new dart.JsIterator(this.iterator); 1156 return new dart.JsIterator(this.iterator);
1157 } 1157 }
1158 } 1158 }
1159 IterableBase[dart.implements] = () => [core.Iterable$(E)]; 1159 IterableBase[dart.implements] = () => [core.Iterable$(E)];
1160 dart.setSignature(IterableBase, { 1160 dart.setSignature(IterableBase, {
1161 constructors: () => ({IterableBase: [IterableBase$(E), []]}), 1161 constructors: () => ({IterableBase: [IterableBase$(E), []]}),
1162 methods: () => ({ 1162 methods: () => ({
1163 map: [core.Iterable, [dart.functionType(core.Object, [E])]], 1163 map: [core.Iterable, [dart.functionType(dart.dynamic, [E])]],
1164 where: [core.Iterable$(E), [dart.functionType(core.bool, [E])]], 1164 where: [core.Iterable$(E), [dart.functionType(core.bool, [E])]],
1165 expand: [core.Iterable, [dart.functionType(core.Iterable, [E])]], 1165 expand: [core.Iterable, [dart.functionType(core.Iterable, [E])]],
1166 contains: [core.bool, [core.Object]], 1166 contains: [core.bool, [core.Object]],
1167 forEach: [dart.void, [dart.functionType(dart.void, [E])]], 1167 forEach: [dart.void, [dart.functionType(dart.void, [E])]],
1168 reduce: [E, [dart.functionType(E, [E, E])]], 1168 reduce: [E, [dart.functionType(E, [E, E])]],
1169 fold: [core.Object, [core.Object, dart.functionType(core.Object, [dart.b ottom, E])]], 1169 fold: [dart.dynamic, [dart.dynamic, dart.functionType(dart.dynamic, [dar t.dynamic, E])]],
1170 every: [core.bool, [dart.functionType(core.bool, [E])]], 1170 every: [core.bool, [dart.functionType(core.bool, [E])]],
1171 join: [core.String, [], [core.String]], 1171 join: [core.String, [], [core.String]],
1172 any: [core.bool, [dart.functionType(core.bool, [E])]], 1172 any: [core.bool, [dart.functionType(core.bool, [E])]],
1173 toList: [core.List$(E), [], {growable: core.bool}], 1173 toList: [core.List$(E), [], {growable: core.bool}],
1174 toSet: [core.Set$(E), []], 1174 toSet: [core.Set$(E), []],
1175 take: [core.Iterable$(E), [core.int]], 1175 take: [core.Iterable$(E), [core.int]],
1176 takeWhile: [core.Iterable$(E), [dart.functionType(core.bool, [E])]], 1176 takeWhile: [core.Iterable$(E), [dart.functionType(core.bool, [E])]],
1177 skip: [core.Iterable$(E), [core.int]], 1177 skip: [core.Iterable$(E), [core.int]],
1178 skipWhile: [core.Iterable$(E), [dart.functionType(core.bool, [E])]], 1178 skipWhile: [core.Iterable$(E), [dart.functionType(core.bool, [E])]],
1179 firstWhere: [E, [dart.functionType(core.bool, [E])], {orElse: dart.funct ionType(E, [])}], 1179 firstWhere: [E, [dart.functionType(core.bool, [E])], {orElse: dart.funct ionType(E, [])}],
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
1326 static _empty() { 1326 static _empty() {
1327 return new (_LinkedHashMap$(K, V))(); 1327 return new (_LinkedHashMap$(K, V))();
1328 } 1328 }
1329 } 1329 }
1330 LinkedHashMap[dart.implements] = () => [HashMap$(K, V)]; 1330 LinkedHashMap[dart.implements] = () => [HashMap$(K, V)];
1331 dart.setSignature(LinkedHashMap, { 1331 dart.setSignature(LinkedHashMap, {
1332 constructors: () => ({ 1332 constructors: () => ({
1333 new: [LinkedHashMap$(K, V), [], {equals: dart.functionType(core.bool, [K , K]), hashCode: dart.functionType(core.int, [K]), isValidKey: dart.functionType (core.bool, [core.Object])}], 1333 new: [LinkedHashMap$(K, V), [], {equals: dart.functionType(core.bool, [K , K]), hashCode: dart.functionType(core.int, [K]), isValidKey: dart.functionType (core.bool, [core.Object])}],
1334 identity: [LinkedHashMap$(K, V), []], 1334 identity: [LinkedHashMap$(K, V), []],
1335 from: [LinkedHashMap$(K, V), [core.Map]], 1335 from: [LinkedHashMap$(K, V), [core.Map]],
1336 fromIterable: [LinkedHashMap$(K, V), [core.Iterable], {key: dart.functio nType(K, [dart.bottom]), value: dart.functionType(V, [dart.bottom])}], 1336 fromIterable: [LinkedHashMap$(K, V), [core.Iterable], {key: dart.functio nType(K, [dart.dynamic]), value: dart.functionType(V, [dart.dynamic])}],
1337 fromIterables: [LinkedHashMap$(K, V), [core.Iterable$(K), core.Iterable$ (V)]], 1337 fromIterables: [LinkedHashMap$(K, V), [core.Iterable$(K), core.Iterable$ (V)]],
1338 _literal: [LinkedHashMap$(K, V), [core.List]], 1338 _literal: [LinkedHashMap$(K, V), [core.List]],
1339 _empty: [LinkedHashMap$(K, V), []] 1339 _empty: [LinkedHashMap$(K, V), []]
1340 }) 1340 })
1341 }); 1341 });
1342 return LinkedHashMap; 1342 return LinkedHashMap;
1343 }); 1343 });
1344 let LinkedHashMap = LinkedHashMap$(); 1344 let LinkedHashMap = LinkedHashMap$();
1345 let LinkedHashSet$ = dart.generic(function(E) { 1345 let LinkedHashSet$ = dart.generic(function(E) {
1346 class LinkedHashSet extends core.Object { 1346 class LinkedHashSet extends core.Object {
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
1417 addFirst(entry) { 1417 addFirst(entry) {
1418 dart.as(entry, E); 1418 dart.as(entry, E);
1419 this[_insertAfter](this, entry); 1419 this[_insertAfter](this, entry);
1420 } 1420 }
1421 add(entry) { 1421 add(entry) {
1422 dart.as(entry, E); 1422 dart.as(entry, E);
1423 this[_insertAfter](this[_previous], entry); 1423 this[_insertAfter](this[_previous], entry);
1424 } 1424 }
1425 addAll(entries) { 1425 addAll(entries) {
1426 dart.as(entries, core.Iterable$(E)); 1426 dart.as(entries, core.Iterable$(E));
1427 entries[dartx.forEach](dart.fn(entry => this[_insertAfter](this[_previou s], dart.as(entry, E)), dart.void, [core.Object])); 1427 entries[dartx.forEach](dart.fn(entry => this[_insertAfter](this[_previou s], dart.as(entry, E)), dart.void, [dart.dynamic]));
1428 } 1428 }
1429 remove(entry) { 1429 remove(entry) {
1430 dart.as(entry, E); 1430 dart.as(entry, E);
1431 if (!dart.equals(entry[_list], this)) 1431 if (!dart.equals(entry[_list], this))
1432 return false; 1432 return false;
1433 this[_unlink](entry); 1433 this[_unlink](entry);
1434 return true; 1434 return true;
1435 } 1435 }
1436 get iterator() { 1436 get iterator() {
1437 return new (_LinkedListIterator$(E))(this); 1437 return new (_LinkedListIterator$(E))(this);
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
1761 return ""; 1761 return "";
1762 let buffer = new core.StringBuffer(); 1762 let buffer = new core.StringBuffer();
1763 buffer.writeAll(this, separator); 1763 buffer.writeAll(this, separator);
1764 return dart.toString(buffer); 1764 return dart.toString(buffer);
1765 } 1765 }
1766 where(test) { 1766 where(test) {
1767 dart.as(test, dart.functionType(core.bool, [E])); 1767 dart.as(test, dart.functionType(core.bool, [E]));
1768 return new (_internal.WhereIterable$(E))(this, test); 1768 return new (_internal.WhereIterable$(E))(this, test);
1769 } 1769 }
1770 map(f) { 1770 map(f) {
1771 dart.as(f, dart.functionType(core.Object, [E])); 1771 dart.as(f, dart.functionType(dart.dynamic, [E]));
1772 return new _internal.MappedListIterable(this, f); 1772 return new _internal.MappedListIterable(this, f);
1773 } 1773 }
1774 expand(f) { 1774 expand(f) {
1775 dart.as(f, dart.functionType(core.Iterable, [E])); 1775 dart.as(f, dart.functionType(core.Iterable, [E]));
1776 return new (_internal.ExpandIterable$(E, core.Object))(this, f); 1776 return new (_internal.ExpandIterable$(E, dart.dynamic))(this, f);
1777 } 1777 }
1778 reduce(combine) { 1778 reduce(combine) {
1779 dart.as(combine, dart.functionType(E, [E, E])); 1779 dart.as(combine, dart.functionType(E, [E, E]));
1780 let length = this.length; 1780 let length = this.length;
1781 if (length == 0) 1781 if (length == 0)
1782 throw _internal.IterableElementError.noElement(); 1782 throw _internal.IterableElementError.noElement();
1783 let value = this.get(0); 1783 let value = this.get(0);
1784 for (let i = 1; dart.notNull(i) < dart.notNull(length); i = dart.notNull (i) + 1) { 1784 for (let i = 1; dart.notNull(i) < dart.notNull(length); i = dart.notNull (i) + 1) {
1785 value = combine(value, this.get(i)); 1785 value = combine(value, this.get(i));
1786 if (length != this.length) { 1786 if (length != this.length) {
1787 throw new core.ConcurrentModificationError(this); 1787 throw new core.ConcurrentModificationError(this);
1788 } 1788 }
1789 } 1789 }
1790 return value; 1790 return value;
1791 } 1791 }
1792 fold(initialValue, combine) { 1792 fold(initialValue, combine) {
1793 dart.as(combine, dart.functionType(core.Object, [dart.bottom, E])); 1793 dart.as(combine, dart.functionType(dart.dynamic, [dart.dynamic, E]));
1794 let value = initialValue; 1794 let value = initialValue;
1795 let length = this.length; 1795 let length = this.length;
1796 for (let i = 0; dart.notNull(i) < dart.notNull(length); i = dart.notNull (i) + 1) { 1796 for (let i = 0; dart.notNull(i) < dart.notNull(length); i = dart.notNull (i) + 1) {
1797 value = dart.dcall(combine, value, this.get(i)); 1797 value = dart.dcall(combine, value, this.get(i));
1798 if (length != this.length) { 1798 if (length != this.length) {
1799 throw new core.ConcurrentModificationError(this); 1799 throw new core.ConcurrentModificationError(this);
1800 } 1800 }
1801 } 1801 }
1802 return value; 1802 return value;
1803 } 1803 }
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
1866 } 1866 }
1867 removeWhere(test) { 1867 removeWhere(test) {
1868 dart.as(test, dart.functionType(core.bool, [E])); 1868 dart.as(test, dart.functionType(core.bool, [E]));
1869 ListMixin$()._filter(this, test, false); 1869 ListMixin$()._filter(this, test, false);
1870 } 1870 }
1871 retainWhere(test) { 1871 retainWhere(test) {
1872 dart.as(test, dart.functionType(core.bool, [E])); 1872 dart.as(test, dart.functionType(core.bool, [E]));
1873 ListMixin$()._filter(this, test, true); 1873 ListMixin$()._filter(this, test, true);
1874 } 1874 }
1875 static _filter(source, test, retainMatching) { 1875 static _filter(source, test, retainMatching) {
1876 dart.as(test, dart.functionType(core.bool, [dart.bottom])); 1876 dart.as(test, dart.functionType(core.bool, [dart.dynamic]));
1877 let retained = []; 1877 let retained = [];
1878 let length = source[dartx.length]; 1878 let length = source[dartx.length];
1879 for (let i = 0; dart.notNull(i) < dart.notNull(length); i = dart.notNull (i) + 1) { 1879 for (let i = 0; dart.notNull(i) < dart.notNull(length); i = dart.notNull (i) + 1) {
1880 let element = source[dartx.get](i); 1880 let element = source[dartx.get](i);
1881 if (dart.dcall(test, element) == retainMatching) { 1881 if (dart.dcall(test, element) == retainMatching) {
1882 retained[dartx.add](element); 1882 retained[dartx.add](element);
1883 } 1883 }
1884 if (length != source[dartx.length]) { 1884 if (length != source[dartx.length]) {
1885 throw new core.ConcurrentModificationError(source); 1885 throw new core.ConcurrentModificationError(source);
1886 } 1886 }
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
2108 elementAt: [E, [core.int]], 2108 elementAt: [E, [core.int]],
2109 forEach: [dart.void, [dart.functionType(dart.void, [E])]], 2109 forEach: [dart.void, [dart.functionType(dart.void, [E])]],
2110 contains: [core.bool, [core.Object]], 2110 contains: [core.bool, [core.Object]],
2111 every: [core.bool, [dart.functionType(core.bool, [E])]], 2111 every: [core.bool, [dart.functionType(core.bool, [E])]],
2112 any: [core.bool, [dart.functionType(core.bool, [E])]], 2112 any: [core.bool, [dart.functionType(core.bool, [E])]],
2113 firstWhere: [E, [dart.functionType(core.bool, [E])], {orElse: dart.funct ionType(E, [])}], 2113 firstWhere: [E, [dart.functionType(core.bool, [E])], {orElse: dart.funct ionType(E, [])}],
2114 lastWhere: [E, [dart.functionType(core.bool, [E])], {orElse: dart.functi onType(E, [])}], 2114 lastWhere: [E, [dart.functionType(core.bool, [E])], {orElse: dart.functi onType(E, [])}],
2115 singleWhere: [E, [dart.functionType(core.bool, [E])]], 2115 singleWhere: [E, [dart.functionType(core.bool, [E])]],
2116 join: [core.String, [], [core.String]], 2116 join: [core.String, [], [core.String]],
2117 where: [core.Iterable$(E), [dart.functionType(core.bool, [E])]], 2117 where: [core.Iterable$(E), [dart.functionType(core.bool, [E])]],
2118 map: [core.Iterable, [dart.functionType(core.Object, [E])]], 2118 map: [core.Iterable, [dart.functionType(dart.dynamic, [E])]],
2119 expand: [core.Iterable, [dart.functionType(core.Iterable, [E])]], 2119 expand: [core.Iterable, [dart.functionType(core.Iterable, [E])]],
2120 reduce: [E, [dart.functionType(E, [E, E])]], 2120 reduce: [E, [dart.functionType(E, [E, E])]],
2121 fold: [core.Object, [core.Object, dart.functionType(core.Object, [dart.b ottom, E])]], 2121 fold: [dart.dynamic, [dart.dynamic, dart.functionType(dart.dynamic, [dar t.dynamic, E])]],
2122 skip: [core.Iterable$(E), [core.int]], 2122 skip: [core.Iterable$(E), [core.int]],
2123 skipWhile: [core.Iterable$(E), [dart.functionType(core.bool, [E])]], 2123 skipWhile: [core.Iterable$(E), [dart.functionType(core.bool, [E])]],
2124 take: [core.Iterable$(E), [core.int]], 2124 take: [core.Iterable$(E), [core.int]],
2125 takeWhile: [core.Iterable$(E), [dart.functionType(core.bool, [E])]], 2125 takeWhile: [core.Iterable$(E), [dart.functionType(core.bool, [E])]],
2126 toList: [core.List$(E), [], {growable: core.bool}], 2126 toList: [core.List$(E), [], {growable: core.bool}],
2127 toSet: [core.Set$(E), []], 2127 toSet: [core.Set$(E), []],
2128 add: [dart.void, [E]], 2128 add: [dart.void, [E]],
2129 addAll: [dart.void, [core.Iterable$(E)]], 2129 addAll: [dart.void, [core.Iterable$(E)]],
2130 remove: [core.bool, [core.Object]], 2130 remove: [core.bool, [core.Object]],
2131 removeWhere: [dart.void, [dart.functionType(core.bool, [E])]], 2131 removeWhere: [dart.void, [dart.functionType(core.bool, [E])]],
2132 retainWhere: [dart.void, [dart.functionType(core.bool, [E])]], 2132 retainWhere: [dart.void, [dart.functionType(core.bool, [E])]],
2133 clear: [dart.void, []], 2133 clear: [dart.void, []],
2134 removeLast: [E, []], 2134 removeLast: [E, []],
2135 sort: [dart.void, [], [dart.functionType(core.int, [E, E])]], 2135 sort: [dart.void, [], [dart.functionType(core.int, [E, E])]],
2136 shuffle: [dart.void, [], [math.Random]], 2136 shuffle: [dart.void, [], [math.Random]],
2137 asMap: [core.Map$(core.int, E), []], 2137 asMap: [core.Map$(core.int, E), []],
2138 sublist: [core.List$(E), [core.int], [core.int]], 2138 sublist: [core.List$(E), [core.int], [core.int]],
2139 getRange: [core.Iterable$(E), [core.int, core.int]], 2139 getRange: [core.Iterable$(E), [core.int, core.int]],
2140 removeRange: [dart.void, [core.int, core.int]], 2140 removeRange: [dart.void, [core.int, core.int]],
2141 fillRange: [dart.void, [core.int, core.int], [E]], 2141 fillRange: [dart.void, [core.int, core.int], [E]],
2142 setRange: [dart.void, [core.int, core.int, core.Iterable$(E)], [core.int ]], 2142 setRange: [dart.void, [core.int, core.int, core.Iterable$(E)], [core.int ]],
2143 replaceRange: [dart.void, [core.int, core.int, core.Iterable$(E)]], 2143 replaceRange: [dart.void, [core.int, core.int, core.Iterable$(E)]],
2144 indexOf: [core.int, [core.Object], [core.int]], 2144 indexOf: [core.int, [core.Object], [core.int]],
2145 lastIndexOf: [core.int, [core.Object], [core.int]], 2145 lastIndexOf: [core.int, [core.Object], [core.int]],
2146 insert: [dart.void, [core.int, E]], 2146 insert: [dart.void, [core.int, E]],
2147 removeAt: [E, [core.int]], 2147 removeAt: [E, [core.int]],
2148 insertAll: [dart.void, [core.int, core.Iterable$(E)]], 2148 insertAll: [dart.void, [core.int, core.Iterable$(E)]],
2149 setAll: [dart.void, [core.int, core.Iterable$(E)]] 2149 setAll: [dart.void, [core.int, core.Iterable$(E)]]
2150 }), 2150 }),
2151 statics: () => ({_filter: [dart.void, [core.List, dart.functionType(core.b ool, [dart.bottom]), core.bool]]}), 2151 statics: () => ({_filter: [dart.void, [core.List, dart.functionType(core.b ool, [dart.dynamic]), core.bool]]}),
2152 names: ['_filter'] 2152 names: ['_filter']
2153 }); 2153 });
2154 dart.defineExtensionMembers(ListMixin, [ 2154 dart.defineExtensionMembers(ListMixin, [
2155 'elementAt', 2155 'elementAt',
2156 'forEach', 2156 'forEach',
2157 'contains', 2157 'contains',
2158 'every', 2158 'every',
2159 'any', 2159 'any',
2160 'firstWhere', 2160 'firstWhere',
2161 'lastWhere', 2161 'lastWhere',
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
2572 hasNextKey = keyIterator.moveNext(); 2572 hasNextKey = keyIterator.moveNext();
2573 hasNextValue = valueIterator.moveNext(); 2573 hasNextValue = valueIterator.moveNext();
2574 } 2574 }
2575 if (dart.notNull(hasNextKey) || dart.notNull(hasNextValue)) { 2575 if (dart.notNull(hasNextKey) || dart.notNull(hasNextValue)) {
2576 throw new core.ArgumentError("Iterables do not have same length."); 2576 throw new core.ArgumentError("Iterables do not have same length.");
2577 } 2577 }
2578 } 2578 }
2579 } 2579 }
2580 dart.setSignature(Maps, { 2580 dart.setSignature(Maps, {
2581 statics: () => ({ 2581 statics: () => ({
2582 containsValue: [core.bool, [core.Map, core.Object]], 2582 containsValue: [core.bool, [core.Map, dart.dynamic]],
2583 containsKey: [core.bool, [core.Map, core.Object]], 2583 containsKey: [core.bool, [core.Map, dart.dynamic]],
2584 putIfAbsent: [core.Object, [core.Map, core.Object, dart.functionType(core. Object, [])]], 2584 putIfAbsent: [dart.dynamic, [core.Map, dart.dynamic, dart.functionType(dar t.dynamic, [])]],
2585 clear: [core.Object, [core.Map]], 2585 clear: [dart.dynamic, [core.Map]],
2586 forEach: [core.Object, [core.Map, dart.functionType(dart.void, [dart.botto m, dart.bottom])]], 2586 forEach: [dart.dynamic, [core.Map, dart.functionType(dart.void, [dart.dyna mic, dart.dynamic])]],
2587 getValues: [core.Iterable, [core.Map]], 2587 getValues: [core.Iterable, [core.Map]],
2588 length: [core.int, [core.Map]], 2588 length: [core.int, [core.Map]],
2589 isEmpty: [core.bool, [core.Map]], 2589 isEmpty: [core.bool, [core.Map]],
2590 isNotEmpty: [core.bool, [core.Map]], 2590 isNotEmpty: [core.bool, [core.Map]],
2591 mapToString: [core.String, [core.Map]], 2591 mapToString: [core.String, [core.Map]],
2592 _id: [core.Object, [core.Object]], 2592 _id: [dart.dynamic, [dart.dynamic]],
2593 _fillMapWithMappedIterable: [dart.void, [core.Map, core.Iterable, dart.fun ctionType(core.Object, [dart.bottom]), dart.functionType(core.Object, [dart.bott om])]], 2593 _fillMapWithMappedIterable: [dart.void, [core.Map, core.Iterable, dart.fun ctionType(dart.dynamic, [dart.dynamic]), dart.functionType(dart.dynamic, [dart.d ynamic])]],
2594 _fillMapWithIterables: [dart.void, [core.Map, core.Iterable, core.Iterable ]] 2594 _fillMapWithIterables: [dart.void, [core.Map, core.Iterable, core.Iterable ]]
2595 }), 2595 }),
2596 names: ['containsValue', 'containsKey', 'putIfAbsent', 'clear', 'forEach', ' getValues', 'length', 'isEmpty', 'isNotEmpty', 'mapToString', '_id', '_fillMapWi thMappedIterable', '_fillMapWithIterables'] 2596 names: ['containsValue', 'containsKey', 'putIfAbsent', 'clear', 'forEach', ' getValues', 'length', 'isEmpty', 'isNotEmpty', 'mapToString', '_id', '_fillMapWi thMappedIterable', '_fillMapWithIterables']
2597 }); 2597 });
2598 let Queue$ = dart.generic(function(E) { 2598 let Queue$ = dart.generic(function(E) {
2599 class Queue extends core.Object { 2599 class Queue extends core.Object {
2600 static new() { 2600 static new() {
2601 return new (ListQueue$(E))(); 2601 return new (ListQueue$(E))();
2602 } 2602 }
2603 static from(elements) { 2603 static from(elements) {
(...skipping 877 matching lines...) Expand 10 before | Expand all | Expand 10 after
3481 let _comparator = Symbol('_comparator'); 3481 let _comparator = Symbol('_comparator');
3482 let _validKey = Symbol('_validKey'); 3482 let _validKey = Symbol('_validKey');
3483 let SplayTreeMap$ = dart.generic(function(K, V) { 3483 let SplayTreeMap$ = dart.generic(function(K, V) {
3484 class SplayTreeMap extends _SplayTree$(K) { 3484 class SplayTreeMap extends _SplayTree$(K) {
3485 SplayTreeMap(compare, isValidKey) { 3485 SplayTreeMap(compare, isValidKey) {
3486 if (compare === void 0) 3486 if (compare === void 0)
3487 compare = null; 3487 compare = null;
3488 if (isValidKey === void 0) 3488 if (isValidKey === void 0)
3489 isValidKey = null; 3489 isValidKey = null;
3490 this[_comparator] = dart.as(compare == null ? core.Comparable.compare : compare, core.Comparator$(K)); 3490 this[_comparator] = dart.as(compare == null ? core.Comparable.compare : compare, core.Comparator$(K));
3491 this[_validKey] = isValidKey != null ? isValidKey : dart.fn(v => dart.is (v, K), core.bool, [core.Object]); 3491 this[_validKey] = isValidKey != null ? isValidKey : dart.fn(v => dart.is (v, K), core.bool, [dart.dynamic]);
3492 super._SplayTree(); 3492 super._SplayTree();
3493 } 3493 }
3494 static from(other, compare, isValidKey) { 3494 static from(other, compare, isValidKey) {
3495 if (compare === void 0) 3495 if (compare === void 0)
3496 compare = null; 3496 compare = null;
3497 if (isValidKey === void 0) 3497 if (isValidKey === void 0)
3498 isValidKey = null; 3498 isValidKey = null;
3499 let result = new (SplayTreeMap$(K, V))(); 3499 let result = new (SplayTreeMap$(K, V))();
3500 other.forEach(dart.fn((k, v) => { 3500 other.forEach(dart.fn((k, v) => {
3501 result.set(dart.as(k, K), dart.as(v, V)); 3501 result.set(dart.as(k, K), dart.as(v, V));
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
3556 dart.as(key, K); 3556 dart.as(key, K);
3557 dart.as(value, V); 3557 dart.as(value, V);
3558 if (key == null) 3558 if (key == null)
3559 throw new core.ArgumentError(key); 3559 throw new core.ArgumentError(key);
3560 let comp = this[_splay](key); 3560 let comp = this[_splay](key);
3561 if (comp == 0) { 3561 if (comp == 0) {
3562 let mapRoot = dart.as(this[_root], _SplayTreeMapNode); 3562 let mapRoot = dart.as(this[_root], _SplayTreeMapNode);
3563 mapRoot.value = value; 3563 mapRoot.value = value;
3564 return; 3564 return;
3565 } 3565 }
3566 this[_addNewRoot](new (_SplayTreeMapNode$(K, core.Object))(key, value), comp); 3566 this[_addNewRoot](new (_SplayTreeMapNode$(K, dart.dynamic))(key, value), comp);
3567 } 3567 }
3568 putIfAbsent(key, ifAbsent) { 3568 putIfAbsent(key, ifAbsent) {
3569 dart.as(key, K); 3569 dart.as(key, K);
3570 dart.as(ifAbsent, dart.functionType(V, [])); 3570 dart.as(ifAbsent, dart.functionType(V, []));
3571 if (key == null) 3571 if (key == null)
3572 throw new core.ArgumentError(key); 3572 throw new core.ArgumentError(key);
3573 let comp = this[_splay](key); 3573 let comp = this[_splay](key);
3574 if (comp == 0) { 3574 if (comp == 0) {
3575 let mapRoot = dart.as(this[_root], _SplayTreeMapNode); 3575 let mapRoot = dart.as(this[_root], _SplayTreeMapNode);
3576 return dart.as(mapRoot.value, V); 3576 return dart.as(mapRoot.value, V);
3577 } 3577 }
3578 let modificationCount = this[_modificationCount]; 3578 let modificationCount = this[_modificationCount];
3579 let splayCount = this[_splayCount]; 3579 let splayCount = this[_splayCount];
3580 let value = ifAbsent(); 3580 let value = ifAbsent();
3581 if (modificationCount != this[_modificationCount]) { 3581 if (modificationCount != this[_modificationCount]) {
3582 throw new core.ConcurrentModificationError(this); 3582 throw new core.ConcurrentModificationError(this);
3583 } 3583 }
3584 if (splayCount != this[_splayCount]) { 3584 if (splayCount != this[_splayCount]) {
3585 comp = this[_splay](key); 3585 comp = this[_splay](key);
3586 dart.assert(comp != 0); 3586 dart.assert(comp != 0);
3587 } 3587 }
3588 this[_addNewRoot](new (_SplayTreeMapNode$(K, core.Object))(key, value), comp); 3588 this[_addNewRoot](new (_SplayTreeMapNode$(K, dart.dynamic))(key, value), comp);
3589 return value; 3589 return value;
3590 } 3590 }
3591 addAll(other) { 3591 addAll(other) {
3592 dart.as(other, core.Map$(K, V)); 3592 dart.as(other, core.Map$(K, V));
3593 other.forEach(dart.fn((key, value) => { 3593 other.forEach(dart.fn((key, value) => {
3594 dart.as(key, K); 3594 dart.as(key, K);
3595 dart.as(value, V); 3595 dart.as(value, V);
3596 this.set(key, value); 3596 this.set(key, value);
3597 }, core.Object, [K, V])); 3597 }, dart.dynamic, [K, V]));
3598 } 3598 }
3599 get isEmpty() { 3599 get isEmpty() {
3600 return this[_root] == null; 3600 return this[_root] == null;
3601 } 3601 }
3602 get isNotEmpty() { 3602 get isNotEmpty() {
3603 return !dart.notNull(this.isEmpty); 3603 return !dart.notNull(this.isEmpty);
3604 } 3604 }
3605 forEach(f) { 3605 forEach(f) {
3606 dart.as(f, dart.functionType(dart.void, [K, V])); 3606 dart.as(f, dart.functionType(dart.void, [K, V]));
3607 let nodes = new (_SplayTreeNodeIterator$(K))(this); 3607 let nodes = new (_SplayTreeNodeIterator$(K))(this);
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
3691 } 3691 }
3692 return node.key; 3692 return node.key;
3693 } 3693 }
3694 } 3694 }
3695 SplayTreeMap[dart.implements] = () => [core.Map$(K, V)]; 3695 SplayTreeMap[dart.implements] = () => [core.Map$(K, V)];
3696 dart.defineNamedConstructor(SplayTreeMap, '_internal'); 3696 dart.defineNamedConstructor(SplayTreeMap, '_internal');
3697 dart.setSignature(SplayTreeMap, { 3697 dart.setSignature(SplayTreeMap, {
3698 constructors: () => ({ 3698 constructors: () => ({
3699 SplayTreeMap: [SplayTreeMap$(K, V), [], [dart.functionType(core.int, [K, K]), dart.functionType(core.bool, [core.Object])]], 3699 SplayTreeMap: [SplayTreeMap$(K, V), [], [dart.functionType(core.int, [K, K]), dart.functionType(core.bool, [core.Object])]],
3700 from: [SplayTreeMap$(K, V), [core.Map], [dart.functionType(core.int, [K, K]), dart.functionType(core.bool, [core.Object])]], 3700 from: [SplayTreeMap$(K, V), [core.Map], [dart.functionType(core.int, [K, K]), dart.functionType(core.bool, [core.Object])]],
3701 fromIterable: [SplayTreeMap$(K, V), [core.Iterable], {key: dart.function Type(K, [dart.bottom]), value: dart.functionType(V, [dart.bottom]), compare: dar t.functionType(core.int, [K, K]), isValidKey: dart.functionType(core.bool, [core .Object])}], 3701 fromIterable: [SplayTreeMap$(K, V), [core.Iterable], {key: dart.function Type(K, [dart.dynamic]), value: dart.functionType(V, [dart.dynamic]), compare: d art.functionType(core.int, [K, K]), isValidKey: dart.functionType(core.bool, [co re.Object])}],
3702 fromIterables: [SplayTreeMap$(K, V), [core.Iterable$(K), core.Iterable$( V)], [dart.functionType(core.int, [K, K]), dart.functionType(core.bool, [core.Ob ject])]], 3702 fromIterables: [SplayTreeMap$(K, V), [core.Iterable$(K), core.Iterable$( V)], [dart.functionType(core.int, [K, K]), dart.functionType(core.bool, [core.Ob ject])]],
3703 _internal: [SplayTreeMap$(K, V), []] 3703 _internal: [SplayTreeMap$(K, V), []]
3704 }), 3704 }),
3705 methods: () => ({ 3705 methods: () => ({
3706 [_compare]: [core.int, [K, K]], 3706 [_compare]: [core.int, [K, K]],
3707 get: [V, [core.Object]], 3707 get: [V, [core.Object]],
3708 remove: [V, [core.Object]], 3708 remove: [V, [core.Object]],
3709 set: [dart.void, [K, V]], 3709 set: [dart.void, [K, V]],
3710 putIfAbsent: [V, [K, dart.functionType(V, [])]], 3710 putIfAbsent: [V, [K, dart.functionType(V, [])]],
3711 addAll: [dart.void, [core.Map$(K, V)]], 3711 addAll: [dart.void, [core.Map$(K, V)]],
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
3790 this[_currentNode] = this[_workList][dartx.removeLast](); 3790 this[_currentNode] = this[_workList][dartx.removeLast]();
3791 this[_findLeftMostDescendent](this[_currentNode].right); 3791 this[_findLeftMostDescendent](this[_currentNode].right);
3792 return true; 3792 return true;
3793 } 3793 }
3794 } 3794 }
3795 _SplayTreeIterator[dart.implements] = () => [core.Iterator$(T)]; 3795 _SplayTreeIterator[dart.implements] = () => [core.Iterator$(T)];
3796 dart.defineNamedConstructor(_SplayTreeIterator, 'startAt'); 3796 dart.defineNamedConstructor(_SplayTreeIterator, 'startAt');
3797 dart.setSignature(_SplayTreeIterator, { 3797 dart.setSignature(_SplayTreeIterator, {
3798 constructors: () => ({ 3798 constructors: () => ({
3799 _SplayTreeIterator: [_SplayTreeIterator$(T), [_SplayTree]], 3799 _SplayTreeIterator: [_SplayTreeIterator$(T), [_SplayTree]],
3800 startAt: [_SplayTreeIterator$(T), [_SplayTree, core.Object]] 3800 startAt: [_SplayTreeIterator$(T), [_SplayTree, dart.dynamic]]
3801 }), 3801 }),
3802 methods: () => ({ 3802 methods: () => ({
3803 [_findLeftMostDescendent]: [dart.void, [_SplayTreeNode]], 3803 [_findLeftMostDescendent]: [dart.void, [_SplayTreeNode]],
3804 [_rebuildWorkList]: [dart.void, [_SplayTreeNode]], 3804 [_rebuildWorkList]: [dart.void, [_SplayTreeNode]],
3805 moveNext: [core.bool, []] 3805 moveNext: [core.bool, []]
3806 }) 3806 })
3807 }); 3807 });
3808 return _SplayTreeIterator; 3808 return _SplayTreeIterator;
3809 }); 3809 });
3810 let _SplayTreeIterator = _SplayTreeIterator$(); 3810 let _SplayTreeIterator = _SplayTreeIterator$();
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
3906 super.startAt(tree, startKey); 3906 super.startAt(tree, startKey);
3907 } 3907 }
3908 [_getValue](node) { 3908 [_getValue](node) {
3909 return dart.as(node, _SplayTreeNode$(K)); 3909 return dart.as(node, _SplayTreeNode$(K));
3910 } 3910 }
3911 } 3911 }
3912 dart.defineNamedConstructor(_SplayTreeNodeIterator, 'startAt'); 3912 dart.defineNamedConstructor(_SplayTreeNodeIterator, 'startAt');
3913 dart.setSignature(_SplayTreeNodeIterator, { 3913 dart.setSignature(_SplayTreeNodeIterator, {
3914 constructors: () => ({ 3914 constructors: () => ({
3915 _SplayTreeNodeIterator: [_SplayTreeNodeIterator$(K), [_SplayTree$(K)]], 3915 _SplayTreeNodeIterator: [_SplayTreeNodeIterator$(K), [_SplayTree$(K)]],
3916 startAt: [_SplayTreeNodeIterator$(K), [_SplayTree$(K), core.Object]] 3916 startAt: [_SplayTreeNodeIterator$(K), [_SplayTree$(K), dart.dynamic]]
3917 }), 3917 }),
3918 methods: () => ({[_getValue]: [_SplayTreeNode$(K), [_SplayTreeNode]]}) 3918 methods: () => ({[_getValue]: [_SplayTreeNode$(K), [_SplayTreeNode]]})
3919 }); 3919 });
3920 return _SplayTreeNodeIterator; 3920 return _SplayTreeNodeIterator;
3921 }); 3921 });
3922 let _SplayTreeNodeIterator = _SplayTreeNodeIterator$(); 3922 let _SplayTreeNodeIterator = _SplayTreeNodeIterator$();
3923 let _clone = Symbol('_clone'); 3923 let _clone = Symbol('_clone');
3924 let SplayTreeSet$ = dart.generic(function(E) { 3924 let SplayTreeSet$ = dart.generic(function(E) {
3925 class SplayTreeSet extends dart.mixin(_SplayTree$(E), IterableMixin$(E), Set Mixin$(E)) { 3925 class SplayTreeSet extends dart.mixin(_SplayTree$(E), IterableMixin$(E), Set Mixin$(E)) {
3926 SplayTreeSet(compare, isValidKey) { 3926 SplayTreeSet(compare, isValidKey) {
3927 if (compare === void 0) 3927 if (compare === void 0)
3928 compare = null; 3928 compare = null;
3929 if (isValidKey === void 0) 3929 if (isValidKey === void 0)
3930 isValidKey = null; 3930 isValidKey = null;
3931 this[_comparator] = dart.as(compare == null ? core.Comparable.compare : compare, core.Comparator$(E)); 3931 this[_comparator] = dart.as(compare == null ? core.Comparable.compare : compare, core.Comparator$(E));
3932 this[_validKey] = isValidKey != null ? isValidKey : dart.fn(v => dart.is (v, E), core.bool, [core.Object]); 3932 this[_validKey] = isValidKey != null ? isValidKey : dart.fn(v => dart.is (v, E), core.bool, [dart.dynamic]);
3933 super._SplayTree(); 3933 super._SplayTree();
3934 } 3934 }
3935 static from(elements, compare, isValidKey) { 3935 static from(elements, compare, isValidKey) {
3936 if (compare === void 0) 3936 if (compare === void 0)
3937 compare = null; 3937 compare = null;
3938 if (isValidKey === void 0) 3938 if (isValidKey === void 0)
3939 isValidKey = null; 3939 isValidKey = null;
3940 let result = new (SplayTreeSet$(E))(compare, isValidKey); 3940 let result = new (SplayTreeSet$(E))(compare, isValidKey);
3941 for (let element of dart.as(elements, core.Iterable$(E))) { 3941 for (let element of dart.as(elements, core.Iterable$(E))) {
3942 result.add(element); 3942 result.add(element);
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
4146 get isEmpty() { 4146 get isEmpty() {
4147 return this[_length] == 0; 4147 return this[_length] == 0;
4148 } 4148 }
4149 get isNotEmpty() { 4149 get isNotEmpty() {
4150 return !dart.notNull(this.isEmpty); 4150 return !dart.notNull(this.isEmpty);
4151 } 4151 }
4152 get keys() { 4152 get keys() {
4153 return new (HashMapKeyIterable$(K))(this); 4153 return new (HashMapKeyIterable$(K))(this);
4154 } 4154 }
4155 get values() { 4155 get values() {
4156 return _internal.MappedIterable$(K, V).new(this.keys, dart.fn(each => th is.get(each), V, [core.Object])); 4156 return _internal.MappedIterable$(K, V).new(this.keys, dart.fn(each => th is.get(each), V, [dart.dynamic]));
4157 } 4157 }
4158 containsKey(key) { 4158 containsKey(key) {
4159 if (dart.notNull(_HashMap$()._isStringKey(key))) { 4159 if (dart.notNull(_HashMap$()._isStringKey(key))) {
4160 let strings = this[_strings]; 4160 let strings = this[_strings];
4161 return strings == null ? false : _HashMap$()._hasTableEntry(strings, k ey); 4161 return strings == null ? false : _HashMap$()._hasTableEntry(strings, k ey);
4162 } else if (dart.notNull(_HashMap$()._isNumericKey(key))) { 4162 } else if (dart.notNull(_HashMap$()._isNumericKey(key))) {
4163 let nums = this[_nums]; 4163 let nums = this[_nums];
4164 return nums == null ? false : _HashMap$()._hasTableEntry(nums, key); 4164 return nums == null ? false : _HashMap$()._hasTableEntry(nums, key);
4165 } else { 4165 } else {
4166 return this[_containsKey](key); 4166 return this[_containsKey](key);
4167 } 4167 }
4168 } 4168 }
4169 [_containsKey](key) { 4169 [_containsKey](key) {
4170 let rest = this[_rest]; 4170 let rest = this[_rest];
4171 if (rest == null) 4171 if (rest == null)
4172 return false; 4172 return false;
4173 let bucket = this[_getBucket](rest, key); 4173 let bucket = this[_getBucket](rest, key);
4174 return dart.notNull(this[_findBucketIndex](bucket, key)) >= 0; 4174 return dart.notNull(this[_findBucketIndex](bucket, key)) >= 0;
4175 } 4175 }
4176 containsValue(value) { 4176 containsValue(value) {
4177 return this[_computeKeys]()[dartx.any](dart.fn(each => dart.equals(this. get(each), value), core.bool, [core.Object])); 4177 return this[_computeKeys]()[dartx.any](dart.fn(each => dart.equals(this. get(each), value), core.bool, [dart.dynamic]));
4178 } 4178 }
4179 addAll(other) { 4179 addAll(other) {
4180 dart.as(other, core.Map$(K, V)); 4180 dart.as(other, core.Map$(K, V));
4181 other.forEach(dart.fn((key, value) => { 4181 other.forEach(dart.fn((key, value) => {
4182 dart.as(key, K); 4182 dart.as(key, K);
4183 dart.as(value, V); 4183 dart.as(value, V);
4184 this.set(key, value); 4184 this.set(key, value);
4185 }, core.Object, [K, V])); 4185 }, dart.dynamic, [K, V]));
4186 } 4186 }
4187 get(key) { 4187 get(key) {
4188 if (dart.notNull(_HashMap$()._isStringKey(key))) { 4188 if (dart.notNull(_HashMap$()._isStringKey(key))) {
4189 let strings = this[_strings]; 4189 let strings = this[_strings];
4190 return strings == null ? null : dart.as(_HashMap$()._getTableEntry(str ings, key), V); 4190 return strings == null ? null : dart.as(_HashMap$()._getTableEntry(str ings, key), V);
4191 } else if (dart.notNull(_HashMap$()._isNumericKey(key))) { 4191 } else if (dart.notNull(_HashMap$()._isNumericKey(key))) {
4192 let nums = this[_nums]; 4192 let nums = this[_nums];
4193 return nums == null ? null : dart.as(_HashMap$()._getTableEntry(nums, key), V); 4193 return nums == null ? null : dart.as(_HashMap$()._getTableEntry(nums, key), V);
4194 } else { 4194 } else {
4195 return this[_get](key); 4195 return this[_get](key);
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
4413 get: [V, [core.Object]], 4413 get: [V, [core.Object]],
4414 [_get]: [V, [core.Object]], 4414 [_get]: [V, [core.Object]],
4415 set: [dart.void, [K, V]], 4415 set: [dart.void, [K, V]],
4416 [_set]: [dart.void, [K, V]], 4416 [_set]: [dart.void, [K, V]],
4417 putIfAbsent: [V, [K, dart.functionType(V, [])]], 4417 putIfAbsent: [V, [K, dart.functionType(V, [])]],
4418 remove: [V, [core.Object]], 4418 remove: [V, [core.Object]],
4419 [_remove]: [V, [core.Object]], 4419 [_remove]: [V, [core.Object]],
4420 clear: [dart.void, []], 4420 clear: [dart.void, []],
4421 forEach: [dart.void, [dart.functionType(dart.void, [K, V])]], 4421 forEach: [dart.void, [dart.functionType(dart.void, [K, V])]],
4422 [_computeKeys]: [core.List, []], 4422 [_computeKeys]: [core.List, []],
4423 [_addHashTableEntry]: [dart.void, [core.Object, K, V]], 4423 [_addHashTableEntry]: [dart.void, [dart.dynamic, K, V]],
4424 [_removeHashTableEntry]: [V, [core.Object, core.Object]], 4424 [_removeHashTableEntry]: [V, [dart.dynamic, core.Object]],
4425 [_computeHashCode]: [core.int, [core.Object]], 4425 [_computeHashCode]: [core.int, [dart.dynamic]],
4426 [_getBucket]: [core.List, [core.Object, core.Object]], 4426 [_getBucket]: [core.List, [dart.dynamic, dart.dynamic]],
4427 [_findBucketIndex]: [core.int, [core.Object, core.Object]] 4427 [_findBucketIndex]: [core.int, [dart.dynamic, dart.dynamic]]
4428 }), 4428 }),
4429 statics: () => ({ 4429 statics: () => ({
4430 _isStringKey: [core.bool, [core.Object]], 4430 _isStringKey: [core.bool, [dart.dynamic]],
4431 _isNumericKey: [core.bool, [core.Object]], 4431 _isNumericKey: [core.bool, [dart.dynamic]],
4432 _hasTableEntry: [core.bool, [core.Object, core.Object]], 4432 _hasTableEntry: [core.bool, [dart.dynamic, dart.dynamic]],
4433 _getTableEntry: [core.Object, [core.Object, core.Object]], 4433 _getTableEntry: [dart.dynamic, [dart.dynamic, dart.dynamic]],
4434 _setTableEntry: [dart.void, [core.Object, core.Object, core.Object]], 4434 _setTableEntry: [dart.void, [dart.dynamic, dart.dynamic, dart.dynamic]],
4435 _deleteTableEntry: [dart.void, [core.Object, core.Object]], 4435 _deleteTableEntry: [dart.void, [dart.dynamic, dart.dynamic]],
4436 _newHashTable: [core.Object, []] 4436 _newHashTable: [dart.dynamic, []]
4437 }), 4437 }),
4438 names: ['_isStringKey', '_isNumericKey', '_hasTableEntry', '_getTableEntry ', '_setTableEntry', '_deleteTableEntry', '_newHashTable'] 4438 names: ['_isStringKey', '_isNumericKey', '_hasTableEntry', '_getTableEntry ', '_setTableEntry', '_deleteTableEntry', '_newHashTable']
4439 }); 4439 });
4440 return _HashMap; 4440 return _HashMap;
4441 }); 4441 });
4442 let _HashMap = _HashMap$(); 4442 let _HashMap = _HashMap$();
4443 let _IdentityHashMap$ = dart.generic(function(K, V) { 4443 let _IdentityHashMap$ = dart.generic(function(K, V) {
4444 class _IdentityHashMap extends _HashMap$(K, V) { 4444 class _IdentityHashMap extends _HashMap$(K, V) {
4445 _IdentityHashMap() { 4445 _IdentityHashMap() {
4446 super._HashMap(); 4446 super._HashMap();
(...skipping 15 matching lines...) Expand all
4462 return _IdentityHashMap; 4462 return _IdentityHashMap;
4463 }); 4463 });
4464 let _IdentityHashMap = _IdentityHashMap$(); 4464 let _IdentityHashMap = _IdentityHashMap$();
4465 let _equals = Symbol('_equals'); 4465 let _equals = Symbol('_equals');
4466 let _hashCode = Symbol('_hashCode'); 4466 let _hashCode = Symbol('_hashCode');
4467 let _CustomHashMap$ = dart.generic(function(K, V) { 4467 let _CustomHashMap$ = dart.generic(function(K, V) {
4468 class _CustomHashMap extends _HashMap$(K, V) { 4468 class _CustomHashMap extends _HashMap$(K, V) {
4469 _CustomHashMap(equals, hashCode, validKey) { 4469 _CustomHashMap(equals, hashCode, validKey) {
4470 this[_equals] = equals; 4470 this[_equals] = equals;
4471 this[_hashCode] = hashCode; 4471 this[_hashCode] = hashCode;
4472 this[_validKey] = validKey != null ? validKey : dart.fn(v => dart.is(v, K), core.bool, [core.Object]); 4472 this[_validKey] = validKey != null ? validKey : dart.fn(v => dart.is(v, K), core.bool, [dart.dynamic]);
4473 super._HashMap(); 4473 super._HashMap();
4474 } 4474 }
4475 get(key) { 4475 get(key) {
4476 if (!dart.notNull(this[_validKey](key))) 4476 if (!dart.notNull(this[_validKey](key)))
4477 return null; 4477 return null;
4478 return super[_get](key); 4478 return super[_get](key);
4479 } 4479 }
4480 set(key, value) { 4480 set(key, value) {
4481 dart.as(key, K); 4481 dart.as(key, K);
4482 dart.as(value, V); 4482 dart.as(value, V);
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
4544 for (let i = 0, length = keys.length; dart.notNull(i) < dart.notNull(len gth); i = dart.notNull(i) + 1) { 4544 for (let i = 0, length = keys.length; dart.notNull(i) < dart.notNull(len gth); i = dart.notNull(i) + 1) {
4545 f(dart.as(keys[i], E)); 4545 f(dart.as(keys[i], E));
4546 if (keys !== dart.dload(this[_map], _keys)) { 4546 if (keys !== dart.dload(this[_map], _keys)) {
4547 throw new core.ConcurrentModificationError(this[_map]); 4547 throw new core.ConcurrentModificationError(this[_map]);
4548 } 4548 }
4549 } 4549 }
4550 } 4550 }
4551 } 4551 }
4552 HashMapKeyIterable[dart.implements] = () => [_internal.EfficientLength]; 4552 HashMapKeyIterable[dart.implements] = () => [_internal.EfficientLength];
4553 dart.setSignature(HashMapKeyIterable, { 4553 dart.setSignature(HashMapKeyIterable, {
4554 constructors: () => ({HashMapKeyIterable: [HashMapKeyIterable$(E), [core.O bject]]}), 4554 constructors: () => ({HashMapKeyIterable: [HashMapKeyIterable$(E), [dart.d ynamic]]}),
4555 methods: () => ({forEach: [dart.void, [dart.functionType(dart.void, [E])]] }) 4555 methods: () => ({forEach: [dart.void, [dart.functionType(dart.void, [E])]] })
4556 }); 4556 });
4557 dart.defineExtensionMembers(HashMapKeyIterable, [ 4557 dart.defineExtensionMembers(HashMapKeyIterable, [
4558 'contains', 4558 'contains',
4559 'forEach', 4559 'forEach',
4560 'length', 4560 'length',
4561 'isEmpty', 4561 'isEmpty',
4562 'iterator' 4562 'iterator'
4563 ]); 4563 ]);
4564 return HashMapKeyIterable; 4564 return HashMapKeyIterable;
(...skipping 21 matching lines...) Expand all
4586 return false; 4586 return false;
4587 } else { 4587 } else {
4588 this[_current] = dart.as(keys[offset], E); 4588 this[_current] = dart.as(keys[offset], E);
4589 this[_offset] = dart.notNull(offset) + 1; 4589 this[_offset] = dart.notNull(offset) + 1;
4590 return true; 4590 return true;
4591 } 4591 }
4592 } 4592 }
4593 } 4593 }
4594 HashMapKeyIterator[dart.implements] = () => [core.Iterator$(E)]; 4594 HashMapKeyIterator[dart.implements] = () => [core.Iterator$(E)];
4595 dart.setSignature(HashMapKeyIterator, { 4595 dart.setSignature(HashMapKeyIterator, {
4596 constructors: () => ({HashMapKeyIterator: [HashMapKeyIterator$(E), [core.O bject, core.List]]}), 4596 constructors: () => ({HashMapKeyIterator: [HashMapKeyIterator$(E), [dart.d ynamic, core.List]]}),
4597 methods: () => ({moveNext: [core.bool, []]}) 4597 methods: () => ({moveNext: [core.bool, []]})
4598 }); 4598 });
4599 return HashMapKeyIterator; 4599 return HashMapKeyIterator;
4600 }); 4600 });
4601 let HashMapKeyIterator = HashMapKeyIterator$(); 4601 let HashMapKeyIterator = HashMapKeyIterator$();
4602 let _modifications = Symbol('_modifications'); 4602 let _modifications = Symbol('_modifications');
4603 let _value = Symbol('_value'); 4603 let _value = Symbol('_value');
4604 let _newLinkedCell = Symbol('_newLinkedCell'); 4604 let _newLinkedCell = Symbol('_newLinkedCell');
4605 let _unlinkCell = Symbol('_unlinkCell'); 4605 let _unlinkCell = Symbol('_unlinkCell');
4606 let _modified = Symbol('_modified'); 4606 let _modified = Symbol('_modified');
(...skipping 15 matching lines...) Expand all
4622 get isEmpty() { 4622 get isEmpty() {
4623 return this[_length] == 0; 4623 return this[_length] == 0;
4624 } 4624 }
4625 get isNotEmpty() { 4625 get isNotEmpty() {
4626 return !dart.notNull(this.isEmpty); 4626 return !dart.notNull(this.isEmpty);
4627 } 4627 }
4628 get keys() { 4628 get keys() {
4629 return new (LinkedHashMapKeyIterable$(K))(this); 4629 return new (LinkedHashMapKeyIterable$(K))(this);
4630 } 4630 }
4631 get values() { 4631 get values() {
4632 return _internal.MappedIterable$(K, V).new(this.keys, dart.fn(each => th is.get(each), V, [core.Object])); 4632 return _internal.MappedIterable$(K, V).new(this.keys, dart.fn(each => th is.get(each), V, [dart.dynamic]));
4633 } 4633 }
4634 containsKey(key) { 4634 containsKey(key) {
4635 if (dart.notNull(_LinkedHashMap$()._isStringKey(key))) { 4635 if (dart.notNull(_LinkedHashMap$()._isStringKey(key))) {
4636 let strings = this[_strings]; 4636 let strings = this[_strings];
4637 if (strings == null) 4637 if (strings == null)
4638 return false; 4638 return false;
4639 let cell = dart.as(_LinkedHashMap$()._getTableEntry(strings, key), Lin kedHashMapCell); 4639 let cell = dart.as(_LinkedHashMap$()._getTableEntry(strings, key), Lin kedHashMapCell);
4640 return cell != null; 4640 return cell != null;
4641 } else if (dart.notNull(_LinkedHashMap$()._isNumericKey(key))) { 4641 } else if (dart.notNull(_LinkedHashMap$()._isNumericKey(key))) {
4642 let nums = this[_nums]; 4642 let nums = this[_nums];
4643 if (nums == null) 4643 if (nums == null)
4644 return false; 4644 return false;
4645 let cell = dart.as(_LinkedHashMap$()._getTableEntry(nums, key), Linked HashMapCell); 4645 let cell = dart.as(_LinkedHashMap$()._getTableEntry(nums, key), Linked HashMapCell);
4646 return cell != null; 4646 return cell != null;
4647 } else { 4647 } else {
4648 return this[_containsKey](key); 4648 return this[_containsKey](key);
4649 } 4649 }
4650 } 4650 }
4651 [_containsKey](key) { 4651 [_containsKey](key) {
4652 let rest = this[_rest]; 4652 let rest = this[_rest];
4653 if (rest == null) 4653 if (rest == null)
4654 return false; 4654 return false;
4655 let bucket = this[_getBucket](rest, key); 4655 let bucket = this[_getBucket](rest, key);
4656 return dart.notNull(this[_findBucketIndex](bucket, key)) >= 0; 4656 return dart.notNull(this[_findBucketIndex](bucket, key)) >= 0;
4657 } 4657 }
4658 containsValue(value) { 4658 containsValue(value) {
4659 return this.keys[dartx.any](dart.fn(each => dart.equals(this.get(each), value), core.bool, [core.Object])); 4659 return this.keys[dartx.any](dart.fn(each => dart.equals(this.get(each), value), core.bool, [dart.dynamic]));
4660 } 4660 }
4661 addAll(other) { 4661 addAll(other) {
4662 dart.as(other, core.Map$(K, V)); 4662 dart.as(other, core.Map$(K, V));
4663 other.forEach(dart.fn((key, value) => { 4663 other.forEach(dart.fn((key, value) => {
4664 dart.as(key, K); 4664 dart.as(key, K);
4665 dart.as(value, V); 4665 dart.as(value, V);
4666 this.set(key, value); 4666 this.set(key, value);
4667 }, core.Object, [K, V])); 4667 }, dart.dynamic, [K, V]));
4668 } 4668 }
4669 get(key) { 4669 get(key) {
4670 if (dart.notNull(_LinkedHashMap$()._isStringKey(key))) { 4670 if (dart.notNull(_LinkedHashMap$()._isStringKey(key))) {
4671 let strings = this[_strings]; 4671 let strings = this[_strings];
4672 if (strings == null) 4672 if (strings == null)
4673 return null; 4673 return null;
4674 let cell = dart.as(_LinkedHashMap$()._getTableEntry(strings, key), Lin kedHashMapCell); 4674 let cell = dart.as(_LinkedHashMap$()._getTableEntry(strings, key), Lin kedHashMapCell);
4675 return cell == null ? null : dart.as(cell[_value], V); 4675 return cell == null ? null : dart.as(cell[_value], V);
4676 } else if (dart.notNull(_LinkedHashMap$()._isNumericKey(key))) { 4676 } else if (dart.notNull(_LinkedHashMap$()._isNumericKey(key))) {
4677 let nums = this[_nums]; 4677 let nums = this[_nums];
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
4893 addAll: [dart.void, [core.Map$(K, V)]], 4893 addAll: [dart.void, [core.Map$(K, V)]],
4894 get: [V, [core.Object]], 4894 get: [V, [core.Object]],
4895 [_get]: [V, [core.Object]], 4895 [_get]: [V, [core.Object]],
4896 set: [dart.void, [K, V]], 4896 set: [dart.void, [K, V]],
4897 [_set]: [dart.void, [K, V]], 4897 [_set]: [dart.void, [K, V]],
4898 putIfAbsent: [V, [K, dart.functionType(V, [])]], 4898 putIfAbsent: [V, [K, dart.functionType(V, [])]],
4899 remove: [V, [core.Object]], 4899 remove: [V, [core.Object]],
4900 [_remove]: [V, [core.Object]], 4900 [_remove]: [V, [core.Object]],
4901 clear: [dart.void, []], 4901 clear: [dart.void, []],
4902 forEach: [dart.void, [dart.functionType(dart.void, [K, V])]], 4902 forEach: [dart.void, [dart.functionType(dart.void, [K, V])]],
4903 [_addHashTableEntry]: [dart.void, [core.Object, K, V]], 4903 [_addHashTableEntry]: [dart.void, [dart.dynamic, K, V]],
4904 [_removeHashTableEntry]: [V, [core.Object, core.Object]], 4904 [_removeHashTableEntry]: [V, [dart.dynamic, core.Object]],
4905 [_modified]: [dart.void, []], 4905 [_modified]: [dart.void, []],
4906 [_newLinkedCell]: [LinkedHashMapCell, [K, V]], 4906 [_newLinkedCell]: [LinkedHashMapCell, [K, V]],
4907 [_unlinkCell]: [dart.void, [LinkedHashMapCell]], 4907 [_unlinkCell]: [dart.void, [LinkedHashMapCell]],
4908 [_computeHashCode]: [core.int, [core.Object]], 4908 [_computeHashCode]: [core.int, [dart.dynamic]],
4909 [_getBucket]: [core.List, [core.Object, core.Object]], 4909 [_getBucket]: [core.List, [dart.dynamic, dart.dynamic]],
4910 [_findBucketIndex]: [core.int, [core.Object, core.Object]] 4910 [_findBucketIndex]: [core.int, [dart.dynamic, dart.dynamic]]
4911 }), 4911 }),
4912 statics: () => ({ 4912 statics: () => ({
4913 _isStringKey: [core.bool, [core.Object]], 4913 _isStringKey: [core.bool, [dart.dynamic]],
4914 _isNumericKey: [core.bool, [core.Object]], 4914 _isNumericKey: [core.bool, [dart.dynamic]],
4915 _getTableEntry: [core.Object, [core.Object, core.Object]], 4915 _getTableEntry: [dart.dynamic, [dart.dynamic, dart.dynamic]],
4916 _setTableEntry: [dart.void, [core.Object, core.Object, core.Object]], 4916 _setTableEntry: [dart.void, [dart.dynamic, dart.dynamic, dart.dynamic]],
4917 _deleteTableEntry: [dart.void, [core.Object, core.Object]], 4917 _deleteTableEntry: [dart.void, [dart.dynamic, dart.dynamic]],
4918 _newHashTable: [core.Object, []] 4918 _newHashTable: [dart.dynamic, []]
4919 }), 4919 }),
4920 names: ['_isStringKey', '_isNumericKey', '_getTableEntry', '_setTableEntry ', '_deleteTableEntry', '_newHashTable'] 4920 names: ['_isStringKey', '_isNumericKey', '_getTableEntry', '_setTableEntry ', '_deleteTableEntry', '_newHashTable']
4921 }); 4921 });
4922 return _LinkedHashMap; 4922 return _LinkedHashMap;
4923 }); 4923 });
4924 let _LinkedHashMap = _LinkedHashMap$(); 4924 let _LinkedHashMap = _LinkedHashMap$();
4925 let _LinkedIdentityHashMap$ = dart.generic(function(K, V) { 4925 let _LinkedIdentityHashMap$ = dart.generic(function(K, V) {
4926 class _LinkedIdentityHashMap extends _LinkedHashMap$(K, V) { 4926 class _LinkedIdentityHashMap extends _LinkedHashMap$(K, V) {
4927 _LinkedIdentityHashMap() { 4927 _LinkedIdentityHashMap() {
4928 super._LinkedHashMap(); 4928 super._LinkedHashMap();
(...skipping 14 matching lines...) Expand all
4943 } 4943 }
4944 } 4944 }
4945 return _LinkedIdentityHashMap; 4945 return _LinkedIdentityHashMap;
4946 }); 4946 });
4947 let _LinkedIdentityHashMap = _LinkedIdentityHashMap$(); 4947 let _LinkedIdentityHashMap = _LinkedIdentityHashMap$();
4948 let _LinkedCustomHashMap$ = dart.generic(function(K, V) { 4948 let _LinkedCustomHashMap$ = dart.generic(function(K, V) {
4949 class _LinkedCustomHashMap extends _LinkedHashMap$(K, V) { 4949 class _LinkedCustomHashMap extends _LinkedHashMap$(K, V) {
4950 _LinkedCustomHashMap(equals, hashCode, validKey) { 4950 _LinkedCustomHashMap(equals, hashCode, validKey) {
4951 this[_equals] = equals; 4951 this[_equals] = equals;
4952 this[_hashCode] = hashCode; 4952 this[_hashCode] = hashCode;
4953 this[_validKey] = validKey != null ? validKey : dart.fn(v => dart.is(v, K), core.bool, [core.Object]); 4953 this[_validKey] = validKey != null ? validKey : dart.fn(v => dart.is(v, K), core.bool, [dart.dynamic]);
4954 super._LinkedHashMap(); 4954 super._LinkedHashMap();
4955 } 4955 }
4956 get(key) { 4956 get(key) {
4957 if (!dart.notNull(this[_validKey](key))) 4957 if (!dart.notNull(this[_validKey](key)))
4958 return null; 4958 return null;
4959 return super[_get](key); 4959 return super[_get](key);
4960 } 4960 }
4961 set(key, value) { 4961 set(key, value) {
4962 dart.as(key, K); 4962 dart.as(key, K);
4963 dart.as(value, V); 4963 dart.as(value, V);
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
5001 let _LinkedCustomHashMap = _LinkedCustomHashMap$(); 5001 let _LinkedCustomHashMap = _LinkedCustomHashMap$();
5002 class LinkedHashMapCell extends core.Object { 5002 class LinkedHashMapCell extends core.Object {
5003 LinkedHashMapCell(key, value) { 5003 LinkedHashMapCell(key, value) {
5004 this[_key] = key; 5004 this[_key] = key;
5005 this[_value] = value; 5005 this[_value] = value;
5006 this[_next] = null; 5006 this[_next] = null;
5007 this[_previous] = null; 5007 this[_previous] = null;
5008 } 5008 }
5009 } 5009 }
5010 dart.setSignature(LinkedHashMapCell, { 5010 dart.setSignature(LinkedHashMapCell, {
5011 constructors: () => ({LinkedHashMapCell: [LinkedHashMapCell, [core.Object, c ore.Object]]}) 5011 constructors: () => ({LinkedHashMapCell: [LinkedHashMapCell, [dart.dynamic, dart.dynamic]]})
5012 }); 5012 });
5013 let LinkedHashMapKeyIterable$ = dart.generic(function(E) { 5013 let LinkedHashMapKeyIterable$ = dart.generic(function(E) {
5014 class LinkedHashMapKeyIterable extends IterableBase$(E) { 5014 class LinkedHashMapKeyIterable extends IterableBase$(E) {
5015 LinkedHashMapKeyIterable(map) { 5015 LinkedHashMapKeyIterable(map) {
5016 this[_map] = map; 5016 this[_map] = map;
5017 super.IterableBase(); 5017 super.IterableBase();
5018 } 5018 }
5019 get length() { 5019 get length() {
5020 return dart.as(dart.dload(this[_map], _length), core.int); 5020 return dart.as(dart.dload(this[_map], _length), core.int);
5021 } 5021 }
(...skipping 14 matching lines...) Expand all
5036 f(dart.as(cell[_key], E)); 5036 f(dart.as(cell[_key], E));
5037 if (!dart.equals(modifications, dart.dload(this[_map], _modifications) )) { 5037 if (!dart.equals(modifications, dart.dload(this[_map], _modifications) )) {
5038 throw new core.ConcurrentModificationError(this[_map]); 5038 throw new core.ConcurrentModificationError(this[_map]);
5039 } 5039 }
5040 cell = cell[_next]; 5040 cell = cell[_next];
5041 } 5041 }
5042 } 5042 }
5043 } 5043 }
5044 LinkedHashMapKeyIterable[dart.implements] = () => [_internal.EfficientLength ]; 5044 LinkedHashMapKeyIterable[dart.implements] = () => [_internal.EfficientLength ];
5045 dart.setSignature(LinkedHashMapKeyIterable, { 5045 dart.setSignature(LinkedHashMapKeyIterable, {
5046 constructors: () => ({LinkedHashMapKeyIterable: [LinkedHashMapKeyIterable$ (E), [core.Object]]}), 5046 constructors: () => ({LinkedHashMapKeyIterable: [LinkedHashMapKeyIterable$ (E), [dart.dynamic]]}),
5047 methods: () => ({forEach: [dart.void, [dart.functionType(dart.void, [E])]] }) 5047 methods: () => ({forEach: [dart.void, [dart.functionType(dart.void, [E])]] })
5048 }); 5048 });
5049 dart.defineExtensionMembers(LinkedHashMapKeyIterable, [ 5049 dart.defineExtensionMembers(LinkedHashMapKeyIterable, [
5050 'contains', 5050 'contains',
5051 'forEach', 5051 'forEach',
5052 'length', 5052 'length',
5053 'isEmpty', 5053 'isEmpty',
5054 'iterator' 5054 'iterator'
5055 ]); 5055 ]);
5056 return LinkedHashMapKeyIterable; 5056 return LinkedHashMapKeyIterable;
(...skipping 20 matching lines...) Expand all
5077 return false; 5077 return false;
5078 } else { 5078 } else {
5079 this[_current] = dart.as(this[_cell][_key], E); 5079 this[_current] = dart.as(this[_cell][_key], E);
5080 this[_cell] = this[_cell][_next]; 5080 this[_cell] = this[_cell][_next];
5081 return true; 5081 return true;
5082 } 5082 }
5083 } 5083 }
5084 } 5084 }
5085 LinkedHashMapKeyIterator[dart.implements] = () => [core.Iterator$(E)]; 5085 LinkedHashMapKeyIterator[dart.implements] = () => [core.Iterator$(E)];
5086 dart.setSignature(LinkedHashMapKeyIterator, { 5086 dart.setSignature(LinkedHashMapKeyIterator, {
5087 constructors: () => ({LinkedHashMapKeyIterator: [LinkedHashMapKeyIterator$ (E), [core.Object, core.int]]}), 5087 constructors: () => ({LinkedHashMapKeyIterator: [LinkedHashMapKeyIterator$ (E), [dart.dynamic, core.int]]}),
5088 methods: () => ({moveNext: [core.bool, []]}) 5088 methods: () => ({moveNext: [core.bool, []]})
5089 }); 5089 });
5090 return LinkedHashMapKeyIterator; 5090 return LinkedHashMapKeyIterator;
5091 }); 5091 });
5092 let LinkedHashMapKeyIterator = LinkedHashMapKeyIterator$(); 5092 let LinkedHashMapKeyIterator = LinkedHashMapKeyIterator$();
5093 let _elements = Symbol('_elements'); 5093 let _elements = Symbol('_elements');
5094 let _computeElements = Symbol('_computeElements'); 5094 let _computeElements = Symbol('_computeElements');
5095 let _contains = Symbol('_contains'); 5095 let _contains = Symbol('_contains');
5096 let _lookup = Symbol('_lookup'); 5096 let _lookup = Symbol('_lookup');
5097 let _HashSet$ = dart.generic(function(E) { 5097 let _HashSet$ = dart.generic(function(E) {
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
5332 contains: [core.bool, [core.Object]], 5332 contains: [core.bool, [core.Object]],
5333 [_contains]: [core.bool, [core.Object]], 5333 [_contains]: [core.bool, [core.Object]],
5334 lookup: [E, [core.Object]], 5334 lookup: [E, [core.Object]],
5335 [_lookup]: [E, [core.Object]], 5335 [_lookup]: [E, [core.Object]],
5336 add: [core.bool, [E]], 5336 add: [core.bool, [E]],
5337 [_add]: [core.bool, [E]], 5337 [_add]: [core.bool, [E]],
5338 addAll: [dart.void, [core.Iterable$(E)]], 5338 addAll: [dart.void, [core.Iterable$(E)]],
5339 remove: [core.bool, [core.Object]], 5339 remove: [core.bool, [core.Object]],
5340 [_remove]: [core.bool, [core.Object]], 5340 [_remove]: [core.bool, [core.Object]],
5341 [_computeElements]: [core.List, []], 5341 [_computeElements]: [core.List, []],
5342 [_addHashTableEntry]: [core.bool, [core.Object, E]], 5342 [_addHashTableEntry]: [core.bool, [dart.dynamic, E]],
5343 [_removeHashTableEntry]: [core.bool, [core.Object, core.Object]], 5343 [_removeHashTableEntry]: [core.bool, [dart.dynamic, core.Object]],
5344 [_computeHashCode]: [core.int, [core.Object]], 5344 [_computeHashCode]: [core.int, [dart.dynamic]],
5345 [_getBucket]: [core.List, [core.Object, core.Object]], 5345 [_getBucket]: [core.List, [dart.dynamic, dart.dynamic]],
5346 [_findBucketIndex]: [core.int, [core.Object, core.Object]] 5346 [_findBucketIndex]: [core.int, [dart.dynamic, dart.dynamic]]
5347 }), 5347 }),
5348 statics: () => ({ 5348 statics: () => ({
5349 _isStringElement: [core.bool, [core.Object]], 5349 _isStringElement: [core.bool, [dart.dynamic]],
5350 _isNumericElement: [core.bool, [core.Object]], 5350 _isNumericElement: [core.bool, [dart.dynamic]],
5351 _hasTableEntry: [core.bool, [core.Object, core.Object]], 5351 _hasTableEntry: [core.bool, [dart.dynamic, dart.dynamic]],
5352 _setTableEntry: [dart.void, [core.Object, core.Object, core.Object]], 5352 _setTableEntry: [dart.void, [dart.dynamic, dart.dynamic, dart.dynamic]],
5353 _deleteTableEntry: [dart.void, [core.Object, core.Object]], 5353 _deleteTableEntry: [dart.void, [dart.dynamic, dart.dynamic]],
5354 _newHashTable: [core.Object, []] 5354 _newHashTable: [dart.dynamic, []]
5355 }), 5355 }),
5356 names: ['_isStringElement', '_isNumericElement', '_hasTableEntry', '_setTa bleEntry', '_deleteTableEntry', '_newHashTable'] 5356 names: ['_isStringElement', '_isNumericElement', '_hasTableEntry', '_setTa bleEntry', '_deleteTableEntry', '_newHashTable']
5357 }); 5357 });
5358 dart.defineExtensionMembers(_HashSet, [ 5358 dart.defineExtensionMembers(_HashSet, [
5359 'contains', 5359 'contains',
5360 'iterator', 5360 'iterator',
5361 'length', 5361 'length',
5362 'isEmpty', 5362 'isEmpty',
5363 'isNotEmpty' 5363 'isNotEmpty'
5364 ]); 5364 ]);
(...skipping 28 matching lines...) Expand all
5393 return _IdentityHashSet; 5393 return _IdentityHashSet;
5394 }); 5394 });
5395 let _IdentityHashSet = _IdentityHashSet$(); 5395 let _IdentityHashSet = _IdentityHashSet$();
5396 let _equality = Symbol('_equality'); 5396 let _equality = Symbol('_equality');
5397 let _hasher = Symbol('_hasher'); 5397 let _hasher = Symbol('_hasher');
5398 let _CustomHashSet$ = dart.generic(function(E) { 5398 let _CustomHashSet$ = dart.generic(function(E) {
5399 class _CustomHashSet extends _HashSet$(E) { 5399 class _CustomHashSet extends _HashSet$(E) {
5400 _CustomHashSet(equality, hasher, validKey) { 5400 _CustomHashSet(equality, hasher, validKey) {
5401 this[_equality] = equality; 5401 this[_equality] = equality;
5402 this[_hasher] = hasher; 5402 this[_hasher] = hasher;
5403 this[_validKey] = validKey != null ? validKey : dart.fn(x => dart.is(x, E), core.bool, [core.Object]); 5403 this[_validKey] = validKey != null ? validKey : dart.fn(x => dart.is(x, E), core.bool, [dart.dynamic]);
5404 super._HashSet(); 5404 super._HashSet();
5405 } 5405 }
5406 [_newSet]() { 5406 [_newSet]() {
5407 return new (_CustomHashSet$(E))(this[_equality], this[_hasher], this[_va lidKey]); 5407 return new (_CustomHashSet$(E))(this[_equality], this[_hasher], this[_va lidKey]);
5408 } 5408 }
5409 [_findBucketIndex](bucket, element) { 5409 [_findBucketIndex](bucket, element) {
5410 if (bucket == null) 5410 if (bucket == null)
5411 return -1; 5411 return -1;
5412 let length = bucket.length; 5412 let length = bucket.length;
5413 for (let i = 0; dart.notNull(i) < dart.notNull(length); i = dart.notNull (i) + 1) { 5413 for (let i = 0; dart.notNull(i) < dart.notNull(length); i = dart.notNull (i) + 1) {
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
5472 return false; 5472 return false;
5473 } else { 5473 } else {
5474 this[_current] = dart.as(elements[offset], E); 5474 this[_current] = dart.as(elements[offset], E);
5475 this[_offset] = dart.notNull(offset) + 1; 5475 this[_offset] = dart.notNull(offset) + 1;
5476 return true; 5476 return true;
5477 } 5477 }
5478 } 5478 }
5479 } 5479 }
5480 HashSetIterator[dart.implements] = () => [core.Iterator$(E)]; 5480 HashSetIterator[dart.implements] = () => [core.Iterator$(E)];
5481 dart.setSignature(HashSetIterator, { 5481 dart.setSignature(HashSetIterator, {
5482 constructors: () => ({HashSetIterator: [HashSetIterator$(E), [core.Object, core.List]]}), 5482 constructors: () => ({HashSetIterator: [HashSetIterator$(E), [dart.dynamic , core.List]]}),
5483 methods: () => ({moveNext: [core.bool, []]}) 5483 methods: () => ({moveNext: [core.bool, []]})
5484 }); 5484 });
5485 return HashSetIterator; 5485 return HashSetIterator;
5486 }); 5486 });
5487 let HashSetIterator = HashSetIterator$(); 5487 let HashSetIterator = HashSetIterator$();
5488 let _unsupported = Symbol('_unsupported'); 5488 let _unsupported = Symbol('_unsupported');
5489 let _LinkedHashSet$ = dart.generic(function(E) { 5489 let _LinkedHashSet$ = dart.generic(function(E) {
5490 class _LinkedHashSet extends _HashSetBase$(E) { 5490 class _LinkedHashSet extends _HashSetBase$(E) {
5491 _LinkedHashSet() { 5491 _LinkedHashSet() {
5492 this[_length] = 0; 5492 this[_length] = 0;
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
5771 lookup: [E, [core.Object]], 5771 lookup: [E, [core.Object]],
5772 [_lookup]: [E, [core.Object]], 5772 [_lookup]: [E, [core.Object]],
5773 forEach: [dart.void, [dart.functionType(dart.void, [E])]], 5773 forEach: [dart.void, [dart.functionType(dart.void, [E])]],
5774 add: [core.bool, [E]], 5774 add: [core.bool, [E]],
5775 [_add]: [core.bool, [E]], 5775 [_add]: [core.bool, [E]],
5776 remove: [core.bool, [core.Object]], 5776 remove: [core.bool, [core.Object]],
5777 [_remove]: [core.bool, [core.Object]], 5777 [_remove]: [core.bool, [core.Object]],
5778 removeWhere: [dart.void, [dart.functionType(core.bool, [E])]], 5778 removeWhere: [dart.void, [dart.functionType(core.bool, [E])]],
5779 retainWhere: [dart.void, [dart.functionType(core.bool, [E])]], 5779 retainWhere: [dart.void, [dart.functionType(core.bool, [E])]],
5780 [_filterWhere]: [dart.void, [dart.functionType(core.bool, [E]), core.boo l]], 5780 [_filterWhere]: [dart.void, [dart.functionType(core.bool, [E]), core.boo l]],
5781 [_addHashTableEntry]: [core.bool, [core.Object, E]], 5781 [_addHashTableEntry]: [core.bool, [dart.dynamic, E]],
5782 [_removeHashTableEntry]: [core.bool, [core.Object, core.Object]], 5782 [_removeHashTableEntry]: [core.bool, [dart.dynamic, core.Object]],
5783 [_modified]: [dart.void, []], 5783 [_modified]: [dart.void, []],
5784 [_newLinkedCell]: [LinkedHashSetCell, [E]], 5784 [_newLinkedCell]: [LinkedHashSetCell, [E]],
5785 [_unlinkCell]: [dart.void, [LinkedHashSetCell]], 5785 [_unlinkCell]: [dart.void, [LinkedHashSetCell]],
5786 [_computeHashCode]: [core.int, [core.Object]], 5786 [_computeHashCode]: [core.int, [dart.dynamic]],
5787 [_getBucket]: [core.List, [core.Object, core.Object]], 5787 [_getBucket]: [core.List, [dart.dynamic, dart.dynamic]],
5788 [_findBucketIndex]: [core.int, [core.Object, core.Object]] 5788 [_findBucketIndex]: [core.int, [dart.dynamic, dart.dynamic]]
5789 }), 5789 }),
5790 statics: () => ({ 5790 statics: () => ({
5791 _isStringElement: [core.bool, [core.Object]], 5791 _isStringElement: [core.bool, [dart.dynamic]],
5792 _isNumericElement: [core.bool, [core.Object]], 5792 _isNumericElement: [core.bool, [dart.dynamic]],
5793 _getTableEntry: [core.Object, [core.Object, core.Object]], 5793 _getTableEntry: [dart.dynamic, [dart.dynamic, dart.dynamic]],
5794 _setTableEntry: [dart.void, [core.Object, core.Object, core.Object]], 5794 _setTableEntry: [dart.void, [dart.dynamic, dart.dynamic, dart.dynamic]],
5795 _deleteTableEntry: [dart.void, [core.Object, core.Object]], 5795 _deleteTableEntry: [dart.void, [dart.dynamic, dart.dynamic]],
5796 _newHashTable: [core.Object, []] 5796 _newHashTable: [dart.dynamic, []]
5797 }), 5797 }),
5798 names: ['_isStringElement', '_isNumericElement', '_getTableEntry', '_setTa bleEntry', '_deleteTableEntry', '_newHashTable'] 5798 names: ['_isStringElement', '_isNumericElement', '_getTableEntry', '_setTa bleEntry', '_deleteTableEntry', '_newHashTable']
5799 }); 5799 });
5800 dart.defineExtensionMembers(_LinkedHashSet, [ 5800 dart.defineExtensionMembers(_LinkedHashSet, [
5801 'contains', 5801 'contains',
5802 'forEach', 5802 'forEach',
5803 'iterator', 5803 'iterator',
5804 'length', 5804 'length',
5805 'isEmpty', 5805 'isEmpty',
5806 'isNotEmpty', 5806 'isNotEmpty',
(...skipping 30 matching lines...) Expand all
5837 methods: () => ({[_newSet]: [core.Set$(E), []]}) 5837 methods: () => ({[_newSet]: [core.Set$(E), []]})
5838 }); 5838 });
5839 return _LinkedIdentityHashSet; 5839 return _LinkedIdentityHashSet;
5840 }); 5840 });
5841 let _LinkedIdentityHashSet = _LinkedIdentityHashSet$(); 5841 let _LinkedIdentityHashSet = _LinkedIdentityHashSet$();
5842 let _LinkedCustomHashSet$ = dart.generic(function(E) { 5842 let _LinkedCustomHashSet$ = dart.generic(function(E) {
5843 class _LinkedCustomHashSet extends _LinkedHashSet$(E) { 5843 class _LinkedCustomHashSet extends _LinkedHashSet$(E) {
5844 _LinkedCustomHashSet(equality, hasher, validKey) { 5844 _LinkedCustomHashSet(equality, hasher, validKey) {
5845 this[_equality] = equality; 5845 this[_equality] = equality;
5846 this[_hasher] = hasher; 5846 this[_hasher] = hasher;
5847 this[_validKey] = validKey != null ? validKey : dart.fn(x => dart.is(x, E), core.bool, [core.Object]); 5847 this[_validKey] = validKey != null ? validKey : dart.fn(x => dart.is(x, E), core.bool, [dart.dynamic]);
5848 super._LinkedHashSet(); 5848 super._LinkedHashSet();
5849 } 5849 }
5850 [_newSet]() { 5850 [_newSet]() {
5851 return new (_LinkedCustomHashSet$(E))(this[_equality], this[_hasher], th is[_validKey]); 5851 return new (_LinkedCustomHashSet$(E))(this[_equality], this[_hasher], th is[_validKey]);
5852 } 5852 }
5853 [_findBucketIndex](bucket, element) { 5853 [_findBucketIndex](bucket, element) {
5854 if (bucket == null) 5854 if (bucket == null)
5855 return -1; 5855 return -1;
5856 let length = bucket.length; 5856 let length = bucket.length;
5857 for (let i = 0; dart.notNull(i) < dart.notNull(length); i = dart.notNull (i) + 1) { 5857 for (let i = 0; dart.notNull(i) < dart.notNull(length); i = dart.notNull (i) + 1) {
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
5911 }); 5911 });
5912 let _LinkedCustomHashSet = _LinkedCustomHashSet$(); 5912 let _LinkedCustomHashSet = _LinkedCustomHashSet$();
5913 class LinkedHashSetCell extends core.Object { 5913 class LinkedHashSetCell extends core.Object {
5914 LinkedHashSetCell(element) { 5914 LinkedHashSetCell(element) {
5915 this[_element] = element; 5915 this[_element] = element;
5916 this[_next] = null; 5916 this[_next] = null;
5917 this[_previous] = null; 5917 this[_previous] = null;
5918 } 5918 }
5919 } 5919 }
5920 dart.setSignature(LinkedHashSetCell, { 5920 dart.setSignature(LinkedHashSetCell, {
5921 constructors: () => ({LinkedHashSetCell: [LinkedHashSetCell, [core.Object]]} ) 5921 constructors: () => ({LinkedHashSetCell: [LinkedHashSetCell, [dart.dynamic]] })
5922 }); 5922 });
5923 let LinkedHashSetIterator$ = dart.generic(function(E) { 5923 let LinkedHashSetIterator$ = dart.generic(function(E) {
5924 class LinkedHashSetIterator extends core.Object { 5924 class LinkedHashSetIterator extends core.Object {
5925 LinkedHashSetIterator(set, modifications) { 5925 LinkedHashSetIterator(set, modifications) {
5926 this[_set] = set; 5926 this[_set] = set;
5927 this[_modifications] = modifications; 5927 this[_modifications] = modifications;
5928 this[_cell] = null; 5928 this[_cell] = null;
5929 this[_current] = null; 5929 this[_current] = null;
5930 this[_cell] = dart.as(dart.dload(this[_set], _first), LinkedHashSetCell) ; 5930 this[_cell] = dart.as(dart.dload(this[_set], _first), LinkedHashSetCell) ;
5931 } 5931 }
5932 get current() { 5932 get current() {
5933 return this[_current]; 5933 return this[_current];
5934 } 5934 }
5935 moveNext() { 5935 moveNext() {
5936 if (!dart.equals(this[_modifications], dart.dload(this[_set], _modificat ions))) { 5936 if (!dart.equals(this[_modifications], dart.dload(this[_set], _modificat ions))) {
5937 throw new core.ConcurrentModificationError(this[_set]); 5937 throw new core.ConcurrentModificationError(this[_set]);
5938 } else if (this[_cell] == null) { 5938 } else if (this[_cell] == null) {
5939 this[_current] = null; 5939 this[_current] = null;
5940 return false; 5940 return false;
5941 } else { 5941 } else {
5942 this[_current] = dart.as(this[_cell][_element], E); 5942 this[_current] = dart.as(this[_cell][_element], E);
5943 this[_cell] = this[_cell][_next]; 5943 this[_cell] = this[_cell][_next];
5944 return true; 5944 return true;
5945 } 5945 }
5946 } 5946 }
5947 } 5947 }
5948 LinkedHashSetIterator[dart.implements] = () => [core.Iterator$(E)]; 5948 LinkedHashSetIterator[dart.implements] = () => [core.Iterator$(E)];
5949 dart.setSignature(LinkedHashSetIterator, { 5949 dart.setSignature(LinkedHashSetIterator, {
5950 constructors: () => ({LinkedHashSetIterator: [LinkedHashSetIterator$(E), [ core.Object, core.int]]}), 5950 constructors: () => ({LinkedHashSetIterator: [LinkedHashSetIterator$(E), [ dart.dynamic, core.int]]}),
5951 methods: () => ({moveNext: [core.bool, []]}) 5951 methods: () => ({moveNext: [core.bool, []]})
5952 }); 5952 });
5953 return LinkedHashSetIterator; 5953 return LinkedHashSetIterator;
5954 }); 5954 });
5955 let LinkedHashSetIterator = LinkedHashSetIterator$(); 5955 let LinkedHashSetIterator = LinkedHashSetIterator$();
5956 // Exports: 5956 // Exports:
5957 exports.UnmodifiableListView$ = UnmodifiableListView$; 5957 exports.UnmodifiableListView$ = UnmodifiableListView$;
5958 exports.HashMap$ = HashMap$; 5958 exports.HashMap$ = HashMap$;
5959 exports.HashMap = HashMap; 5959 exports.HashMap = HashMap;
5960 exports.SetMixin$ = SetMixin$; 5960 exports.SetMixin$ = SetMixin$;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
6012 exports.LinkedHashMapKeyIterable$ = LinkedHashMapKeyIterable$; 6012 exports.LinkedHashMapKeyIterable$ = LinkedHashMapKeyIterable$;
6013 exports.LinkedHashMapKeyIterable = LinkedHashMapKeyIterable; 6013 exports.LinkedHashMapKeyIterable = LinkedHashMapKeyIterable;
6014 exports.LinkedHashMapKeyIterator$ = LinkedHashMapKeyIterator$; 6014 exports.LinkedHashMapKeyIterator$ = LinkedHashMapKeyIterator$;
6015 exports.LinkedHashMapKeyIterator = LinkedHashMapKeyIterator; 6015 exports.LinkedHashMapKeyIterator = LinkedHashMapKeyIterator;
6016 exports.HashSetIterator$ = HashSetIterator$; 6016 exports.HashSetIterator$ = HashSetIterator$;
6017 exports.HashSetIterator = HashSetIterator; 6017 exports.HashSetIterator = HashSetIterator;
6018 exports.LinkedHashSetCell = LinkedHashSetCell; 6018 exports.LinkedHashSetCell = LinkedHashSetCell;
6019 exports.LinkedHashSetIterator$ = LinkedHashSetIterator$; 6019 exports.LinkedHashSetIterator$ = LinkedHashSetIterator$;
6020 exports.LinkedHashSetIterator = LinkedHashSetIterator; 6020 exports.LinkedHashSetIterator = LinkedHashSetIterator;
6021 }); 6021 });
OLDNEW
« no previous file with comments | « lib/runtime/dart/async.js ('k') | lib/runtime/dart/convert.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698