Sha256: d13d342798955de9897cef14e8cd07edf24ed7ed71f5b3bc7137f2988c820ccf

Contents?: true

Size: 462 Bytes

Versions: 3

Compression:

Stored size: 462 Bytes

Contents

use :node;

var Node = module.require('./Node').Node;

fn ImportNamespaceSpecifier(id)
  extends Node {
  
  this.type = "ImportNamespaceSpecifier";
  
  this.id = id;
  this.id.parent = this;
}

ImportNamespaceSpecifier.prototype.codegen = () -> {
  if !super.codegen() {
    return;
  }
  
  this.id = this.id.codegen(false);
  this.getContext().node.defineIdentifier(this.id);
  
  return this;
};

exports.ImportNamespaceSpecifier = ImportNamespaceSpecifier;

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spider-src-0.1.7 lib/spider-src/support/spider/src/ast/ImportNamespaceSpecifier.spider
spider-src-0.1.6 lib/spider-src/support/spider/src/ast/ImportNamespaceSpecifier.spider
spider-src-0.1.5 lib/spider-src/support/spider/src/ast/ImportNamespaceSpecifier.spider