Sha256: 0d29b6205a175c1602d2ac045020ccb9b9d66720beaf7bf1beb8e1d6234f61fe

Contents?: true

Size: 1.3 KB

Versions: 3

Compression:

Stored size: 1.3 KB

Contents

$traceurRuntime.ModuleStore.getAnonymousModule(function() {
  "use strict";
  var Node = module.require("../Node").Node;
  function ForStatement(init, test, update, body) {
    Node.call(this);
    this.type = "ForStatement";
    this.init = init;
    if (typeof this.init !== "undefined" && this.init !== null) {
      this.init.parent = this;
    }
    this.test = test;
    if (typeof this.test !== "undefined" && this.test !== null) {
      this.test.parent = this;
    }
    this.update = update;
    if (typeof this.update !== "undefined" && this.update !== null) {
      this.update.parent = this;
    }
    this.body = body;
    this.body.parent = this;
  }
  ForStatement.prototype = Object.create(Node);
  ForStatement.prototype.codegen = function() {
    if (!Node.prototype.codegen.call(this)) {
      return;
    }
    if (typeof this.init !== "undefined" && this.init !== null) {
      this.init = this.init.codegen();
    }
    if (typeof this.test !== "undefined" && this.test !== null) {
      this.test = this.test.codegen();
    }
    if (typeof this.update !== "undefined" && this.update !== null) {
      this.update = this.update.codegen();
    }
    this.body = this.body.blockWrap().codegen();
    return this;
  };
  exports.ForStatement = ForStatement;
  return {};
});

//# sourceMappingURL=ForStatement.map

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spider-src-0.1.7 lib/spider-src/support/spider/lib/ast/statements/ForStatement.js
spider-src-0.1.6 lib/spider-src/support/spider/lib/ast/statements/ForStatement.js
spider-src-0.1.5 lib/spider-src/support/spider/lib/ast/statements/ForStatement.js