Sha256: 809ae3d154356bef98dbff572ff3973b5aed33ea19e70663fd756c34d281b08d
Contents?: true
Size: 1.46 KB
Versions: 1
Compression:
Stored size: 1.46 KB
Contents
System.register("BlockStatement", [], function() { "use strict"; var __moduleName = "BlockStatement"; function require(path) { return $traceurRuntime.require("BlockStatement", path); } "use strict"; (function() { 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 {}; }); System.get("BlockStatement" + '');
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/BlockStatement.js |