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 4098 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4109 $globals.world.internalError(('unimplemented: unary ' + node.op), node.s
pan); | 4109 $globals.world.internalError(('unimplemented: unary ' + node.op), node.s
pan); |
4110 } | 4110 } |
4111 $throw(new FallThroughError()); | 4111 $throw(new FallThroughError()); |
4112 | 4112 |
4113 default: | 4113 default: |
4114 | 4114 |
4115 $globals.world.internalError(('unimplemented: ' + node.op), node.span); | 4115 $globals.world.internalError(('unimplemented: ' + node.op), node.span); |
4116 | 4116 |
4117 } | 4117 } |
4118 } | 4118 } |
| 4119 MethodGenerator.prototype.visitDeclaredIdentifier = function(node) { |
| 4120 $globals.world.error('Expected expression', node.span); |
| 4121 } |
4119 MethodGenerator.prototype.visitAwaitExpression = function(node) { | 4122 MethodGenerator.prototype.visitAwaitExpression = function(node) { |
4120 $globals.world.internalError('Await expressions should have been eliminated be
fore code generation', node.span); | 4123 $globals.world.internalError('Await expressions should have been eliminated be
fore code generation', node.span); |
4121 } | 4124 } |
4122 MethodGenerator.prototype.visitPostfixExpression = function(node, isVoid) { | 4125 MethodGenerator.prototype.visitPostfixExpression = function(node, isVoid) { |
4123 var $this = this; // closure support | 4126 var $this = this; // closure support |
4124 var value = this.visitValue(node.body); | 4127 var value = this.visitValue(node.body); |
4125 if (value.get$type().get$isNum() && !value.get$isFinal()) { | 4128 if (value.get$type().get$isNum() && !value.get$isFinal()) { |
4126 return new Value(value.get$type(), ('' + value.get$code() + node.op), node.s
pan, true); | 4129 return new Value(value.get$type(), ('' + value.get$code() + node.op), node.s
pan, true); |
4127 } | 4130 } |
4128 var kind = (16/*TokenKind.INCR*/ == node.op.kind) ? 42/*TokenKind.ADD*/ : 43/*
TokenKind.SUB*/; | 4131 var kind = (16/*TokenKind.INCR*/ == node.op.kind) ? 42/*TokenKind.ADD*/ : 43/*
TokenKind.SUB*/; |
(...skipping 9657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13786 $globals._RED_COLOR = '\u001b[31m'; | 13789 $globals._RED_COLOR = '\u001b[31m'; |
13787 } | 13790 } |
13788 var const$1 = new EmptyQueueException()/*const EmptyQueueException()*/; | 13791 var const$1 = new EmptyQueueException()/*const EmptyQueueException()*/; |
13789 var const$126 = new IllegalAccessException()/*const IllegalAccessException()*/; | 13792 var const$126 = new IllegalAccessException()/*const IllegalAccessException()*/; |
13790 var const$127 = ImmutableList.ImmutableList$from$factory([])/*const []*/; | 13793 var const$127 = ImmutableList.ImmutableList$from$factory([])/*const []*/; |
13791 var const$2 = new _DeletedKeySentinel()/*const _DeletedKeySentinel()*/; | 13794 var const$2 = new _DeletedKeySentinel()/*const _DeletedKeySentinel()*/; |
13792 var const$7 = new NoMoreElementsException()/*const NoMoreElementsException()*/; | 13795 var const$7 = new NoMoreElementsException()/*const NoMoreElementsException()*/; |
13793 var $globals = {}; | 13796 var $globals = {}; |
13794 $static_init(); | 13797 $static_init(); |
13795 main(); | 13798 main(); |
OLD | NEW |