OLD | NEW |
1 var _internal; | 1 var _internal; |
2 (function(exports) { | 2 (function(exports) { |
3 'use strict'; | 3 'use strict'; |
4 class EfficientLength extends core.Object { | 4 class EfficientLength extends core.Object { |
5 } | 5 } |
6 let ListIterable$ = dart.generic(function(E) { | 6 let ListIterable$ = dart.generic(function(E) { |
7 class ListIterable extends collection.IterableBase$(E) { | 7 class ListIterable extends collection.IterableBase$(E) { |
8 ListIterable() { | 8 ListIterable() { |
9 super.IterableBase(); | 9 super.IterableBase(); |
10 } | 10 } |
(...skipping 1138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1149 } | 1149 } |
1150 static insertAllList(list, index, iterable) { | 1150 static insertAllList(list, index, iterable) { |
1151 core.RangeError.checkValueInInterval(index, 0, list.length, "index"); | 1151 core.RangeError.checkValueInInterval(index, 0, list.length, "index"); |
1152 if (!dart.is(iterable, EfficientLength)) { | 1152 if (!dart.is(iterable, EfficientLength)) { |
1153 iterable = iterable.toList({growable: false}); | 1153 iterable = iterable.toList({growable: false}); |
1154 } | 1154 } |
1155 let insertionLength = iterable.length; | 1155 let insertionLength = iterable.length; |
1156 list.length = insertionLength; | 1156 list.length = insertionLength; |
1157 list.setRange(dart.notNull(index) + dart.notNull(insertionLength), list.
length, list, index); | 1157 list.setRange(dart.notNull(index) + dart.notNull(insertionLength), list.
length, list, index); |
1158 for (let element of iterable) { | 1158 for (let element of iterable) { |
1159 list.set(((x) => index = dart.notNull(x$) + 1, x$)(index), element); | 1159 list.set(((x) => index = dart.notNull(x) + 1, x)(index), element); |
1160 } | 1160 } |
1161 } | 1161 } |
1162 static setAllList(list, index, iterable) { | 1162 static setAllList(list, index, iterable) { |
1163 core.RangeError.checkValueInInterval(index, 0, list.length, "index"); | 1163 core.RangeError.checkValueInInterval(index, 0, list.length, "index"); |
1164 for (let element of iterable) { | 1164 for (let element of iterable) { |
1165 list.set(((x) => index = dart.notNull(x$) + 1, x$)(index), element); | 1165 list.set(((x) => index = dart.notNull(x) + 1, x)(index), element); |
1166 } | 1166 } |
1167 } | 1167 } |
1168 asMapList(l) { | 1168 asMapList(l) { |
1169 return new ListMapView(dart.as(l, core.List$(T))); | 1169 return new ListMapView(dart.as(l, core.List$(T))); |
1170 } | 1170 } |
1171 static setContainsAll(set, other) { | 1171 static setContainsAll(set, other) { |
1172 for (let element of other) { | 1172 for (let element of other) { |
1173 if (!dart.notNull(set.contains(element))) | 1173 if (!dart.notNull(set.contains(element))) |
1174 return false; | 1174 return false; |
1175 } | 1175 } |
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1653 } | 1653 } |
1654 less = dart.notNull(less) + 1; | 1654 less = dart.notNull(less) + 1; |
1655 } else { | 1655 } else { |
1656 while (true) { | 1656 while (true) { |
1657 comp = dart.dinvokef(compare, a.get(great), pivot); | 1657 comp = dart.dinvokef(compare, a.get(great), pivot); |
1658 if (dart.notNull(comp) > 0) { | 1658 if (dart.notNull(comp) > 0) { |
1659 great = dart.notNull(great) - 1; | 1659 great = dart.notNull(great) - 1; |
1660 continue; | 1660 continue; |
1661 } else if (dart.notNull(comp) < 0) { | 1661 } else if (dart.notNull(comp) < 0) { |
1662 a.set(k, a.get(less)); | 1662 a.set(k, a.get(less)); |
1663 a.set(((x) => less = dart.notNull(x$) + 1, x$)(less), a.get(grea
t)); | 1663 a.set(((x) => less = dart.notNull(x) + 1, x)(less), a.get(great)
); |
1664 a.set(((x) => great = dart.notNull(x$) - 1, x$)(great), ak); | 1664 a.set(((x) => great = dart.notNull(x) - 1, x)(great), ak); |
1665 break; | 1665 break; |
1666 } else { | 1666 } else { |
1667 a.set(k, a.get(great)); | 1667 a.set(k, a.get(great)); |
1668 a.set(((x) => great = dart.notNull(x$) - 1, x$)(great), ak); | 1668 a.set(((x) => great = dart.notNull(x) - 1, x)(great), ak); |
1669 break; | 1669 break; |
1670 } | 1670 } |
1671 } | 1671 } |
1672 } | 1672 } |
1673 } | 1673 } |
1674 } else { | 1674 } else { |
1675 for (let k = less; dart.notNull(k) <= dart.notNull(great); k = dart.notN
ull(k) + 1) { | 1675 for (let k = less; dart.notNull(k) <= dart.notNull(great); k = dart.notN
ull(k) + 1) { |
1676 let ak = a.get(k); | 1676 let ak = a.get(k); |
1677 let comp_pivot1 = dart.dinvokef(compare, ak, pivot1); | 1677 let comp_pivot1 = dart.dinvokef(compare, ak, pivot1); |
1678 if (dart.notNull(comp_pivot1) < 0) { | 1678 if (dart.notNull(comp_pivot1) < 0) { |
1679 if (k !== less) { | 1679 if (k !== less) { |
1680 a.set(k, a.get(less)); | 1680 a.set(k, a.get(less)); |
1681 a.set(less, ak); | 1681 a.set(less, ak); |
1682 } | 1682 } |
1683 less = dart.notNull(less) + 1; | 1683 less = dart.notNull(less) + 1; |
1684 } else { | 1684 } else { |
1685 let comp_pivot2 = dart.dinvokef(compare, ak, pivot2); | 1685 let comp_pivot2 = dart.dinvokef(compare, ak, pivot2); |
1686 if (dart.notNull(comp_pivot2) > 0) { | 1686 if (dart.notNull(comp_pivot2) > 0) { |
1687 while (true) { | 1687 while (true) { |
1688 let comp = dart.dinvokef(compare, a.get(great), pivot2); | 1688 let comp = dart.dinvokef(compare, a.get(great), pivot2); |
1689 if (dart.notNull(comp) > 0) { | 1689 if (dart.notNull(comp) > 0) { |
1690 great = dart.notNull(great) - 1; | 1690 great = dart.notNull(great) - 1; |
1691 if (dart.notNull(great) < dart.notNull(k)) | 1691 if (dart.notNull(great) < dart.notNull(k)) |
1692 break; | 1692 break; |
1693 continue; | 1693 continue; |
1694 } else { | 1694 } else { |
1695 comp = dart.dinvokef(compare, a.get(great), pivot1); | 1695 comp = dart.dinvokef(compare, a.get(great), pivot1); |
1696 if (dart.notNull(comp) < 0) { | 1696 if (dart.notNull(comp) < 0) { |
1697 a.set(k, a.get(less)); | 1697 a.set(k, a.get(less)); |
1698 a.set(((x) => less = dart.notNull(x$) + 1, x$)(less), a.get(
great)); | 1698 a.set(((x) => less = dart.notNull(x) + 1, x)(less), a.get(gr
eat)); |
1699 a.set(((x) => great = dart.notNull(x$) - 1, x$)(great), ak); | 1699 a.set(((x) => great = dart.notNull(x) - 1, x)(great), ak); |
1700 } else { | 1700 } else { |
1701 a.set(k, a.get(great)); | 1701 a.set(k, a.get(great)); |
1702 a.set(((x) => great = dart.notNull(x$) - 1, x$)(great), ak); | 1702 a.set(((x) => great = dart.notNull(x) - 1, x)(great), ak); |
1703 } | 1703 } |
1704 break; | 1704 break; |
1705 } | 1705 } |
1706 } | 1706 } |
1707 } | 1707 } |
1708 } | 1708 } |
1709 } | 1709 } |
1710 } | 1710 } |
1711 a.set(left, a.get(dart.notNull(less) - 1)); | 1711 a.set(left, a.get(dart.notNull(less) - 1)); |
1712 a.set(dart.notNull(less) - 1, pivot1); | 1712 a.set(dart.notNull(less) - 1, pivot1); |
(...skipping 27 matching lines...) Expand all Loading... |
1740 let comp = dart.dinvokef(compare, a.get(great), pivot2); | 1740 let comp = dart.dinvokef(compare, a.get(great), pivot2); |
1741 if (comp === 0) { | 1741 if (comp === 0) { |
1742 great = dart.notNull(great) - 1; | 1742 great = dart.notNull(great) - 1; |
1743 if (dart.notNull(great) < dart.notNull(k)) | 1743 if (dart.notNull(great) < dart.notNull(k)) |
1744 break; | 1744 break; |
1745 continue; | 1745 continue; |
1746 } else { | 1746 } else { |
1747 comp = dart.dinvokef(compare, a.get(great), pivot1); | 1747 comp = dart.dinvokef(compare, a.get(great), pivot1); |
1748 if (dart.notNull(comp) < 0) { | 1748 if (dart.notNull(comp) < 0) { |
1749 a.set(k, a.get(less)); | 1749 a.set(k, a.get(less)); |
1750 a.set(((x) => less = dart.notNull(x$) + 1, x$)(less), a.get(
great)); | 1750 a.set(((x) => less = dart.notNull(x) + 1, x)(less), a.get(gr
eat)); |
1751 a.set(((x) => great = dart.notNull(x$) - 1, x$)(great), ak); | 1751 a.set(((x) => great = dart.notNull(x) - 1, x)(great), ak); |
1752 } else { | 1752 } else { |
1753 a.set(k, a.get(great)); | 1753 a.set(k, a.get(great)); |
1754 a.set(((x) => great = dart.notNull(x$) - 1, x$)(great), ak); | 1754 a.set(((x) => great = dart.notNull(x) - 1, x)(great), ak); |
1755 } | 1755 } |
1756 break; | 1756 break; |
1757 } | 1757 } |
1758 } | 1758 } |
1759 } | 1759 } |
1760 } | 1760 } |
1761 } | 1761 } |
1762 _doSort(a, less, great, compare); | 1762 _doSort(a, less, great, compare); |
1763 } else { | 1763 } else { |
1764 _doSort(a, less, great, compare); | 1764 _doSort(a, less, great, compare); |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1884 exports.ReversedListIterable$ = ReversedListIterable$; | 1884 exports.ReversedListIterable$ = ReversedListIterable$; |
1885 exports.UnmodifiableListError = UnmodifiableListError; | 1885 exports.UnmodifiableListError = UnmodifiableListError; |
1886 exports.NonGrowableListError = NonGrowableListError; | 1886 exports.NonGrowableListError = NonGrowableListError; |
1887 exports.makeListFixedLength = makeListFixedLength; | 1887 exports.makeListFixedLength = makeListFixedLength; |
1888 exports.Lists = Lists; | 1888 exports.Lists = Lists; |
1889 exports.printToConsole = printToConsole; | 1889 exports.printToConsole = printToConsole; |
1890 exports.Sort = Sort; | 1890 exports.Sort = Sort; |
1891 exports.Symbol = Symbol; | 1891 exports.Symbol = Symbol; |
1892 exports.POWERS_OF_TEN = POWERS_OF_TEN; | 1892 exports.POWERS_OF_TEN = POWERS_OF_TEN; |
1893 })(_internal || (_internal = {})); | 1893 })(_internal || (_internal = {})); |
OLD | NEW |