Sha256: 9972912714e64eddba5f07c0b6e9802c5941e262bd31bc369aaf0fc4d12a364b

Contents?: true

Size: 890 Bytes

Versions: 1

Compression:

Stored size: 890 Bytes

Contents

System.register("WhileStatement", [], function() {
  "use strict";
  var __moduleName = "WhileStatement";
  function require(path) {
    return $traceurRuntime.require("WhileStatement", path);
  }
  "use strict";
  (function() {
    var Node = module.require("../Node").Node;
    function WhileStatement(test, body) {
      Node.call(this);
      this.type = "WhileStatement";
      this.test = test;
      this.test.parent = this;
      this.body = body;
      this.body.parent = this;
    }
    WhileStatement.prototype = Object.create(Node);
    WhileStatement.prototype.codegen = function() {
      if (!Node.prototype.codegen.call(this)) {
        return;
      }
      this.test = this.test.codegen();
      this.body = this.body.blockWrap().codegen();
      return this;
    };
    exports.WhileStatement = WhileStatement;
  }());
  return {};
});
System.get("WhileStatement" + '');

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/WhileStatement.js