Sha256: 0a83f31c52c958c483687728696d2319e3d51c769855d1081eb665fabeb4c855
Contents?: true
Size: 627 Bytes
Versions: 3
Compression:
Stored size: 627 Bytes
Contents
use :node; var Node = module.require('./Node').Node; fn ExportSpecifier(id, alias) extends Node { this.type = "ExportSpecifier"; this.id = id; this.id.parent = this; if alias? { this.alias = alias; this.alias.parent = this; } } ExportSpecifier.prototype.codegen = () -> { if !super.codegen() { return; } this.id = this.id.codegen(false); ::Object.defineProperty(this, 'name', { value: { "type": "Identifier", "name": this.alias.name } if this.alias? else null, enumerable: true }); return this; }; exports.ExportSpecifier = ExportSpecifier;
Version data entries
3 entries across 3 versions & 1 rubygems