Sha256: 2bc66fd5ceeafc914733761e64bcee3d78a9b92ad915acbbb1071bd53d4a6dcb

Contents?: true

Size: 1.02 KB

Versions: 1

Compression:

Stored size: 1.02 KB

Contents

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

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