| OLD | NEW |
| 1 #!/usr/bin/env node | 1 #!/usr/bin/env node |
| 2 // ********** Library dart:core ************** | 2 // ********** Library dart:core ************** |
| 3 // ********** Natives dart:core ************** | 3 // ********** Natives dart:core ************** |
| 4 function $throw(e) { | 4 function $throw(e) { |
| 5 // If e is not a value, we can use V8's captureStackTrace utility method. | 5 // If e is not a value, we can use V8's captureStackTrace utility method. |
| 6 // TODO(jmesserly): capture the stack trace on other JS engines. | 6 // TODO(jmesserly): capture the stack trace on other JS engines. |
| 7 if (e && (typeof e == 'object') && Error.captureStackTrace) { | 7 if (e && (typeof e == 'object') && Error.captureStackTrace) { |
| 8 // TODO(jmesserly): this will clobber the e.stack property | 8 // TODO(jmesserly): this will clobber the e.stack property |
| 9 Error.captureStackTrace(e, $throw); | 9 Error.captureStackTrace(e, $throw); |
| 10 } | 10 } |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 }; | 240 }; |
| 241 Object.prototype.isSubtypeOf$1 = function($0) { | 241 Object.prototype.isSubtypeOf$1 = function($0) { |
| 242 return this.noSuchMethod("isSubtypeOf", [$0]); | 242 return this.noSuchMethod("isSubtypeOf", [$0]); |
| 243 }; | 243 }; |
| 244 Object.prototype.iterator$0 = function() { | 244 Object.prototype.iterator$0 = function() { |
| 245 return this.noSuchMethod("iterator", []); | 245 return this.noSuchMethod("iterator", []); |
| 246 }; | 246 }; |
| 247 Object.prototype.last$0 = function() { | 247 Object.prototype.last$0 = function() { |
| 248 return this.noSuchMethod("last", []); | 248 return this.noSuchMethod("last", []); |
| 249 }; | 249 }; |
| 250 Object.prototype.map$1 = function($0) { |
| 251 return this.noSuchMethod("map", [$0]); |
| 252 }; |
| 250 Object.prototype.markUsed$0 = function() { | 253 Object.prototype.markUsed$0 = function() { |
| 251 return this.noSuchMethod("markUsed", []); | 254 return this.noSuchMethod("markUsed", []); |
| 252 }; | 255 }; |
| 253 Object.prototype.namesInOrder$1 = function($0) { | 256 Object.prototype.namesInOrder$1 = function($0) { |
| 254 return this.noSuchMethod("namesInOrder", [$0]); | 257 return this.noSuchMethod("namesInOrder", [$0]); |
| 255 }; | 258 }; |
| 256 Object.prototype.needsConversion$1 = function($0) { | 259 Object.prototype.needsConversion$1 = function($0) { |
| 257 return this.noSuchMethod("needsConversion", [$0]); | 260 return this.noSuchMethod("needsConversion", [$0]); |
| 258 }; | 261 }; |
| 259 Object.prototype.next$0 = function() { | 262 Object.prototype.next$0 = function() { |
| (...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 593 ListFactory.prototype.filter$1 = function($0) { | 596 ListFactory.prototype.filter$1 = function($0) { |
| 594 return this.filter(to$call$1($0)); | 597 return this.filter(to$call$1($0)); |
| 595 }; | 598 }; |
| 596 ListFactory.prototype.forEach$1 = function($0) { | 599 ListFactory.prototype.forEach$1 = function($0) { |
| 597 return this.forEach(to$call$1($0)); | 600 return this.forEach(to$call$1($0)); |
| 598 }; | 601 }; |
| 599 ListFactory.prototype.indexOf$1 = ListFactory.prototype.indexOf; | 602 ListFactory.prototype.indexOf$1 = ListFactory.prototype.indexOf; |
| 600 ListFactory.prototype.isEmpty$0 = ListFactory.prototype.isEmpty; | 603 ListFactory.prototype.isEmpty$0 = ListFactory.prototype.isEmpty; |
| 601 ListFactory.prototype.iterator$0 = ListFactory.prototype.iterator; | 604 ListFactory.prototype.iterator$0 = ListFactory.prototype.iterator; |
| 602 ListFactory.prototype.last$0 = ListFactory.prototype.last; | 605 ListFactory.prototype.last$0 = ListFactory.prototype.last; |
| 606 ListFactory.prototype.map$1 = function($0) { |
| 607 return this.map(to$call$1($0)); |
| 608 }; |
| 603 ListFactory.prototype.removeLast$0 = ListFactory.prototype.removeLast; | 609 ListFactory.prototype.removeLast$0 = ListFactory.prototype.removeLast; |
| 604 ListFactory.prototype.some$1 = function($0) { | 610 ListFactory.prototype.some$1 = function($0) { |
| 605 return this.some(to$call$1($0)); | 611 return this.some(to$call$1($0)); |
| 606 }; | 612 }; |
| 607 ListFactory.prototype.sort$1 = function($0) { | 613 ListFactory.prototype.sort$1 = function($0) { |
| 608 return this.sort(to$call$2($0)); | 614 return this.sort(to$call$2($0)); |
| 609 }; | 615 }; |
| 610 ListFactory_E = ListFactory; | 616 ListFactory_E = ListFactory; |
| 611 ListFactory_K = ListFactory; | 617 ListFactory_K = ListFactory; |
| 612 ListFactory_dart_core_String = ListFactory; | 618 ListFactory_dart_core_String = ListFactory; |
| (...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1094 $this.add(value); | 1100 $this.add(value); |
| 1095 } | 1101 } |
| 1096 ); | 1102 ); |
| 1097 } | 1103 } |
| 1098 HashSetImplementation.prototype.forEach = function(f) { | 1104 HashSetImplementation.prototype.forEach = function(f) { |
| 1099 this._backingMap.forEach(function _(key, value) { | 1105 this._backingMap.forEach(function _(key, value) { |
| 1100 f(key); | 1106 f(key); |
| 1101 } | 1107 } |
| 1102 ); | 1108 ); |
| 1103 } | 1109 } |
| 1110 HashSetImplementation.prototype.map = function(f) { |
| 1111 var result = new HashSetImplementation(); |
| 1112 this._backingMap.forEach(function _(key, value) { |
| 1113 result.add(f(key)); |
| 1114 } |
| 1115 ); |
| 1116 return result; |
| 1117 } |
| 1104 HashSetImplementation.prototype.filter = function(f) { | 1118 HashSetImplementation.prototype.filter = function(f) { |
| 1105 var result = new HashSetImplementation(); | 1119 var result = new HashSetImplementation(); |
| 1106 this._backingMap.forEach(function _(key, value) { | 1120 this._backingMap.forEach(function _(key, value) { |
| 1107 if (f(key)) result.add(key); | 1121 if (f(key)) result.add(key); |
| 1108 } | 1122 } |
| 1109 ); | 1123 ); |
| 1110 return result; | 1124 return result; |
| 1111 } | 1125 } |
| 1112 HashSetImplementation.prototype.every = function(f) { | 1126 HashSetImplementation.prototype.every = function(f) { |
| 1113 var keys = this._backingMap.getKeys(); | 1127 var keys = this._backingMap.getKeys(); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 1133 return this.every(to$call$1($0)); | 1147 return this.every(to$call$1($0)); |
| 1134 }; | 1148 }; |
| 1135 HashSetImplementation.prototype.filter$1 = function($0) { | 1149 HashSetImplementation.prototype.filter$1 = function($0) { |
| 1136 return this.filter(to$call$1($0)); | 1150 return this.filter(to$call$1($0)); |
| 1137 }; | 1151 }; |
| 1138 HashSetImplementation.prototype.forEach$1 = function($0) { | 1152 HashSetImplementation.prototype.forEach$1 = function($0) { |
| 1139 return this.forEach(to$call$1($0)); | 1153 return this.forEach(to$call$1($0)); |
| 1140 }; | 1154 }; |
| 1141 HashSetImplementation.prototype.isEmpty$0 = HashSetImplementation.prototype.isEm
pty; | 1155 HashSetImplementation.prototype.isEmpty$0 = HashSetImplementation.prototype.isEm
pty; |
| 1142 HashSetImplementation.prototype.iterator$0 = HashSetImplementation.prototype.ite
rator; | 1156 HashSetImplementation.prototype.iterator$0 = HashSetImplementation.prototype.ite
rator; |
| 1157 HashSetImplementation.prototype.map$1 = function($0) { |
| 1158 return this.map(to$call$1($0)); |
| 1159 }; |
| 1143 HashSetImplementation.prototype.some$1 = function($0) { | 1160 HashSetImplementation.prototype.some$1 = function($0) { |
| 1144 return this.some(to$call$1($0)); | 1161 return this.some(to$call$1($0)); |
| 1145 }; | 1162 }; |
| 1146 // ********** Code for HashSetImplementation_E ************** | 1163 // ********** Code for HashSetImplementation_E ************** |
| 1147 $inherits(HashSetImplementation_E, HashSetImplementation); | 1164 $inherits(HashSetImplementation_E, HashSetImplementation); |
| 1148 function HashSetImplementation_E() { | 1165 function HashSetImplementation_E() { |
| 1149 // Initializers done | 1166 // Initializers done |
| 1150 this._backingMap = new HashMapImplementation_E$E(); | 1167 this._backingMap = new HashMapImplementation_E$E(); |
| 1151 } | 1168 } |
| 1152 // ********** Code for HashSetImplementation_Library ************** | 1169 // ********** Code for HashSetImplementation_Library ************** |
| (...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1465 } | 1482 } |
| 1466 DoubleLinkedQueue.prototype.some = function(f) { | 1483 DoubleLinkedQueue.prototype.some = function(f) { |
| 1467 var entry = this._sentinel._next; | 1484 var entry = this._sentinel._next; |
| 1468 while (entry !== this._sentinel) { | 1485 while (entry !== this._sentinel) { |
| 1469 var nextEntry = entry._next; | 1486 var nextEntry = entry._next; |
| 1470 if (f(entry._element)) return true; | 1487 if (f(entry._element)) return true; |
| 1471 entry = nextEntry; | 1488 entry = nextEntry; |
| 1472 } | 1489 } |
| 1473 return false; | 1490 return false; |
| 1474 } | 1491 } |
| 1492 DoubleLinkedQueue.prototype.map = function(f) { |
| 1493 var other = new DoubleLinkedQueue(); |
| 1494 var entry = this._sentinel._next; |
| 1495 while (entry !== this._sentinel) { |
| 1496 var nextEntry = entry._next; |
| 1497 other.addLast(f(entry._element)); |
| 1498 entry = nextEntry; |
| 1499 } |
| 1500 return other; |
| 1501 } |
| 1475 DoubleLinkedQueue.prototype.filter = function(f) { | 1502 DoubleLinkedQueue.prototype.filter = function(f) { |
| 1476 var other = new DoubleLinkedQueue(); | 1503 var other = new DoubleLinkedQueue(); |
| 1477 var entry = this._sentinel._next; | 1504 var entry = this._sentinel._next; |
| 1478 while (entry !== this._sentinel) { | 1505 while (entry !== this._sentinel) { |
| 1479 var nextEntry = entry._next; | 1506 var nextEntry = entry._next; |
| 1480 if (f(entry._element)) other.addLast(entry._element); | 1507 if (f(entry._element)) other.addLast(entry._element); |
| 1481 entry = nextEntry; | 1508 entry = nextEntry; |
| 1482 } | 1509 } |
| 1483 return other; | 1510 return other; |
| 1484 } | 1511 } |
| 1485 DoubleLinkedQueue.prototype.iterator = function() { | 1512 DoubleLinkedQueue.prototype.iterator = function() { |
| 1486 return new _DoubleLinkedQueueIterator_E(this._sentinel); | 1513 return new _DoubleLinkedQueueIterator_E(this._sentinel); |
| 1487 } | 1514 } |
| 1488 DoubleLinkedQueue.prototype.add$1 = DoubleLinkedQueue.prototype.add; | 1515 DoubleLinkedQueue.prototype.add$1 = DoubleLinkedQueue.prototype.add; |
| 1489 DoubleLinkedQueue.prototype.addAll$1 = DoubleLinkedQueue.prototype.addAll; | 1516 DoubleLinkedQueue.prototype.addAll$1 = DoubleLinkedQueue.prototype.addAll; |
| 1490 DoubleLinkedQueue.prototype.every$1 = function($0) { | 1517 DoubleLinkedQueue.prototype.every$1 = function($0) { |
| 1491 return this.every(to$call$1($0)); | 1518 return this.every(to$call$1($0)); |
| 1492 }; | 1519 }; |
| 1493 DoubleLinkedQueue.prototype.filter$1 = function($0) { | 1520 DoubleLinkedQueue.prototype.filter$1 = function($0) { |
| 1494 return this.filter(to$call$1($0)); | 1521 return this.filter(to$call$1($0)); |
| 1495 }; | 1522 }; |
| 1496 DoubleLinkedQueue.prototype.forEach$1 = function($0) { | 1523 DoubleLinkedQueue.prototype.forEach$1 = function($0) { |
| 1497 return this.forEach(to$call$1($0)); | 1524 return this.forEach(to$call$1($0)); |
| 1498 }; | 1525 }; |
| 1499 DoubleLinkedQueue.prototype.isEmpty$0 = DoubleLinkedQueue.prototype.isEmpty; | 1526 DoubleLinkedQueue.prototype.isEmpty$0 = DoubleLinkedQueue.prototype.isEmpty; |
| 1500 DoubleLinkedQueue.prototype.iterator$0 = DoubleLinkedQueue.prototype.iterator; | 1527 DoubleLinkedQueue.prototype.iterator$0 = DoubleLinkedQueue.prototype.iterator; |
| 1501 DoubleLinkedQueue.prototype.last$0 = DoubleLinkedQueue.prototype.last; | 1528 DoubleLinkedQueue.prototype.last$0 = DoubleLinkedQueue.prototype.last; |
| 1529 DoubleLinkedQueue.prototype.map$1 = function($0) { |
| 1530 return this.map(to$call$1($0)); |
| 1531 }; |
| 1502 DoubleLinkedQueue.prototype.removeLast$0 = DoubleLinkedQueue.prototype.removeLas
t; | 1532 DoubleLinkedQueue.prototype.removeLast$0 = DoubleLinkedQueue.prototype.removeLas
t; |
| 1503 DoubleLinkedQueue.prototype.some$1 = function($0) { | 1533 DoubleLinkedQueue.prototype.some$1 = function($0) { |
| 1504 return this.some(to$call$1($0)); | 1534 return this.some(to$call$1($0)); |
| 1505 }; | 1535 }; |
| 1506 // ********** Code for DoubleLinkedQueue_E ************** | 1536 // ********** Code for DoubleLinkedQueue_E ************** |
| 1507 $inherits(DoubleLinkedQueue_E, DoubleLinkedQueue); | 1537 $inherits(DoubleLinkedQueue_E, DoubleLinkedQueue); |
| 1508 function DoubleLinkedQueue_E() {} | 1538 function DoubleLinkedQueue_E() {} |
| 1509 // ********** Code for DoubleLinkedQueue_KeyValuePair_K$V ************** | 1539 // ********** Code for DoubleLinkedQueue_KeyValuePair_K$V ************** |
| 1510 $inherits(DoubleLinkedQueue_KeyValuePair_K$V, DoubleLinkedQueue); | 1540 $inherits(DoubleLinkedQueue_KeyValuePair_K$V, DoubleLinkedQueue); |
| 1511 function DoubleLinkedQueue_KeyValuePair_K$V() { | 1541 function DoubleLinkedQueue_KeyValuePair_K$V() { |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1750 } | 1780 } |
| 1751 return true; | 1781 return true; |
| 1752 } | 1782 } |
| 1753 Collections.filter = function(source, destination, f) { | 1783 Collections.filter = function(source, destination, f) { |
| 1754 for (var $$i = source.iterator(); $$i.hasNext$0(); ) { | 1784 for (var $$i = source.iterator(); $$i.hasNext$0(); ) { |
| 1755 var e = $$i.next$0(); | 1785 var e = $$i.next$0(); |
| 1756 if (f(e)) destination.add(e); | 1786 if (f(e)) destination.add(e); |
| 1757 } | 1787 } |
| 1758 return destination; | 1788 return destination; |
| 1759 } | 1789 } |
| 1790 Collections.map = function(source, destination, f) { |
| 1791 for (var $$i = source.iterator(); $$i.hasNext$0(); ) { |
| 1792 var e = $$i.next$0(); |
| 1793 destination.add(f(e)); |
| 1794 } |
| 1795 return destination; |
| 1796 } |
| 1760 // ********** Code for _Worker ************** | 1797 // ********** Code for _Worker ************** |
| 1761 // ********** Code for _ArgumentMismatchException ************** | 1798 // ********** Code for _ArgumentMismatchException ************** |
| 1762 $inherits(_ArgumentMismatchException, ClosureArgumentMismatchException); | 1799 $inherits(_ArgumentMismatchException, ClosureArgumentMismatchException); |
| 1763 function _ArgumentMismatchException(_message) { | 1800 function _ArgumentMismatchException(_message) { |
| 1764 this._dart_coreimpl_message = _message; | 1801 this._dart_coreimpl_message = _message; |
| 1765 // Initializers done | 1802 // Initializers done |
| 1766 ClosureArgumentMismatchException.call(this); | 1803 ClosureArgumentMismatchException.call(this); |
| 1767 } | 1804 } |
| 1768 _ArgumentMismatchException.prototype.toString = function() { | 1805 _ArgumentMismatchException.prototype.toString = function() { |
| 1769 return ("Closure argument mismatch: " + this._dart_coreimpl_message); | 1806 return ("Closure argument mismatch: " + this._dart_coreimpl_message); |
| (...skipping 12019 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13789 $globals._RED_COLOR = '\u001b[31m'; | 13826 $globals._RED_COLOR = '\u001b[31m'; |
| 13790 } | 13827 } |
| 13791 var const$1 = new EmptyQueueException()/*const EmptyQueueException()*/; | 13828 var const$1 = new EmptyQueueException()/*const EmptyQueueException()*/; |
| 13792 var const$126 = new IllegalAccessException()/*const IllegalAccessException()*/; | 13829 var const$126 = new IllegalAccessException()/*const IllegalAccessException()*/; |
| 13793 var const$127 = ImmutableList.ImmutableList$from$factory([])/*const []*/; | 13830 var const$127 = ImmutableList.ImmutableList$from$factory([])/*const []*/; |
| 13794 var const$2 = new _DeletedKeySentinel()/*const _DeletedKeySentinel()*/; | 13831 var const$2 = new _DeletedKeySentinel()/*const _DeletedKeySentinel()*/; |
| 13795 var const$7 = new NoMoreElementsException()/*const NoMoreElementsException()*/; | 13832 var const$7 = new NoMoreElementsException()/*const NoMoreElementsException()*/; |
| 13796 var $globals = {}; | 13833 var $globals = {}; |
| 13797 $static_init(); | 13834 $static_init(); |
| 13798 main(); | 13835 main(); |
| OLD | NEW |