Sha256: f0d3e530c66289e3a3d0968144dd9ab573cd5ce8ad41ee332a14a9b0bb9a5e8b

Contents?: true

Size: 355 Bytes

Versions: 3

Compression:

Stored size: 355 Bytes

Contents

use :node;

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

fn NullLiteral()
  extends Node {
  
  this.type = 'Literal';
  this.value = null;
  this.raw = "null";
}

NullLiteral.prototype.codegen = () -> {
  if !super.codegen() {
    return;
  }
  
  return this;
};

NullLiteral.prototype.hasCallExpression = () -> false;

exports.NullLiteral = NullLiteral;

Version data entries

3 entries across 3 versions & 1 rubygems

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