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