Sha256: de6cf5af07d720f459ee6f3ae7bb80367da51d84b618e4b1317d65df9566e043

Contents?: true

Size: 697 Bytes

Versions: 3

Compression:

Stored size: 697 Bytes

Contents

$traceurRuntime.ModuleStore.getAnonymousModule(function() {
  "use strict";
  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 {};
});

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