Sha256: e05fca34d0a2652ce7096b8e75317af2c8e9aa565ce30ec5f6b50bf23e111c10
Contents?: true
Size: 1.52 KB
Versions: 1
Compression:
Stored size: 1.52 KB
Contents
System.register("ForStatement", [], function() { "use strict"; var __moduleName = "ForStatement"; function require(path) { return $traceurRuntime.require("ForStatement", path); } "use strict"; (function() { var Node = module.require("../Node").Node; function ForStatement(init, test, update, body) { Node.call(this); this.type = "ForStatement"; this.init = init; if (typeof this.init !== "undefined" && this.init !== null) { this.init.parent = this; } this.test = test; if (typeof this.test !== "undefined" && this.test !== null) { this.test.parent = this; } this.update = update; if (typeof this.update !== "undefined" && this.update !== null) { this.update.parent = this; } this.body = body; this.body.parent = this; } ForStatement.prototype = Object.create(Node); ForStatement.prototype.codegen = function() { if (!Node.prototype.codegen.call(this)) { return; } if (typeof this.init !== "undefined" && this.init !== null) { this.init = this.init.codegen(); } if (typeof this.test !== "undefined" && this.test !== null) { this.test = this.test.codegen(); } if (typeof this.update !== "undefined" && this.update !== null) { this.update = this.update.codegen(); } this.body = this.body.blockWrap().codegen(); return this; }; exports.ForStatement = ForStatement; }()); return {}; }); System.get("ForStatement" + '');
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/statements/ForStatement.js |