| OLD | NEW |
| 1 var collection; | 1 var collection; |
| 2 (function(exports) { | 2 (function(exports) { |
| 3 'use strict'; | 3 'use strict'; |
| 4 let _source = Symbol('_source'); | 4 let _source = Symbol('_source'); |
| 5 let UnmodifiableListView$ = dart.generic(function(E) { | 5 let UnmodifiableListView$ = dart.generic(function(E) { |
| 6 class UnmodifiableListView extends _internal.UnmodifiableListBase$(E) { | 6 class UnmodifiableListView extends _internal.UnmodifiableListBase$(E) { |
| 7 UnmodifiableListView(source) { | 7 UnmodifiableListView(source) { |
| 8 this[_source] = source; | 8 this[_source] = source; |
| 9 super.UnmodifiableListBase(); | 9 super.UnmodifiableListBase(); |
| 10 } | 10 } |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 let map = new HashMap(); | 72 let map = new HashMap(); |
| 73 Maps._fillMapWithMappedIterable(map, iterable, key, value); | 73 Maps._fillMapWithMappedIterable(map, iterable, key, value); |
| 74 return map; | 74 return map; |
| 75 } | 75 } |
| 76 fromIterables(keys, values) { | 76 fromIterables(keys, values) { |
| 77 let map = new HashMap(); | 77 let map = new HashMap(); |
| 78 Maps._fillMapWithIterables(map, keys, values); | 78 Maps._fillMapWithIterables(map, keys, values); |
| 79 return map; | 79 return map; |
| 80 } | 80 } |
| 81 } | 81 } |
| 82 HashMap[dart.implements] = [core.Map$(K, V)]; |
| 82 dart.defineNamedConstructor(HashMap, 'identity'); | 83 dart.defineNamedConstructor(HashMap, 'identity'); |
| 83 dart.defineNamedConstructor(HashMap, 'from'); | 84 dart.defineNamedConstructor(HashMap, 'from'); |
| 84 dart.defineNamedConstructor(HashMap, 'fromIterable'); | 85 dart.defineNamedConstructor(HashMap, 'fromIterable'); |
| 85 dart.defineNamedConstructor(HashMap, 'fromIterables'); | 86 dart.defineNamedConstructor(HashMap, 'fromIterables'); |
| 86 return HashMap; | 87 return HashMap; |
| 87 }); | 88 }); |
| 88 let HashMap = HashMap$(dart.dynamic, dart.dynamic); | 89 let HashMap = HashMap$(dart.dynamic, dart.dynamic); |
| 89 let _newSet = Symbol('_newSet'); | 90 let _newSet = Symbol('_newSet'); |
| 90 let SetMixin$ = dart.generic(function(E) { | 91 let SetMixin$ = dart.generic(function(E) { |
| 91 class SetMixin extends core.Object { | 92 class SetMixin extends core.Object { |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 core.RangeError.checkNotNegative(index, "index"); | 324 core.RangeError.checkNotNegative(index, "index"); |
| 324 let elementIndex = 0; | 325 let elementIndex = 0; |
| 325 for (let element of this) { | 326 for (let element of this) { |
| 326 if (index === elementIndex) | 327 if (index === elementIndex) |
| 327 return element; | 328 return element; |
| 328 elementIndex = dart.notNull(elementIndex) + 1; | 329 elementIndex = dart.notNull(elementIndex) + 1; |
| 329 } | 330 } |
| 330 throw new core.RangeError.index(index, this, "index", null, elementIndex
); | 331 throw new core.RangeError.index(index, this, "index", null, elementIndex
); |
| 331 } | 332 } |
| 332 } | 333 } |
| 334 SetMixin[dart.implements] = [core.Set$(E)]; |
| 333 return SetMixin; | 335 return SetMixin; |
| 334 }); | 336 }); |
| 335 let SetMixin = SetMixin$(dart.dynamic); | 337 let SetMixin = SetMixin$(dart.dynamic); |
| 336 let SetBase$ = dart.generic(function(E) { | 338 let SetBase$ = dart.generic(function(E) { |
| 337 class SetBase extends SetMixin$(E) { | 339 class SetBase extends SetMixin$(E) { |
| 338 static setToString(set) { | 340 static setToString(set) { |
| 339 return IterableBase.iterableToFullString(set, '{', '}'); | 341 return IterableBase.iterableToFullString(set, '{', '}'); |
| 340 } | 342 } |
| 341 } | 343 } |
| 342 return SetBase; | 344 return SetBase; |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 identity() { | 405 identity() { |
| 404 return new _IdentityHashSet(); | 406 return new _IdentityHashSet(); |
| 405 } | 407 } |
| 406 from(elements) { | 408 from(elements) { |
| 407 let result = new HashSet(); | 409 let result = new HashSet(); |
| 408 for (let e of elements) | 410 for (let e of elements) |
| 409 result.add(e); | 411 result.add(e); |
| 410 return result; | 412 return result; |
| 411 } | 413 } |
| 412 } | 414 } |
| 415 HashSet[dart.implements] = [core.Set$(E)]; |
| 413 dart.defineNamedConstructor(HashSet, 'identity'); | 416 dart.defineNamedConstructor(HashSet, 'identity'); |
| 414 dart.defineNamedConstructor(HashSet, 'from'); | 417 dart.defineNamedConstructor(HashSet, 'from'); |
| 415 return HashSet; | 418 return HashSet; |
| 416 }); | 419 }); |
| 417 let HashSet = HashSet$(dart.dynamic); | 420 let HashSet = HashSet$(dart.dynamic); |
| 418 let IterableMixin$ = dart.generic(function(E) { | 421 let IterableMixin$ = dart.generic(function(E) { |
| 419 class IterableMixin extends core.Object { | 422 class IterableMixin extends core.Object { |
| 420 map(f) { | 423 map(f) { |
| 421 return new _internal.MappedIterable(this, f); | 424 return new _internal.MappedIterable(this, f); |
| 422 } | 425 } |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 600 if (index === elementIndex) | 603 if (index === elementIndex) |
| 601 return element; | 604 return element; |
| 602 elementIndex = dart.notNull(elementIndex) + 1; | 605 elementIndex = dart.notNull(elementIndex) + 1; |
| 603 } | 606 } |
| 604 throw new core.RangeError.index(index, this, "index", null, elementIndex
); | 607 throw new core.RangeError.index(index, this, "index", null, elementIndex
); |
| 605 } | 608 } |
| 606 toString() { | 609 toString() { |
| 607 return IterableBase.iterableToShortString(this, '(', ')'); | 610 return IterableBase.iterableToShortString(this, '(', ')'); |
| 608 } | 611 } |
| 609 } | 612 } |
| 613 IterableMixin[dart.implements] = [core.Iterable$(E)]; |
| 610 return IterableMixin; | 614 return IterableMixin; |
| 611 }); | 615 }); |
| 612 let IterableMixin = IterableMixin$(dart.dynamic); | 616 let IterableMixin = IterableMixin$(dart.dynamic); |
| 613 let _isToStringVisiting = Symbol('_isToStringVisiting'); | 617 let _isToStringVisiting = Symbol('_isToStringVisiting'); |
| 614 let _toStringVisiting = Symbol('_toStringVisiting'); | 618 let _toStringVisiting = Symbol('_toStringVisiting'); |
| 615 let _iterablePartsToStrings = Symbol('_iterablePartsToStrings'); | 619 let _iterablePartsToStrings = Symbol('_iterablePartsToStrings'); |
| 616 let IterableBase$ = dart.generic(function(E) { | 620 let IterableBase$ = dart.generic(function(E) { |
| 617 class IterableBase extends core.Object { | 621 class IterableBase extends core.Object { |
| 618 IterableBase() { | 622 IterableBase() { |
| 619 } | 623 } |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 929 length = dart.notNull(ELLIPSIS_SIZE) + dart.notNull(OVERHEAD); | 933 length = dart.notNull(ELLIPSIS_SIZE) + dart.notNull(OVERHEAD); |
| 930 } | 934 } |
| 931 } | 935 } |
| 932 if (elision !== null) { | 936 if (elision !== null) { |
| 933 parts.add(elision); | 937 parts.add(elision); |
| 934 } | 938 } |
| 935 parts.add(penultimateString); | 939 parts.add(penultimateString); |
| 936 parts.add(ultimateString); | 940 parts.add(ultimateString); |
| 937 } | 941 } |
| 938 } | 942 } |
| 943 IterableBase[dart.implements] = [core.Iterable$(E)]; |
| 939 dart.defineLazyProperties(IterableBase, { | 944 dart.defineLazyProperties(IterableBase, { |
| 940 get _toStringVisiting() { | 945 get _toStringVisiting() { |
| 941 return new core.List.from([]); | 946 return new core.List.from([]); |
| 942 } | 947 } |
| 943 }); | 948 }); |
| 944 return IterableBase; | 949 return IterableBase; |
| 945 }); | 950 }); |
| 946 let IterableBase = IterableBase$(dart.dynamic); | 951 let IterableBase = IterableBase$(dart.dynamic); |
| 947 let _iterator = Symbol('_iterator'); | 952 let _iterator = Symbol('_iterator'); |
| 948 let _NOT_MOVED_YET = Symbol('_NOT_MOVED_YET'); | 953 let _NOT_MOVED_YET = Symbol('_NOT_MOVED_YET'); |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1037 Maps._fillMapWithIterables(map, keys, values); | 1042 Maps._fillMapWithIterables(map, keys, values); |
| 1038 return map; | 1043 return map; |
| 1039 } | 1044 } |
| 1040 [_literal](keyValuePairs) { | 1045 [_literal](keyValuePairs) { |
| 1041 return dart.as(_js_helper.fillLiteralMap(keyValuePairs, new _LinkedHashM
ap()), LinkedHashMap$(K, V)); | 1046 return dart.as(_js_helper.fillLiteralMap(keyValuePairs, new _LinkedHashM
ap()), LinkedHashMap$(K, V)); |
| 1042 } | 1047 } |
| 1043 [_empty]() { | 1048 [_empty]() { |
| 1044 return new _LinkedHashMap(); | 1049 return new _LinkedHashMap(); |
| 1045 } | 1050 } |
| 1046 } | 1051 } |
| 1052 LinkedHashMap[dart.implements] = [HashMap$(K, V)]; |
| 1047 dart.defineNamedConstructor(LinkedHashMap, 'identity'); | 1053 dart.defineNamedConstructor(LinkedHashMap, 'identity'); |
| 1048 dart.defineNamedConstructor(LinkedHashMap, 'from'); | 1054 dart.defineNamedConstructor(LinkedHashMap, 'from'); |
| 1049 dart.defineNamedConstructor(LinkedHashMap, 'fromIterable'); | 1055 dart.defineNamedConstructor(LinkedHashMap, 'fromIterable'); |
| 1050 dart.defineNamedConstructor(LinkedHashMap, 'fromIterables'); | 1056 dart.defineNamedConstructor(LinkedHashMap, 'fromIterables'); |
| 1051 dart.defineNamedConstructor(LinkedHashMap, _literal); | 1057 dart.defineNamedConstructor(LinkedHashMap, _literal); |
| 1052 dart.defineNamedConstructor(LinkedHashMap, _empty); | 1058 dart.defineNamedConstructor(LinkedHashMap, _empty); |
| 1053 return LinkedHashMap; | 1059 return LinkedHashMap; |
| 1054 }); | 1060 }); |
| 1055 let LinkedHashMap = LinkedHashMap$(dart.dynamic, dart.dynamic); | 1061 let LinkedHashMap = LinkedHashMap$(dart.dynamic, dart.dynamic); |
| 1056 let LinkedHashSet$ = dart.generic(function(E) { | 1062 let LinkedHashSet$ = dart.generic(function(E) { |
| (...skipping 30 matching lines...) Expand all Loading... |
| 1087 return new _LinkedIdentityHashSet(); | 1093 return new _LinkedIdentityHashSet(); |
| 1088 } | 1094 } |
| 1089 from(elements) { | 1095 from(elements) { |
| 1090 let result = new LinkedHashSet(); | 1096 let result = new LinkedHashSet(); |
| 1091 for (let element of elements) { | 1097 for (let element of elements) { |
| 1092 result.add(element); | 1098 result.add(element); |
| 1093 } | 1099 } |
| 1094 return result; | 1100 return result; |
| 1095 } | 1101 } |
| 1096 } | 1102 } |
| 1103 LinkedHashSet[dart.implements] = [HashSet$(E)]; |
| 1097 dart.defineNamedConstructor(LinkedHashSet, 'identity'); | 1104 dart.defineNamedConstructor(LinkedHashSet, 'identity'); |
| 1098 dart.defineNamedConstructor(LinkedHashSet, 'from'); | 1105 dart.defineNamedConstructor(LinkedHashSet, 'from'); |
| 1099 return LinkedHashSet; | 1106 return LinkedHashSet; |
| 1100 }); | 1107 }); |
| 1101 let LinkedHashSet = LinkedHashSet$(dart.dynamic); | 1108 let LinkedHashSet = LinkedHashSet$(dart.dynamic); |
| 1102 let _modificationCount = Symbol('_modificationCount'); | 1109 let _modificationCount = Symbol('_modificationCount'); |
| 1103 let _length = Symbol('_length'); | 1110 let _length = Symbol('_length'); |
| 1104 let _next = Symbol('_next'); | 1111 let _next = Symbol('_next'); |
| 1105 let _previous = Symbol('_previous'); | 1112 let _previous = Symbol('_previous'); |
| 1106 let _insertAfter = Symbol('_insertAfter'); | 1113 let _insertAfter = Symbol('_insertAfter'); |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1198 this[_length] = dart.notNull(this[_length]) + 1; | 1205 this[_length] = dart.notNull(this[_length]) + 1; |
| 1199 } | 1206 } |
| 1200 [_unlink](entry) { | 1207 [_unlink](entry) { |
| 1201 this[_modificationCount] = dart.notNull(this[_modificationCount]) + 1; | 1208 this[_modificationCount] = dart.notNull(this[_modificationCount]) + 1; |
| 1202 entry[_next][_previous] = entry[_previous]; | 1209 entry[_next][_previous] = entry[_previous]; |
| 1203 entry[_previous][_next] = entry[_next]; | 1210 entry[_previous][_next] = entry[_next]; |
| 1204 this[_length] = dart.notNull(this[_length]) - 1; | 1211 this[_length] = dart.notNull(this[_length]) - 1; |
| 1205 entry[_list] = entry[_next] = entry[_previous] = null; | 1212 entry[_list] = entry[_next] = entry[_previous] = null; |
| 1206 } | 1213 } |
| 1207 } | 1214 } |
| 1215 LinkedList[dart.implements] = [_LinkedListLink]; |
| 1208 return LinkedList; | 1216 return LinkedList; |
| 1209 }); | 1217 }); |
| 1210 let LinkedList = LinkedList$(dart.dynamic); | 1218 let LinkedList = LinkedList$(dart.dynamic); |
| 1211 let _current = Symbol('_current'); | 1219 let _current = Symbol('_current'); |
| 1212 let _LinkedListIterator$ = dart.generic(function(E) { | 1220 let _LinkedListIterator$ = dart.generic(function(E) { |
| 1213 class _LinkedListIterator extends core.Object { | 1221 class _LinkedListIterator extends core.Object { |
| 1214 _LinkedListIterator(list) { | 1222 _LinkedListIterator(list) { |
| 1215 this[_list] = list; | 1223 this[_list] = list; |
| 1216 this[_modificationCount] = list[_modificationCount]; | 1224 this[_modificationCount] = list[_modificationCount]; |
| 1217 this[_next] = list[_next]; | 1225 this[_next] = list[_next]; |
| 1218 this[_current] = null; | 1226 this[_current] = null; |
| 1219 } | 1227 } |
| 1220 get current() { | 1228 get current() { |
| 1221 return this[_current]; | 1229 return this[_current]; |
| 1222 } | 1230 } |
| 1223 moveNext() { | 1231 moveNext() { |
| 1224 if (core.identical(this[_next], this[_list])) { | 1232 if (core.identical(this[_next], this[_list])) { |
| 1225 this[_current] = null; | 1233 this[_current] = null; |
| 1226 return false; | 1234 return false; |
| 1227 } | 1235 } |
| 1228 if (this[_modificationCount] !== this[_list][_modificationCount]) { | 1236 if (this[_modificationCount] !== this[_list][_modificationCount]) { |
| 1229 throw new core.ConcurrentModificationError(this); | 1237 throw new core.ConcurrentModificationError(this); |
| 1230 } | 1238 } |
| 1231 this[_current] = dart.as(this[_next], E); | 1239 this[_current] = dart.as(this[_next], E); |
| 1232 this[_next] = this[_next][_next]; | 1240 this[_next] = this[_next][_next]; |
| 1233 return true; | 1241 return true; |
| 1234 } | 1242 } |
| 1235 } | 1243 } |
| 1244 _LinkedListIterator[dart.implements] = [core.Iterator$(E)]; |
| 1236 return _LinkedListIterator; | 1245 return _LinkedListIterator; |
| 1237 }); | 1246 }); |
| 1238 let _LinkedListIterator = _LinkedListIterator$(dart.dynamic); | 1247 let _LinkedListIterator = _LinkedListIterator$(dart.dynamic); |
| 1239 class _LinkedListLink extends core.Object { | 1248 class _LinkedListLink extends core.Object { |
| 1240 _LinkedListLink() { | 1249 _LinkedListLink() { |
| 1241 this[_next] = null; | 1250 this[_next] = null; |
| 1242 this[_previous] = null; | 1251 this[_previous] = null; |
| 1243 } | 1252 } |
| 1244 } | 1253 } |
| 1245 let LinkedListEntry$ = dart.generic(function(E) { | 1254 let LinkedListEntry$ = dart.generic(function(E) { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 1266 return null; | 1275 return null; |
| 1267 return dart.as(this[_previous], E); | 1276 return dart.as(this[_previous], E); |
| 1268 } | 1277 } |
| 1269 insertAfter(entry) { | 1278 insertAfter(entry) { |
| 1270 this[_list]._insertAfter(this, entry); | 1279 this[_list]._insertAfter(this, entry); |
| 1271 } | 1280 } |
| 1272 insertBefore(entry) { | 1281 insertBefore(entry) { |
| 1273 this[_list]._insertAfter(this[_previous], entry); | 1282 this[_list]._insertAfter(this[_previous], entry); |
| 1274 } | 1283 } |
| 1275 } | 1284 } |
| 1285 LinkedListEntry[dart.implements] = [_LinkedListLink]; |
| 1276 return LinkedListEntry; | 1286 return LinkedListEntry; |
| 1277 }); | 1287 }); |
| 1278 let LinkedListEntry = LinkedListEntry$(dart.dynamic); | 1288 let LinkedListEntry = LinkedListEntry$(dart.dynamic); |
| 1279 let _filter = Symbol('_filter'); | 1289 let _filter = Symbol('_filter'); |
| 1280 let ListMixin$ = dart.generic(function(E) { | 1290 let ListMixin$ = dart.generic(function(E) { |
| 1281 class ListMixin extends core.Object { | 1291 class ListMixin extends core.Object { |
| 1282 get iterator() { | 1292 get iterator() { |
| 1283 return new _internal.ListIterator(this); | 1293 return new _internal.ListIterator(this); |
| 1284 } | 1294 } |
| 1285 elementAt(index) { | 1295 elementAt(index) { |
| (...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1717 } | 1727 } |
| 1718 } | 1728 } |
| 1719 } | 1729 } |
| 1720 get reversed() { | 1730 get reversed() { |
| 1721 return new _internal.ReversedListIterable(this); | 1731 return new _internal.ReversedListIterable(this); |
| 1722 } | 1732 } |
| 1723 toString() { | 1733 toString() { |
| 1724 return IterableBase.iterableToFullString(this, '[', ']'); | 1734 return IterableBase.iterableToFullString(this, '[', ']'); |
| 1725 } | 1735 } |
| 1726 } | 1736 } |
| 1737 ListMixin[dart.implements] = [core.List$(E)]; |
| 1727 return ListMixin; | 1738 return ListMixin; |
| 1728 }); | 1739 }); |
| 1729 let ListMixin = ListMixin$(dart.dynamic); | 1740 let ListMixin = ListMixin$(dart.dynamic); |
| 1730 let ListBase$ = dart.generic(function(E) { | 1741 let ListBase$ = dart.generic(function(E) { |
| 1731 class ListBase extends dart.mixin(core.Object, ListMixin$(E)) { | 1742 class ListBase extends dart.mixin(core.Object, ListMixin$(E)) { |
| 1732 static listToString(list) { | 1743 static listToString(list) { |
| 1733 return IterableBase.iterableToFullString(list, '[', ']'); | 1744 return IterableBase.iterableToFullString(list, '[', ']'); |
| 1734 } | 1745 } |
| 1735 } | 1746 } |
| 1736 return ListBase; | 1747 return ListBase; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1773 get isNotEmpty() { | 1784 get isNotEmpty() { |
| 1774 return this.keys.isNotEmpty; | 1785 return this.keys.isNotEmpty; |
| 1775 } | 1786 } |
| 1776 get values() { | 1787 get values() { |
| 1777 return new _MapBaseValueIterable(this); | 1788 return new _MapBaseValueIterable(this); |
| 1778 } | 1789 } |
| 1779 toString() { | 1790 toString() { |
| 1780 return Maps.mapToString(this); | 1791 return Maps.mapToString(this); |
| 1781 } | 1792 } |
| 1782 } | 1793 } |
| 1794 MapMixin[dart.implements] = [core.Map$(K, V)]; |
| 1783 return MapMixin; | 1795 return MapMixin; |
| 1784 }); | 1796 }); |
| 1785 let MapMixin = MapMixin$(dart.dynamic, dart.dynamic); | 1797 let MapMixin = MapMixin$(dart.dynamic, dart.dynamic); |
| 1786 let MapBase$ = dart.generic(function(K, V) { | 1798 let MapBase$ = dart.generic(function(K, V) { |
| 1787 class MapBase extends dart.mixin(MapMixin$(K, V)) { | 1799 class MapBase extends dart.mixin(MapMixin$(K, V)) { |
| 1788 } | 1800 } |
| 1789 return MapBase; | 1801 return MapBase; |
| 1790 }); | 1802 }); |
| 1791 let MapBase = MapBase$(dart.dynamic, dart.dynamic); | 1803 let MapBase = MapBase$(dart.dynamic, dart.dynamic); |
| 1792 let _UnmodifiableMapMixin$ = dart.generic(function(K, V) { | 1804 let _UnmodifiableMapMixin$ = dart.generic(function(K, V) { |
| 1793 class _UnmodifiableMapMixin extends core.Object { | 1805 class _UnmodifiableMapMixin extends core.Object { |
| 1794 set(key, value) { | 1806 set(key, value) { |
| 1795 throw new core.UnsupportedError("Cannot modify unmodifiable map"); | 1807 throw new core.UnsupportedError("Cannot modify unmodifiable map"); |
| 1796 } | 1808 } |
| 1797 addAll(other) { | 1809 addAll(other) { |
| 1798 throw new core.UnsupportedError("Cannot modify unmodifiable map"); | 1810 throw new core.UnsupportedError("Cannot modify unmodifiable map"); |
| 1799 } | 1811 } |
| 1800 clear() { | 1812 clear() { |
| 1801 throw new core.UnsupportedError("Cannot modify unmodifiable map"); | 1813 throw new core.UnsupportedError("Cannot modify unmodifiable map"); |
| 1802 } | 1814 } |
| 1803 remove(key) { | 1815 remove(key) { |
| 1804 throw new core.UnsupportedError("Cannot modify unmodifiable map"); | 1816 throw new core.UnsupportedError("Cannot modify unmodifiable map"); |
| 1805 } | 1817 } |
| 1806 putIfAbsent(key, ifAbsent) { | 1818 putIfAbsent(key, ifAbsent) { |
| 1807 throw new core.UnsupportedError("Cannot modify unmodifiable map"); | 1819 throw new core.UnsupportedError("Cannot modify unmodifiable map"); |
| 1808 } | 1820 } |
| 1809 } | 1821 } |
| 1822 _UnmodifiableMapMixin[dart.implements] = [core.Map$(K, V)]; |
| 1810 return _UnmodifiableMapMixin; | 1823 return _UnmodifiableMapMixin; |
| 1811 }); | 1824 }); |
| 1812 let _UnmodifiableMapMixin = _UnmodifiableMapMixin$(dart.dynamic, dart.dynamic)
; | 1825 let _UnmodifiableMapMixin = _UnmodifiableMapMixin$(dart.dynamic, dart.dynamic)
; |
| 1813 let UnmodifiableMapBase$ = dart.generic(function(K, V) { | 1826 let UnmodifiableMapBase$ = dart.generic(function(K, V) { |
| 1814 class UnmodifiableMapBase extends dart.mixin(_UnmodifiableMapMixin$(K, V)) { | 1827 class UnmodifiableMapBase extends dart.mixin(_UnmodifiableMapMixin$(K, V)) { |
| 1815 } | 1828 } |
| 1816 return UnmodifiableMapBase; | 1829 return UnmodifiableMapBase; |
| 1817 }); | 1830 }); |
| 1818 let UnmodifiableMapBase = UnmodifiableMapBase$(dart.dynamic, dart.dynamic); | 1831 let UnmodifiableMapBase = UnmodifiableMapBase$(dart.dynamic, dart.dynamic); |
| 1819 let _map = Symbol('_map'); | 1832 let _map = Symbol('_map'); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 1838 get single() { | 1851 get single() { |
| 1839 return dart.as(this[_map].get(this[_map].keys.single), V); | 1852 return dart.as(this[_map].get(this[_map].keys.single), V); |
| 1840 } | 1853 } |
| 1841 get last() { | 1854 get last() { |
| 1842 return dart.as(this[_map].get(this[_map].keys.last), V); | 1855 return dart.as(this[_map].get(this[_map].keys.last), V); |
| 1843 } | 1856 } |
| 1844 get iterator() { | 1857 get iterator() { |
| 1845 return new _MapBaseValueIterator(this[_map]); | 1858 return new _MapBaseValueIterator(this[_map]); |
| 1846 } | 1859 } |
| 1847 } | 1860 } |
| 1861 _MapBaseValueIterable[dart.implements] = [_internal.EfficientLength]; |
| 1848 return _MapBaseValueIterable; | 1862 return _MapBaseValueIterable; |
| 1849 }); | 1863 }); |
| 1850 let _MapBaseValueIterable = _MapBaseValueIterable$(dart.dynamic); | 1864 let _MapBaseValueIterable = _MapBaseValueIterable$(dart.dynamic); |
| 1851 let _keys = Symbol('_keys'); | 1865 let _keys = Symbol('_keys'); |
| 1852 let _MapBaseValueIterator$ = dart.generic(function(V) { | 1866 let _MapBaseValueIterator$ = dart.generic(function(V) { |
| 1853 class _MapBaseValueIterator extends core.Object { | 1867 class _MapBaseValueIterator extends core.Object { |
| 1854 _MapBaseValueIterator(map) { | 1868 _MapBaseValueIterator(map) { |
| 1855 this[_map] = map; | 1869 this[_map] = map; |
| 1856 this[_keys] = map.keys.iterator; | 1870 this[_keys] = map.keys.iterator; |
| 1857 this[_current] = null; | 1871 this[_current] = null; |
| 1858 } | 1872 } |
| 1859 moveNext() { | 1873 moveNext() { |
| 1860 if (this[_keys].moveNext()) { | 1874 if (this[_keys].moveNext()) { |
| 1861 this[_current] = dart.as(this[_map].get(this[_keys].current), V); | 1875 this[_current] = dart.as(this[_map].get(this[_keys].current), V); |
| 1862 return true; | 1876 return true; |
| 1863 } | 1877 } |
| 1864 this[_current] = null; | 1878 this[_current] = null; |
| 1865 return false; | 1879 return false; |
| 1866 } | 1880 } |
| 1867 get current() { | 1881 get current() { |
| 1868 return this[_current]; | 1882 return this[_current]; |
| 1869 } | 1883 } |
| 1870 } | 1884 } |
| 1885 _MapBaseValueIterator[dart.implements] = [core.Iterator$(V)]; |
| 1871 return _MapBaseValueIterator; | 1886 return _MapBaseValueIterator; |
| 1872 }); | 1887 }); |
| 1873 let _MapBaseValueIterator = _MapBaseValueIterator$(dart.dynamic); | 1888 let _MapBaseValueIterator = _MapBaseValueIterator$(dart.dynamic); |
| 1874 let MapView$ = dart.generic(function(K, V) { | 1889 let MapView$ = dart.generic(function(K, V) { |
| 1875 class MapView extends core.Object { | 1890 class MapView extends core.Object { |
| 1876 MapView(map) { | 1891 MapView(map) { |
| 1877 this[_map] = map; | 1892 this[_map] = map; |
| 1878 } | 1893 } |
| 1879 get(key) { | 1894 get(key) { |
| 1880 return this[_map].get(key); | 1895 return this[_map].get(key); |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1915 remove(key) { | 1930 remove(key) { |
| 1916 return this[_map].remove(key); | 1931 return this[_map].remove(key); |
| 1917 } | 1932 } |
| 1918 toString() { | 1933 toString() { |
| 1919 return this[_map].toString(); | 1934 return this[_map].toString(); |
| 1920 } | 1935 } |
| 1921 get values() { | 1936 get values() { |
| 1922 return this[_map].values; | 1937 return this[_map].values; |
| 1923 } | 1938 } |
| 1924 } | 1939 } |
| 1940 MapView[dart.implements] = [core.Map$(K, V)]; |
| 1925 return MapView; | 1941 return MapView; |
| 1926 }); | 1942 }); |
| 1927 let MapView = MapView$(dart.dynamic, dart.dynamic); | 1943 let MapView = MapView$(dart.dynamic, dart.dynamic); |
| 1928 let UnmodifiableMapView$ = dart.generic(function(K, V) { | 1944 let UnmodifiableMapView$ = dart.generic(function(K, V) { |
| 1929 class UnmodifiableMapView extends dart.mixin(_UnmodifiableMapMixin$(K, V)) { | 1945 class UnmodifiableMapView extends dart.mixin(_UnmodifiableMapMixin$(K, V)) { |
| 1930 } | 1946 } |
| 1931 return UnmodifiableMapView; | 1947 return UnmodifiableMapView; |
| 1932 }); | 1948 }); |
| 1933 let UnmodifiableMapView = UnmodifiableMapView$(dart.dynamic, dart.dynamic); | 1949 let UnmodifiableMapView = UnmodifiableMapView$(dart.dynamic, dart.dynamic); |
| 1934 let _id = Symbol('_id'); | 1950 let _id = Symbol('_id'); |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2035 } | 2051 } |
| 2036 let Queue$ = dart.generic(function(E) { | 2052 let Queue$ = dart.generic(function(E) { |
| 2037 class Queue extends core.Object { | 2053 class Queue extends core.Object { |
| 2038 Queue() { | 2054 Queue() { |
| 2039 return new ListQueue(); | 2055 return new ListQueue(); |
| 2040 } | 2056 } |
| 2041 from(elements) { | 2057 from(elements) { |
| 2042 return new ListQueue.from(elements); | 2058 return new ListQueue.from(elements); |
| 2043 } | 2059 } |
| 2044 } | 2060 } |
| 2061 Queue[dart.implements] = [core.Iterable$(E), _internal.EfficientLength]; |
| 2045 dart.defineNamedConstructor(Queue, 'from'); | 2062 dart.defineNamedConstructor(Queue, 'from'); |
| 2046 return Queue; | 2063 return Queue; |
| 2047 }); | 2064 }); |
| 2048 let Queue = Queue$(dart.dynamic); | 2065 let Queue = Queue$(dart.dynamic); |
| 2049 let _element = Symbol('_element'); | 2066 let _element = Symbol('_element'); |
| 2050 let _link = Symbol('_link'); | 2067 let _link = Symbol('_link'); |
| 2051 let _asNonSentinelEntry = Symbol('_asNonSentinelEntry'); | 2068 let _asNonSentinelEntry = Symbol('_asNonSentinelEntry'); |
| 2052 let DoubleLinkedQueueEntry$ = dart.generic(function(E) { | 2069 let DoubleLinkedQueueEntry$ = dart.generic(function(E) { |
| 2053 class DoubleLinkedQueueEntry extends core.Object { | 2070 class DoubleLinkedQueueEntry extends core.Object { |
| 2054 DoubleLinkedQueueEntry(e) { | 2071 DoubleLinkedQueueEntry(e) { |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2227 entry = nextEntry; | 2244 entry = nextEntry; |
| 2228 } | 2245 } |
| 2229 } | 2246 } |
| 2230 get iterator() { | 2247 get iterator() { |
| 2231 return new _DoubleLinkedQueueIterator(this[_sentinel]); | 2248 return new _DoubleLinkedQueueIterator(this[_sentinel]); |
| 2232 } | 2249 } |
| 2233 toString() { | 2250 toString() { |
| 2234 return IterableBase.iterableToFullString(this, '{', '}'); | 2251 return IterableBase.iterableToFullString(this, '{', '}'); |
| 2235 } | 2252 } |
| 2236 } | 2253 } |
| 2254 DoubleLinkedQueue[dart.implements] = [Queue$(E)]; |
| 2237 dart.defineNamedConstructor(DoubleLinkedQueue, 'from'); | 2255 dart.defineNamedConstructor(DoubleLinkedQueue, 'from'); |
| 2238 return DoubleLinkedQueue; | 2256 return DoubleLinkedQueue; |
| 2239 }); | 2257 }); |
| 2240 let DoubleLinkedQueue = DoubleLinkedQueue$(dart.dynamic); | 2258 let DoubleLinkedQueue = DoubleLinkedQueue$(dart.dynamic); |
| 2241 let _nextEntry = Symbol('_nextEntry'); | 2259 let _nextEntry = Symbol('_nextEntry'); |
| 2242 let _DoubleLinkedQueueIterator$ = dart.generic(function(E) { | 2260 let _DoubleLinkedQueueIterator$ = dart.generic(function(E) { |
| 2243 class _DoubleLinkedQueueIterator extends core.Object { | 2261 class _DoubleLinkedQueueIterator extends core.Object { |
| 2244 _DoubleLinkedQueueIterator(sentinel) { | 2262 _DoubleLinkedQueueIterator(sentinel) { |
| 2245 this[_sentinel] = sentinel; | 2263 this[_sentinel] = sentinel; |
| 2246 this[_nextEntry] = sentinel[_next]; | 2264 this[_nextEntry] = sentinel[_next]; |
| 2247 this[_current] = null; | 2265 this[_current] = null; |
| 2248 } | 2266 } |
| 2249 moveNext() { | 2267 moveNext() { |
| 2250 if (!dart.notNull(core.identical(this[_nextEntry], this[_sentinel]))) { | 2268 if (!dart.notNull(core.identical(this[_nextEntry], this[_sentinel]))) { |
| 2251 this[_current] = this[_nextEntry][_element]; | 2269 this[_current] = this[_nextEntry][_element]; |
| 2252 this[_nextEntry] = this[_nextEntry][_next]; | 2270 this[_nextEntry] = this[_nextEntry][_next]; |
| 2253 return true; | 2271 return true; |
| 2254 } | 2272 } |
| 2255 this[_current] = null; | 2273 this[_current] = null; |
| 2256 this[_nextEntry] = this[_sentinel] = null; | 2274 this[_nextEntry] = this[_sentinel] = null; |
| 2257 return false; | 2275 return false; |
| 2258 } | 2276 } |
| 2259 get current() { | 2277 get current() { |
| 2260 return this[_current]; | 2278 return this[_current]; |
| 2261 } | 2279 } |
| 2262 } | 2280 } |
| 2281 _DoubleLinkedQueueIterator[dart.implements] = [core.Iterator$(E)]; |
| 2263 return _DoubleLinkedQueueIterator; | 2282 return _DoubleLinkedQueueIterator; |
| 2264 }); | 2283 }); |
| 2265 let _DoubleLinkedQueueIterator = _DoubleLinkedQueueIterator$(dart.dynamic); | 2284 let _DoubleLinkedQueueIterator = _DoubleLinkedQueueIterator$(dart.dynamic); |
| 2266 let _head = Symbol('_head'); | 2285 let _head = Symbol('_head'); |
| 2267 let _tail = Symbol('_tail'); | 2286 let _tail = Symbol('_tail'); |
| 2268 let _table = Symbol('_table'); | 2287 let _table = Symbol('_table'); |
| 2269 let _INITIAL_CAPACITY = Symbol('_INITIAL_CAPACITY'); | 2288 let _INITIAL_CAPACITY = Symbol('_INITIAL_CAPACITY'); |
| 2270 let _isPowerOf2 = Symbol('_isPowerOf2'); | 2289 let _isPowerOf2 = Symbol('_isPowerOf2'); |
| 2271 let _nextPowerOf2 = Symbol('_nextPowerOf2'); | 2290 let _nextPowerOf2 = Symbol('_nextPowerOf2'); |
| 2272 let _checkModification = Symbol('_checkModification'); | 2291 let _checkModification = Symbol('_checkModification'); |
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2545 [_preGrow](newElementCount) { | 2564 [_preGrow](newElementCount) { |
| 2546 dart.assert(dart.notNull(newElementCount) >= dart.notNull(this.length)); | 2565 dart.assert(dart.notNull(newElementCount) >= dart.notNull(this.length)); |
| 2547 newElementCount = dart.notNull(newElementCount) >> 1; | 2566 newElementCount = dart.notNull(newElementCount) >> 1; |
| 2548 let newCapacity = ListQueue[_nextPowerOf2](newElementCount); | 2567 let newCapacity = ListQueue[_nextPowerOf2](newElementCount); |
| 2549 let newTable = new core.List(newCapacity); | 2568 let newTable = new core.List(newCapacity); |
| 2550 this[_tail] = this[_writeToList](newTable); | 2569 this[_tail] = this[_writeToList](newTable); |
| 2551 this[_table] = newTable; | 2570 this[_table] = newTable; |
| 2552 this[_head] = 0; | 2571 this[_head] = 0; |
| 2553 } | 2572 } |
| 2554 } | 2573 } |
| 2574 ListQueue[dart.implements] = [Queue$(E)]; |
| 2555 dart.defineNamedConstructor(ListQueue, 'from'); | 2575 dart.defineNamedConstructor(ListQueue, 'from'); |
| 2556 ListQueue._INITIAL_CAPACITY = 8; | 2576 ListQueue._INITIAL_CAPACITY = 8; |
| 2557 return ListQueue; | 2577 return ListQueue; |
| 2558 }); | 2578 }); |
| 2559 let ListQueue = ListQueue$(dart.dynamic); | 2579 let ListQueue = ListQueue$(dart.dynamic); |
| 2560 let _queue = Symbol('_queue'); | 2580 let _queue = Symbol('_queue'); |
| 2561 let _end = Symbol('_end'); | 2581 let _end = Symbol('_end'); |
| 2562 let _position = Symbol('_position'); | 2582 let _position = Symbol('_position'); |
| 2563 let _ListQueueIterator$ = dart.generic(function(E) { | 2583 let _ListQueueIterator$ = dart.generic(function(E) { |
| 2564 class _ListQueueIterator extends core.Object { | 2584 class _ListQueueIterator extends core.Object { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 2576 this[_queue]._checkModification(this[_modificationCount]); | 2596 this[_queue]._checkModification(this[_modificationCount]); |
| 2577 if (this[_position] === this[_end]) { | 2597 if (this[_position] === this[_end]) { |
| 2578 this[_current] = null; | 2598 this[_current] = null; |
| 2579 return false; | 2599 return false; |
| 2580 } | 2600 } |
| 2581 this[_current] = dart.as(this[_queue][_table].get(this[_position]), E); | 2601 this[_current] = dart.as(this[_queue][_table].get(this[_position]), E); |
| 2582 this[_position] = dart.notNull(this[_position]) + 1 & dart.notNull(this[
_queue][_table].length) - 1; | 2602 this[_position] = dart.notNull(this[_position]) + 1 & dart.notNull(this[
_queue][_table].length) - 1; |
| 2583 return true; | 2603 return true; |
| 2584 } | 2604 } |
| 2585 } | 2605 } |
| 2606 _ListQueueIterator[dart.implements] = [core.Iterator$(E)]; |
| 2586 return _ListQueueIterator; | 2607 return _ListQueueIterator; |
| 2587 }); | 2608 }); |
| 2588 let _ListQueueIterator = _ListQueueIterator$(dart.dynamic); | 2609 let _ListQueueIterator = _ListQueueIterator$(dart.dynamic); |
| 2589 let _SplayTreeNode$ = dart.generic(function(K) { | 2610 let _SplayTreeNode$ = dart.generic(function(K) { |
| 2590 class _SplayTreeNode extends core.Object { | 2611 class _SplayTreeNode extends core.Object { |
| 2591 _SplayTreeNode(key) { | 2612 _SplayTreeNode(key) { |
| 2592 this.key = key; | 2613 this.key = key; |
| 2593 this.left = null; | 2614 this.left = null; |
| 2594 this.right = null; | 2615 this.right = null; |
| 2595 } | 2616 } |
| (...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2963 return this[_root].key; | 2984 return this[_root].key; |
| 2964 let node = this[_root].right; | 2985 let node = this[_root].right; |
| 2965 if (node === null) | 2986 if (node === null) |
| 2966 return null; | 2987 return null; |
| 2967 while (node.left !== null) { | 2988 while (node.left !== null) { |
| 2968 node = node.left; | 2989 node = node.left; |
| 2969 } | 2990 } |
| 2970 return node.key; | 2991 return node.key; |
| 2971 } | 2992 } |
| 2972 } | 2993 } |
| 2994 SplayTreeMap[dart.implements] = [core.Map$(K, V)]; |
| 2973 dart.defineNamedConstructor(SplayTreeMap, 'from'); | 2995 dart.defineNamedConstructor(SplayTreeMap, 'from'); |
| 2974 dart.defineNamedConstructor(SplayTreeMap, 'fromIterable'); | 2996 dart.defineNamedConstructor(SplayTreeMap, 'fromIterable'); |
| 2975 dart.defineNamedConstructor(SplayTreeMap, 'fromIterables'); | 2997 dart.defineNamedConstructor(SplayTreeMap, 'fromIterables'); |
| 2976 dart.defineNamedConstructor(SplayTreeMap, _internal$); | 2998 dart.defineNamedConstructor(SplayTreeMap, _internal$); |
| 2977 return SplayTreeMap; | 2999 return SplayTreeMap; |
| 2978 }); | 3000 }); |
| 2979 let SplayTreeMap = SplayTreeMap$(dart.dynamic, dart.dynamic); | 3001 let SplayTreeMap = SplayTreeMap$(dart.dynamic, dart.dynamic); |
| 2980 let _workList = Symbol('_workList'); | 3002 let _workList = Symbol('_workList'); |
| 2981 let _tree = Symbol('_tree'); | 3003 let _tree = Symbol('_tree'); |
| 2982 let _currentNode = Symbol('_currentNode'); | 3004 let _currentNode = Symbol('_currentNode'); |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3040 return false; | 3062 return false; |
| 3041 } | 3063 } |
| 3042 if (this[_tree][_splayCount] !== this[_splayCount] && dart.notNull(this[
_currentNode] !== null)) { | 3064 if (this[_tree][_splayCount] !== this[_splayCount] && dart.notNull(this[
_currentNode] !== null)) { |
| 3043 this[_rebuildWorkList](this[_currentNode]); | 3065 this[_rebuildWorkList](this[_currentNode]); |
| 3044 } | 3066 } |
| 3045 this[_currentNode] = this[_workList].removeLast(); | 3067 this[_currentNode] = this[_workList].removeLast(); |
| 3046 this[_findLeftMostDescendent](this[_currentNode].right); | 3068 this[_findLeftMostDescendent](this[_currentNode].right); |
| 3047 return true; | 3069 return true; |
| 3048 } | 3070 } |
| 3049 } | 3071 } |
| 3072 _SplayTreeIterator[dart.implements] = [core.Iterator$(T)]; |
| 3050 dart.defineNamedConstructor(_SplayTreeIterator, 'startAt'); | 3073 dart.defineNamedConstructor(_SplayTreeIterator, 'startAt'); |
| 3051 return _SplayTreeIterator; | 3074 return _SplayTreeIterator; |
| 3052 }); | 3075 }); |
| 3053 let _SplayTreeIterator = _SplayTreeIterator$(dart.dynamic); | 3076 let _SplayTreeIterator = _SplayTreeIterator$(dart.dynamic); |
| 3054 let _SplayTreeKeyIterable$ = dart.generic(function(K) { | 3077 let _SplayTreeKeyIterable$ = dart.generic(function(K) { |
| 3055 class _SplayTreeKeyIterable extends IterableBase$(K) { | 3078 class _SplayTreeKeyIterable extends IterableBase$(K) { |
| 3056 _SplayTreeKeyIterable(tree$) { | 3079 _SplayTreeKeyIterable(tree$) { |
| 3057 this[_tree] = tree$; | 3080 this[_tree] = tree$; |
| 3058 super.IterableBase(); | 3081 super.IterableBase(); |
| 3059 } | 3082 } |
| 3060 get length() { | 3083 get length() { |
| 3061 return this[_tree][_count]; | 3084 return this[_tree][_count]; |
| 3062 } | 3085 } |
| 3063 get isEmpty() { | 3086 get isEmpty() { |
| 3064 return this[_tree][_count] === 0; | 3087 return this[_tree][_count] === 0; |
| 3065 } | 3088 } |
| 3066 get iterator() { | 3089 get iterator() { |
| 3067 return new _SplayTreeKeyIterator(this[_tree]); | 3090 return new _SplayTreeKeyIterator(this[_tree]); |
| 3068 } | 3091 } |
| 3069 toSet() { | 3092 toSet() { |
| 3070 let setOrMap = this[_tree]; | 3093 let setOrMap = this[_tree]; |
| 3071 let set = new SplayTreeSet(dart.as(setOrMap[_comparator], dart.throw_("U
nimplemented type (K, K) → int")), dart.as(setOrMap[_validKey], dart.throw_("Uni
mplemented type (dynamic) → bool"))); | 3094 let set = new SplayTreeSet(dart.as(setOrMap[_comparator], dart.throw_("U
nimplemented type (K, K) → int")), dart.as(setOrMap[_validKey], dart.throw_("Uni
mplemented type (dynamic) → bool"))); |
| 3072 set[_count] = this[_tree][_count]; | 3095 set[_count] = this[_tree][_count]; |
| 3073 set[_root] = set._copyNode(this[_tree][_root]); | 3096 set[_root] = set._copyNode(this[_tree][_root]); |
| 3074 return set; | 3097 return set; |
| 3075 } | 3098 } |
| 3076 } | 3099 } |
| 3100 _SplayTreeKeyIterable[dart.implements] = [_internal.EfficientLength]; |
| 3077 return _SplayTreeKeyIterable; | 3101 return _SplayTreeKeyIterable; |
| 3078 }); | 3102 }); |
| 3079 let _SplayTreeKeyIterable = _SplayTreeKeyIterable$(dart.dynamic); | 3103 let _SplayTreeKeyIterable = _SplayTreeKeyIterable$(dart.dynamic); |
| 3080 let _SplayTreeValueIterable$ = dart.generic(function(K, V) { | 3104 let _SplayTreeValueIterable$ = dart.generic(function(K, V) { |
| 3081 class _SplayTreeValueIterable extends IterableBase$(V) { | 3105 class _SplayTreeValueIterable extends IterableBase$(V) { |
| 3082 _SplayTreeValueIterable(map$) { | 3106 _SplayTreeValueIterable(map$) { |
| 3083 this[_map] = map$; | 3107 this[_map] = map$; |
| 3084 super.IterableBase(); | 3108 super.IterableBase(); |
| 3085 } | 3109 } |
| 3086 get length() { | 3110 get length() { |
| 3087 return this[_map][_count]; | 3111 return this[_map][_count]; |
| 3088 } | 3112 } |
| 3089 get isEmpty() { | 3113 get isEmpty() { |
| 3090 return this[_map][_count] === 0; | 3114 return this[_map][_count] === 0; |
| 3091 } | 3115 } |
| 3092 get iterator() { | 3116 get iterator() { |
| 3093 return new _SplayTreeValueIterator(this[_map]); | 3117 return new _SplayTreeValueIterator(this[_map]); |
| 3094 } | 3118 } |
| 3095 } | 3119 } |
| 3120 _SplayTreeValueIterable[dart.implements] = [_internal.EfficientLength]; |
| 3096 return _SplayTreeValueIterable; | 3121 return _SplayTreeValueIterable; |
| 3097 }); | 3122 }); |
| 3098 let _SplayTreeValueIterable = _SplayTreeValueIterable$(dart.dynamic, dart.dyna
mic); | 3123 let _SplayTreeValueIterable = _SplayTreeValueIterable$(dart.dynamic, dart.dyna
mic); |
| 3099 let _SplayTreeKeyIterator$ = dart.generic(function(K) { | 3124 let _SplayTreeKeyIterator$ = dart.generic(function(K) { |
| 3100 class _SplayTreeKeyIterator extends _SplayTreeIterator$(K) { | 3125 class _SplayTreeKeyIterator extends _SplayTreeIterator$(K) { |
| 3101 _SplayTreeKeyIterator(map) { | 3126 _SplayTreeKeyIterator(map) { |
| 3102 super._SplayTreeIterator(map); | 3127 super._SplayTreeIterator(map); |
| 3103 } | 3128 } |
| 3104 [_getValue](node) { | 3129 [_getValue](node) { |
| 3105 return dart.as(node.key, K); | 3130 return dart.as(node.key, K); |
| (...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3567 return -1; | 3592 return -1; |
| 3568 } | 3593 } |
| 3569 static [_newHashTable]() { | 3594 static [_newHashTable]() { |
| 3570 let table = Object.create(null); | 3595 let table = Object.create(null); |
| 3571 let temporaryKey = '<non-identifier-key>'; | 3596 let temporaryKey = '<non-identifier-key>'; |
| 3572 _HashMap[_setTableEntry](table, temporaryKey, table); | 3597 _HashMap[_setTableEntry](table, temporaryKey, table); |
| 3573 _HashMap[_deleteTableEntry](table, temporaryKey); | 3598 _HashMap[_deleteTableEntry](table, temporaryKey); |
| 3574 return table; | 3599 return table; |
| 3575 } | 3600 } |
| 3576 } | 3601 } |
| 3602 _HashMap[dart.implements] = [HashMap$(K, V)]; |
| 3577 return _HashMap; | 3603 return _HashMap; |
| 3578 }); | 3604 }); |
| 3579 let _HashMap = _HashMap$(dart.dynamic, dart.dynamic); | 3605 let _HashMap = _HashMap$(dart.dynamic, dart.dynamic); |
| 3580 let _IdentityHashMap$ = dart.generic(function(K, V) { | 3606 let _IdentityHashMap$ = dart.generic(function(K, V) { |
| 3581 class _IdentityHashMap extends _HashMap$(K, V) { | 3607 class _IdentityHashMap extends _HashMap$(K, V) { |
| 3582 [_computeHashCode](key) { | 3608 [_computeHashCode](key) { |
| 3583 return core.identityHashCode(key) & 0x3ffffff; | 3609 return core.identityHashCode(key) & 0x3ffffff; |
| 3584 } | 3610 } |
| 3585 [_findBucketIndex](bucket, key) { | 3611 [_findBucketIndex](bucket, key) { |
| 3586 if (bucket === null) | 3612 if (bucket === null) |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3665 forEach(f) { | 3691 forEach(f) { |
| 3666 let keys = dart.as(dart.dinvoke(this[_map], '_computeKeys'), core.List); | 3692 let keys = dart.as(dart.dinvoke(this[_map], '_computeKeys'), core.List); |
| 3667 for (let i = 0, length = keys.length; dart.notNull(i) < dart.notNull(len
gth); i = dart.notNull(i) + 1) { | 3693 for (let i = 0, length = keys.length; dart.notNull(i) < dart.notNull(len
gth); i = dart.notNull(i) + 1) { |
| 3668 f(dart.as(keys[i], E)); | 3694 f(dart.as(keys[i], E)); |
| 3669 if (keys !== dart.dload(this[_map], '_keys')) { | 3695 if (keys !== dart.dload(this[_map], '_keys')) { |
| 3670 throw new core.ConcurrentModificationError(this[_map]); | 3696 throw new core.ConcurrentModificationError(this[_map]); |
| 3671 } | 3697 } |
| 3672 } | 3698 } |
| 3673 } | 3699 } |
| 3674 } | 3700 } |
| 3701 HashMapKeyIterable[dart.implements] = [_internal.EfficientLength]; |
| 3675 return HashMapKeyIterable; | 3702 return HashMapKeyIterable; |
| 3676 }); | 3703 }); |
| 3677 let HashMapKeyIterable = HashMapKeyIterable$(dart.dynamic); | 3704 let HashMapKeyIterable = HashMapKeyIterable$(dart.dynamic); |
| 3678 let _offset = Symbol('_offset'); | 3705 let _offset = Symbol('_offset'); |
| 3679 let HashMapKeyIterator$ = dart.generic(function(E) { | 3706 let HashMapKeyIterator$ = dart.generic(function(E) { |
| 3680 class HashMapKeyIterator extends core.Object { | 3707 class HashMapKeyIterator extends core.Object { |
| 3681 HashMapKeyIterator(map$, keys$) { | 3708 HashMapKeyIterator(map$, keys$) { |
| 3682 this[_map] = map$; | 3709 this[_map] = map$; |
| 3683 this[_keys] = keys$; | 3710 this[_keys] = keys$; |
| 3684 this[_offset] = 0; | 3711 this[_offset] = 0; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 3695 } else if (dart.notNull(offset) >= keys.length) { | 3722 } else if (dart.notNull(offset) >= keys.length) { |
| 3696 this[_current] = null; | 3723 this[_current] = null; |
| 3697 return false; | 3724 return false; |
| 3698 } else { | 3725 } else { |
| 3699 this[_current] = dart.as(keys[offset], E); | 3726 this[_current] = dart.as(keys[offset], E); |
| 3700 this[_offset] = dart.notNull(offset) + 1; | 3727 this[_offset] = dart.notNull(offset) + 1; |
| 3701 return true; | 3728 return true; |
| 3702 } | 3729 } |
| 3703 } | 3730 } |
| 3704 } | 3731 } |
| 3732 HashMapKeyIterator[dart.implements] = [core.Iterator$(E)]; |
| 3705 return HashMapKeyIterator; | 3733 return HashMapKeyIterator; |
| 3706 }); | 3734 }); |
| 3707 let HashMapKeyIterator = HashMapKeyIterator$(dart.dynamic); | 3735 let HashMapKeyIterator = HashMapKeyIterator$(dart.dynamic); |
| 3708 let _modifications = Symbol('_modifications'); | 3736 let _modifications = Symbol('_modifications'); |
| 3709 let _value = Symbol('_value'); | 3737 let _value = Symbol('_value'); |
| 3710 let _newLinkedCell = Symbol('_newLinkedCell'); | 3738 let _newLinkedCell = Symbol('_newLinkedCell'); |
| 3711 let _unlinkCell = Symbol('_unlinkCell'); | 3739 let _unlinkCell = Symbol('_unlinkCell'); |
| 3712 let _modified = Symbol('_modified'); | 3740 let _modified = Symbol('_modified'); |
| 3713 let _key = Symbol('_key'); | 3741 let _key = Symbol('_key'); |
| 3714 let _LinkedHashMap$ = dart.generic(function(K, V) { | 3742 let _LinkedHashMap$ = dart.generic(function(K, V) { |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3968 let table = Object.create(null); | 3996 let table = Object.create(null); |
| 3969 let temporaryKey = '<non-identifier-key>'; | 3997 let temporaryKey = '<non-identifier-key>'; |
| 3970 _LinkedHashMap[_setTableEntry](table, temporaryKey, table); | 3998 _LinkedHashMap[_setTableEntry](table, temporaryKey, table); |
| 3971 _LinkedHashMap[_deleteTableEntry](table, temporaryKey); | 3999 _LinkedHashMap[_deleteTableEntry](table, temporaryKey); |
| 3972 return table; | 4000 return table; |
| 3973 } | 4001 } |
| 3974 toString() { | 4002 toString() { |
| 3975 return Maps.mapToString(this); | 4003 return Maps.mapToString(this); |
| 3976 } | 4004 } |
| 3977 } | 4005 } |
| 4006 _LinkedHashMap[dart.implements] = [LinkedHashMap$(K, V), _js_helper.Internal
Map]; |
| 3978 return _LinkedHashMap; | 4007 return _LinkedHashMap; |
| 3979 }); | 4008 }); |
| 3980 let _LinkedHashMap = _LinkedHashMap$(dart.dynamic, dart.dynamic); | 4009 let _LinkedHashMap = _LinkedHashMap$(dart.dynamic, dart.dynamic); |
| 3981 let _LinkedIdentityHashMap$ = dart.generic(function(K, V) { | 4010 let _LinkedIdentityHashMap$ = dart.generic(function(K, V) { |
| 3982 class _LinkedIdentityHashMap extends _LinkedHashMap$(K, V) { | 4011 class _LinkedIdentityHashMap extends _LinkedHashMap$(K, V) { |
| 3983 [_computeHashCode](key) { | 4012 [_computeHashCode](key) { |
| 3984 return core.identityHashCode(key) & 0x3ffffff; | 4013 return core.identityHashCode(key) & 0x3ffffff; |
| 3985 } | 4014 } |
| 3986 [_findBucketIndex](bucket, key) { | 4015 [_findBucketIndex](bucket, key) { |
| 3987 if (bucket === null) | 4016 if (bucket === null) |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4073 let modifications = dart.as(dart.dload(this[_map], '_modifications'), co
re.int); | 4102 let modifications = dart.as(dart.dload(this[_map], '_modifications'), co
re.int); |
| 4074 while (cell !== null) { | 4103 while (cell !== null) { |
| 4075 f(dart.as(cell[_key], E)); | 4104 f(dart.as(cell[_key], E)); |
| 4076 if (modifications !== dart.dload(this[_map], '_modifications')) { | 4105 if (modifications !== dart.dload(this[_map], '_modifications')) { |
| 4077 throw new core.ConcurrentModificationError(this[_map]); | 4106 throw new core.ConcurrentModificationError(this[_map]); |
| 4078 } | 4107 } |
| 4079 cell = cell[_next]; | 4108 cell = cell[_next]; |
| 4080 } | 4109 } |
| 4081 } | 4110 } |
| 4082 } | 4111 } |
| 4112 LinkedHashMapKeyIterable[dart.implements] = [_internal.EfficientLength]; |
| 4083 return LinkedHashMapKeyIterable; | 4113 return LinkedHashMapKeyIterable; |
| 4084 }); | 4114 }); |
| 4085 let LinkedHashMapKeyIterable = LinkedHashMapKeyIterable$(dart.dynamic); | 4115 let LinkedHashMapKeyIterable = LinkedHashMapKeyIterable$(dart.dynamic); |
| 4086 let _cell = Symbol('_cell'); | 4116 let _cell = Symbol('_cell'); |
| 4087 let LinkedHashMapKeyIterator$ = dart.generic(function(E) { | 4117 let LinkedHashMapKeyIterator$ = dart.generic(function(E) { |
| 4088 class LinkedHashMapKeyIterator extends core.Object { | 4118 class LinkedHashMapKeyIterator extends core.Object { |
| 4089 LinkedHashMapKeyIterator(map$, modifications$) { | 4119 LinkedHashMapKeyIterator(map$, modifications$) { |
| 4090 this[_map] = map$; | 4120 this[_map] = map$; |
| 4091 this[_modifications] = modifications$; | 4121 this[_modifications] = modifications$; |
| 4092 this[_cell] = null; | 4122 this[_cell] = null; |
| 4093 this[_current] = null; | 4123 this[_current] = null; |
| 4094 this[_cell] = dart.as(dart.dload(this[_map], '_first'), LinkedHashMapCel
l); | 4124 this[_cell] = dart.as(dart.dload(this[_map], '_first'), LinkedHashMapCel
l); |
| 4095 } | 4125 } |
| 4096 get current() { | 4126 get current() { |
| 4097 return this[_current]; | 4127 return this[_current]; |
| 4098 } | 4128 } |
| 4099 moveNext() { | 4129 moveNext() { |
| 4100 if (this[_modifications] !== dart.dload(this[_map], '_modifications')) { | 4130 if (this[_modifications] !== dart.dload(this[_map], '_modifications')) { |
| 4101 throw new core.ConcurrentModificationError(this[_map]); | 4131 throw new core.ConcurrentModificationError(this[_map]); |
| 4102 } else if (this[_cell] === null) { | 4132 } else if (this[_cell] === null) { |
| 4103 this[_current] = null; | 4133 this[_current] = null; |
| 4104 return false; | 4134 return false; |
| 4105 } else { | 4135 } else { |
| 4106 this[_current] = dart.as(this[_cell][_key], E); | 4136 this[_current] = dart.as(this[_cell][_key], E); |
| 4107 this[_cell] = this[_cell][_next]; | 4137 this[_cell] = this[_cell][_next]; |
| 4108 return true; | 4138 return true; |
| 4109 } | 4139 } |
| 4110 } | 4140 } |
| 4111 } | 4141 } |
| 4142 LinkedHashMapKeyIterator[dart.implements] = [core.Iterator$(E)]; |
| 4112 return LinkedHashMapKeyIterator; | 4143 return LinkedHashMapKeyIterator; |
| 4113 }); | 4144 }); |
| 4114 let LinkedHashMapKeyIterator = LinkedHashMapKeyIterator$(dart.dynamic); | 4145 let LinkedHashMapKeyIterator = LinkedHashMapKeyIterator$(dart.dynamic); |
| 4115 let _elements = Symbol('_elements'); | 4146 let _elements = Symbol('_elements'); |
| 4116 let _computeElements = Symbol('_computeElements'); | 4147 let _computeElements = Symbol('_computeElements'); |
| 4117 let _isStringElement = Symbol('_isStringElement'); | 4148 let _isStringElement = Symbol('_isStringElement'); |
| 4118 let _isNumericElement = Symbol('_isNumericElement'); | 4149 let _isNumericElement = Symbol('_isNumericElement'); |
| 4119 let _contains = Symbol('_contains'); | 4150 let _contains = Symbol('_contains'); |
| 4120 let _lookup = Symbol('_lookup'); | 4151 let _lookup = Symbol('_lookup'); |
| 4121 let _HashSet$ = dart.generic(function(E) { | 4152 let _HashSet$ = dart.generic(function(E) { |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4338 return -1; | 4369 return -1; |
| 4339 } | 4370 } |
| 4340 static [_newHashTable]() { | 4371 static [_newHashTable]() { |
| 4341 let table = Object.create(null); | 4372 let table = Object.create(null); |
| 4342 let temporaryKey = '<non-identifier-key>'; | 4373 let temporaryKey = '<non-identifier-key>'; |
| 4343 _HashSet[_setTableEntry](table, temporaryKey, table); | 4374 _HashSet[_setTableEntry](table, temporaryKey, table); |
| 4344 _HashSet[_deleteTableEntry](table, temporaryKey); | 4375 _HashSet[_deleteTableEntry](table, temporaryKey); |
| 4345 return table; | 4376 return table; |
| 4346 } | 4377 } |
| 4347 } | 4378 } |
| 4379 _HashSet[dart.implements] = [HashSet$(E)]; |
| 4348 return _HashSet; | 4380 return _HashSet; |
| 4349 }); | 4381 }); |
| 4350 let _HashSet = _HashSet$(dart.dynamic); | 4382 let _HashSet = _HashSet$(dart.dynamic); |
| 4351 let _IdentityHashSet$ = dart.generic(function(E) { | 4383 let _IdentityHashSet$ = dart.generic(function(E) { |
| 4352 class _IdentityHashSet extends _HashSet$(E) { | 4384 class _IdentityHashSet extends _HashSet$(E) { |
| 4353 [_newSet]() { | 4385 [_newSet]() { |
| 4354 return new _IdentityHashSet(); | 4386 return new _IdentityHashSet(); |
| 4355 } | 4387 } |
| 4356 [_computeHashCode](key) { | 4388 [_computeHashCode](key) { |
| 4357 return core.identityHashCode(key) & 0x3ffffff; | 4389 return core.identityHashCode(key) & 0x3ffffff; |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4437 } else if (dart.notNull(offset) >= elements.length) { | 4469 } else if (dart.notNull(offset) >= elements.length) { |
| 4438 this[_current] = null; | 4470 this[_current] = null; |
| 4439 return false; | 4471 return false; |
| 4440 } else { | 4472 } else { |
| 4441 this[_current] = dart.as(elements[offset], E); | 4473 this[_current] = dart.as(elements[offset], E); |
| 4442 this[_offset] = dart.notNull(offset) + 1; | 4474 this[_offset] = dart.notNull(offset) + 1; |
| 4443 return true; | 4475 return true; |
| 4444 } | 4476 } |
| 4445 } | 4477 } |
| 4446 } | 4478 } |
| 4479 HashSetIterator[dart.implements] = [core.Iterator$(E)]; |
| 4447 return HashSetIterator; | 4480 return HashSetIterator; |
| 4448 }); | 4481 }); |
| 4449 let HashSetIterator = HashSetIterator$(dart.dynamic); | 4482 let HashSetIterator = HashSetIterator$(dart.dynamic); |
| 4450 let _unsupported = Symbol('_unsupported'); | 4483 let _unsupported = Symbol('_unsupported'); |
| 4451 let _LinkedHashSet$ = dart.generic(function(E) { | 4484 let _LinkedHashSet$ = dart.generic(function(E) { |
| 4452 class _LinkedHashSet extends _HashSetBase$(E) { | 4485 class _LinkedHashSet extends _HashSetBase$(E) { |
| 4453 _LinkedHashSet() { | 4486 _LinkedHashSet() { |
| 4454 this[_length] = 0; | 4487 this[_length] = 0; |
| 4455 this[_strings] = null; | 4488 this[_strings] = null; |
| 4456 this[_nums] = null; | 4489 this[_nums] = null; |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4708 return -1; | 4741 return -1; |
| 4709 } | 4742 } |
| 4710 static [_newHashTable]() { | 4743 static [_newHashTable]() { |
| 4711 let table = Object.create(null); | 4744 let table = Object.create(null); |
| 4712 let temporaryKey = '<non-identifier-key>'; | 4745 let temporaryKey = '<non-identifier-key>'; |
| 4713 _LinkedHashSet[_setTableEntry](table, temporaryKey, table); | 4746 _LinkedHashSet[_setTableEntry](table, temporaryKey, table); |
| 4714 _LinkedHashSet[_deleteTableEntry](table, temporaryKey); | 4747 _LinkedHashSet[_deleteTableEntry](table, temporaryKey); |
| 4715 return table; | 4748 return table; |
| 4716 } | 4749 } |
| 4717 } | 4750 } |
| 4751 _LinkedHashSet[dart.implements] = [LinkedHashSet$(E)]; |
| 4718 return _LinkedHashSet; | 4752 return _LinkedHashSet; |
| 4719 }); | 4753 }); |
| 4720 let _LinkedHashSet = _LinkedHashSet$(dart.dynamic); | 4754 let _LinkedHashSet = _LinkedHashSet$(dart.dynamic); |
| 4721 let _LinkedIdentityHashSet$ = dart.generic(function(E) { | 4755 let _LinkedIdentityHashSet$ = dart.generic(function(E) { |
| 4722 class _LinkedIdentityHashSet extends _LinkedHashSet$(E) { | 4756 class _LinkedIdentityHashSet extends _LinkedHashSet$(E) { |
| 4723 [_newSet]() { | 4757 [_newSet]() { |
| 4724 return new _LinkedIdentityHashSet(); | 4758 return new _LinkedIdentityHashSet(); |
| 4725 } | 4759 } |
| 4726 [_computeHashCode](key) { | 4760 [_computeHashCode](key) { |
| 4727 return core.identityHashCode(key) & 0x3ffffff; | 4761 return core.identityHashCode(key) & 0x3ffffff; |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4827 } else if (this[_cell] === null) { | 4861 } else if (this[_cell] === null) { |
| 4828 this[_current] = null; | 4862 this[_current] = null; |
| 4829 return false; | 4863 return false; |
| 4830 } else { | 4864 } else { |
| 4831 this[_current] = dart.as(this[_cell][_element], E); | 4865 this[_current] = dart.as(this[_cell][_element], E); |
| 4832 this[_cell] = this[_cell][_next]; | 4866 this[_cell] = this[_cell][_next]; |
| 4833 return true; | 4867 return true; |
| 4834 } | 4868 } |
| 4835 } | 4869 } |
| 4836 } | 4870 } |
| 4871 LinkedHashSetIterator[dart.implements] = [core.Iterator$(E)]; |
| 4837 return LinkedHashSetIterator; | 4872 return LinkedHashSetIterator; |
| 4838 }); | 4873 }); |
| 4839 let LinkedHashSetIterator = LinkedHashSetIterator$(dart.dynamic); | 4874 let LinkedHashSetIterator = LinkedHashSetIterator$(dart.dynamic); |
| 4840 // Exports: | 4875 // Exports: |
| 4841 exports.HashMap = HashMap; | 4876 exports.HashMap = HashMap; |
| 4842 exports.HashMap$ = HashMap$; | 4877 exports.HashMap$ = HashMap$; |
| 4843 exports.SetBase = SetBase; | 4878 exports.SetBase = SetBase; |
| 4844 exports.SetBase$ = SetBase$; | 4879 exports.SetBase$ = SetBase$; |
| 4845 exports.SetMixin = SetMixin; | 4880 exports.SetMixin = SetMixin; |
| 4846 exports.SetMixin$ = SetMixin$; | 4881 exports.SetMixin$ = SetMixin$; |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4895 exports.LinkedHashMapKeyIterable = LinkedHashMapKeyIterable; | 4930 exports.LinkedHashMapKeyIterable = LinkedHashMapKeyIterable; |
| 4896 exports.LinkedHashMapKeyIterable$ = LinkedHashMapKeyIterable$; | 4931 exports.LinkedHashMapKeyIterable$ = LinkedHashMapKeyIterable$; |
| 4897 exports.LinkedHashMapKeyIterator = LinkedHashMapKeyIterator; | 4932 exports.LinkedHashMapKeyIterator = LinkedHashMapKeyIterator; |
| 4898 exports.LinkedHashMapKeyIterator$ = LinkedHashMapKeyIterator$; | 4933 exports.LinkedHashMapKeyIterator$ = LinkedHashMapKeyIterator$; |
| 4899 exports.HashSetIterator = HashSetIterator; | 4934 exports.HashSetIterator = HashSetIterator; |
| 4900 exports.HashSetIterator$ = HashSetIterator$; | 4935 exports.HashSetIterator$ = HashSetIterator$; |
| 4901 exports.LinkedHashSetCell = LinkedHashSetCell; | 4936 exports.LinkedHashSetCell = LinkedHashSetCell; |
| 4902 exports.LinkedHashSetIterator = LinkedHashSetIterator; | 4937 exports.LinkedHashSetIterator = LinkedHashSetIterator; |
| 4903 exports.LinkedHashSetIterator$ = LinkedHashSetIterator$; | 4938 exports.LinkedHashSetIterator$ = LinkedHashSetIterator$; |
| 4904 })(collection || (collection = {})); | 4939 })(collection || (collection = {})); |
| OLD | NEW |