| 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 12443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12454 Value.call(this, type, null, span); | 12454 Value.call(this, type, null, span); |
| 12455 } | 12455 } |
| 12456 PureStaticValue.prototype.get$isConst = function() { return this.isConst; }; | 12456 PureStaticValue.prototype.get$isConst = function() { return this.isConst; }; |
| 12457 PureStaticValue.prototype.set$isConst = function(value) { return this.isConst =
value; }; | 12457 PureStaticValue.prototype.set$isConst = function(value) { return this.isConst =
value; }; |
| 12458 PureStaticValue.prototype.get$isType = function() { return this.isType; }; | 12458 PureStaticValue.prototype.get$isType = function() { return this.isType; }; |
| 12459 PureStaticValue.prototype.set$isType = function(value) { return this.isType = va
lue; }; | 12459 PureStaticValue.prototype.set$isType = function(value) { return this.isType = va
lue; }; |
| 12460 PureStaticValue.prototype.getMem = function(context, name, node) { | 12460 PureStaticValue.prototype.getMem = function(context, name, node) { |
| 12461 var member = this.get$type().getMember(name); | 12461 var member = this.get$type().getMember(name); |
| 12462 if ($eq(member)) { | 12462 if ($eq(member)) { |
| 12463 $globals.world.warning(("can not find \"" + name + "\" on \"" + this.get$typ
e().name + "\""), node.span); | 12463 $globals.world.warning(("can not find \"" + name + "\" on \"" + this.get$typ
e().name + "\""), node.span); |
| 12464 return null; |
| 12464 } | 12465 } |
| 12465 if (this.isType && !member.get$isStatic()) { | 12466 if (this.isType && !member.get$isStatic()) { |
| 12466 $globals.world.error("can not refer to instance member as static", node.span
); | 12467 $globals.world.error("can not refer to instance member as static", node.span
); |
| 12467 } | 12468 } |
| 12468 return member; | 12469 return member; |
| 12469 } | 12470 } |
| 12470 PureStaticValue.prototype.get_ = function(context, name, node) { | 12471 PureStaticValue.prototype.get_ = function(context, name, node) { |
| 12471 if (this.get$type().get$isVar()) return new PureStaticValue($globals.world.var
Type, node.span, false, false); | 12472 if (this.get$type().get$isVar()) return new PureStaticValue($globals.world.var
Type, node.span, false, false); |
| 12472 var member = this.getMem(context, name, node); | 12473 var member = this.getMem(context, name, node); |
| 12473 if ($eq(member)) return new PureStaticValue($globals.world.varType, node.span,
false, false); | 12474 if ($eq(member)) return new PureStaticValue($globals.world.varType, node.span,
false, false); |
| (...skipping 1815 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14289 $globals._RED_COLOR = "\x1b[31m"; | 14290 $globals._RED_COLOR = "\x1b[31m"; |
| 14290 } | 14291 } |
| 14291 var const$0000 = Object.create(_DeletedKeySentinel.prototype, {}); | 14292 var const$0000 = Object.create(_DeletedKeySentinel.prototype, {}); |
| 14292 var const$0001 = Object.create(NoMoreElementsException.prototype, {}); | 14293 var const$0001 = Object.create(NoMoreElementsException.prototype, {}); |
| 14293 var const$0002 = Object.create(EmptyQueueException.prototype, {}); | 14294 var const$0002 = Object.create(EmptyQueueException.prototype, {}); |
| 14294 var const$0006 = Object.create(IllegalAccessException.prototype, {}); | 14295 var const$0006 = Object.create(IllegalAccessException.prototype, {}); |
| 14295 var const$0007 = ImmutableList.ImmutableList$from$factory([]); | 14296 var const$0007 = ImmutableList.ImmutableList$from$factory([]); |
| 14296 var $globals = {}; | 14297 var $globals = {}; |
| 14297 $static_init(); | 14298 $static_init(); |
| 14298 main(); | 14299 main(); |
| OLD | NEW |