Sha256: 96a50a75d19660d92ac82ae81bf999d9eeb387f26ec7ac1711cea075a7518a11

Contents?: true

Size: 944 Bytes

Versions: 3

Compression:

Stored size: 944 Bytes

Contents

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

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