Sha256: 7ec0703a3f7103e72d7e1bb1a0c8b705a2e22527f16a7eaf06a4a84b4c82c977
Contents?: true
Size: 1.23 KB
Versions: 3
Compression:
Stored size: 1.23 KB
Contents
$traceurRuntime.ModuleStore.getAnonymousModule(function() { "use strict"; var Node = module.require("../Node").Node; function BlockStatement(body) { Node.call(this); this.type = "BlockStatement"; this.body = body; var i = 0; for (var $__0 = body[$traceurRuntime.toProperty(Symbol.iterator)](), $__1; !($__1 = $__0.next()).done; ) { var statement = $__1.value; { if (statement) { statement.parent = this; } else { body[i] = {type: "EmptyStatement"}; } i++; } } } BlockStatement.prototype = Object.create(Node); BlockStatement.prototype.codegen = function() { if (!Node.prototype.codegen.call(this)) { return; } var i = 0; while (i < this.body.length) { var statement = this.body[i]; if (!statement || !!statement.codeGenerated) { i++; continue; } if (typeof statement.codegen === "function" ? statement.codegen() : void 0) { this.body[this.body.indexOf(statement)] = statement; i++; } else { this.body.splice(i, 1); } } return this; }; exports.BlockStatement = BlockStatement; return {}; }); //# sourceMappingURL=BlockStatement.map
Version data entries
3 entries across 3 versions & 1 rubygems