| 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 /** | 4 /** |
| 5 * Generates a dynamic call stub for a function. | 5 * Generates a dynamic call stub for a function. |
| 6 * Our goal is to create a stub method like this on-the-fly: | 6 * Our goal is to create a stub method like this on-the-fly: |
| 7 * function($0, $1, capture) { return this($0, $1, true, capture); } | 7 * function($0, $1, capture) { return this($0, $1, true, capture); } |
| 8 * | 8 * |
| 9 * This stub then replaces the dynamic one on Function, with one that is | 9 * This stub then replaces the dynamic one on Function, with one that is |
| 10 * specialized for that particular function, taking into account its default | 10 * specialized for that particular function, taking into account its default |
| (...skipping 3556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3567 var name = TokenKind.binaryMethodName(node.op.kind); | 3567 var name = TokenKind.binaryMethodName(node.op.kind); |
| 3568 if (node.op.kind == 49/*TokenKind.NE*/) { | 3568 if (node.op.kind == 49/*TokenKind.NE*/) { |
| 3569 name = ':ne'; | 3569 name = ':ne'; |
| 3570 } | 3570 } |
| 3571 if (name == null) { | 3571 if (name == null) { |
| 3572 $globals.world.internalError(('unimplemented binary op ' + node.op), node.
span); | 3572 $globals.world.internalError(('unimplemented binary op ' + node.op), node.
span); |
| 3573 return; | 3573 return; |
| 3574 } | 3574 } |
| 3575 return x.invoke$4(this, name, node, new Arguments(null, [y])); | 3575 return x.invoke$4(this, name, node, new Arguments(null, [y])); |
| 3576 } | 3576 } |
| 3577 else if ((assignKind != 0) && ((node.y instanceof BinaryExpression))) { |
| 3578 return this._visitAssign(assignKind, node.x, new ParenExpression(node.y, nod
e.y.span), node, to$call$1(null), isVoid); |
| 3579 } |
| 3577 else { | 3580 else { |
| 3578 return this._visitAssign(assignKind, node.x, node.y, node, to$call$1(null),
isVoid); | 3581 return this._visitAssign(assignKind, node.x, node.y, node, to$call$1(null),
isVoid); |
| 3579 } | 3582 } |
| 3580 } | 3583 } |
| 3581 MethodGenerator.prototype._visitAssign = function(kind, xn, yn, position, captur
eOriginal, isVoid) { | 3584 MethodGenerator.prototype._visitAssign = function(kind, xn, yn, position, captur
eOriginal, isVoid) { |
| 3582 if (captureOriginal == null) { | 3585 if (captureOriginal == null) { |
| 3583 captureOriginal = (function (x) { | 3586 captureOriginal = (function (x) { |
| 3584 return x; | 3587 return x; |
| 3585 }) | 3588 }) |
| 3586 ; | 3589 ; |
| (...skipping 9734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13321 $globals._NO_COLOR = '\u001b[0m'; | 13324 $globals._NO_COLOR = '\u001b[0m'; |
| 13322 $globals._RED_COLOR = '\u001b[31m'; | 13325 $globals._RED_COLOR = '\u001b[31m'; |
| 13323 } | 13326 } |
| 13324 var const$0 = new EnvMap()/*const EnvMap()*/; | 13327 var const$0 = new EnvMap()/*const EnvMap()*/; |
| 13325 var const$2 = new EmptyQueueException()/*const EmptyQueueException()*/; | 13328 var const$2 = new EmptyQueueException()/*const EmptyQueueException()*/; |
| 13326 var const$3 = new _DeletedKeySentinel()/*const _DeletedKeySentinel()*/; | 13329 var const$3 = new _DeletedKeySentinel()/*const _DeletedKeySentinel()*/; |
| 13327 var const$8 = new NoMoreElementsException()/*const NoMoreElementsException()*/; | 13330 var const$8 = new NoMoreElementsException()/*const NoMoreElementsException()*/; |
| 13328 var $globals = {}; | 13331 var $globals = {}; |
| 13329 $static_init(); | 13332 $static_init(); |
| 13330 main(); | 13333 main(); |
| OLD | NEW |