Sha256: da44812f73e9d01ee22f5e60411bfc64b7d476f0069368ad7a773e78d647d917

Contents?: true

Size: 1016 Bytes

Versions: 3

Compression:

Stored size: 1016 Bytes

Contents

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

//# sourceMappingURL=IfStatement.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/IfStatement.js
spider-src-0.1.6 lib/spider-src/support/spider/lib/ast/statements/IfStatement.js
spider-src-0.1.5 lib/spider-src/support/spider/lib/ast/statements/IfStatement.js