Sha256: 7ed4f25ef5f3c1cfc50be6fd0c6071b86b268ab57a472457efdef6d14586e52b
Contents?: true
Size: 1.43 KB
Versions: 1
Compression:
Stored size: 1.43 KB
Contents
System.register("NewExpression", [], function() { "use strict"; var __moduleName = "NewExpression"; function require(path) { return $traceurRuntime.require("NewExpression", path); } "use strict"; (function() { var Node = module.require("../Node").Node; function NewExpression(callee, args) { Node.call(this); this.type = "NewExpression"; this.callee = callee; this.callee.parent = this; Object.defineProperty(this, "arguments", { value: args, enumerable: true }); for (var $__0 = args[$traceurRuntime.toProperty(Symbol.iterator)](), $__1; !($__1 = $__0.next()).done; ) { var arg = $__1.value; { arg.parent = this; } } } NewExpression.prototype = Object.create(Node); NewExpression.prototype.codegen = function() { if (!Node.prototype.codegen.call(this)) { return; } this.callee = this.callee.codegen(); var args = this.arguments; var i = 0; for (var $__0 = args[$traceurRuntime.toProperty(Symbol.iterator)](), $__1; !($__1 = $__0.next()).done; ) { var arg = $__1.value; { args[i] = arg.codegen(); i++; } } return this; }; NewExpression.prototype.hasCallExpression = function() { return true; }; exports.NewExpression = NewExpression; }()); return {}; }); System.get("NewExpression" + '');
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spider-src-0.1.6 | lib/spider-src/support/spider/node_modules/spider-script/lib/ast/expressions/NewExpression.js |