Sha256: 8eb2e8f2dd6d066729d98a5ba57fc35ec850da12a7ad205da30277e1d2c18cf5

Contents?: true

Size: 1.13 KB

Versions: 1

Compression:

Stored size: 1.13 KB

Contents

System.register("ExportSpecifier", [], function() {
  "use strict";
  var __moduleName = "ExportSpecifier";
  function require(path) {
    return $traceurRuntime.require("ExportSpecifier", path);
  }
  "use strict";
  (function() {
    var Node = module.require("./Node").Node;
    function ExportSpecifier(id, alias) {
      Node.call(this);
      this.type = "ExportSpecifier";
      this.id = id;
      this.id.parent = this;
      if (typeof alias !== "undefined" && alias !== null) {
        this.alias = alias;
        this.alias.parent = this;
      }
    }
    ExportSpecifier.prototype = Object.create(Node);
    ExportSpecifier.prototype.codegen = function() {
      if (!Node.prototype.codegen.call(this)) {
        return;
      }
      this.id = this.id.codegen(false);
      Object.defineProperty(this, "name", {
        value: typeof this.alias !== "undefined" && this.alias !== null ? {
          "type": "Identifier",
          "name": this.alias.name
        } : null,
        enumerable: true
      });
      return this;
    };
    exports.ExportSpecifier = ExportSpecifier;
  }());
  return {};
});
System.get("ExportSpecifier" + '');

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