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" + '');