Sha256: 6a1db6fbf242532b11141a2079819d5e75ec5e172253bbfc81d8b37d9beadda0

Contents?: true

Size: 1.32 KB

Versions: 1

Compression:

Stored size: 1.32 KB

Contents

System.register("TryStatement", [], function() {
  "use strict";
  var __moduleName = "TryStatement";
  function require(path) {
    return $traceurRuntime.require("TryStatement", path);
  }
  "use strict";
  (function() {
    var Node = module.require("../Node").Node;
    function TryStatement(block, handler, finalizer) {
      Node.call(this);
      this.type = "TryStatement";
      this.block = block;
      this.block.parent = this;
      this.handler = handler;
      if (typeof this.handler !== "undefined" && this.handler !== null) {
        this.handler.parent = this;
      }
      this.finalizer = finalizer;
      if (typeof this.finalizer !== "undefined" && this.finalizer !== null) {
        this.finalizer.parent = this;
      }
    }
    TryStatement.prototype = Object.create(Node);
    TryStatement.prototype.codegen = function() {
      if (!Node.prototype.codegen.call(this)) {
        return;
      }
      this.block = this.block.codegen();
      if (typeof this.handler !== "undefined" && this.handler !== null) {
        this.handler = this.handler.codegen();
      }
      if (typeof this.finalizer !== "undefined" && this.finalizer !== null) {
        this.finalizer = this.finalizer.codegen();
      }
      return this;
    };
    exports.TryStatement = TryStatement;
  }());
  return {};
});
System.get("TryStatement" + '');

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