Sha256: 7ae25e7bcef014e86c990e61a3499ec14f84cdb58c27fb2255595fb5558bb3f7

Contents?: true

Size: 379 Bytes

Versions: 3

Compression:

Stored size: 379 Bytes

Contents

use :node;

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

fn NumberLiteral(text)
  extends Node {
  
  this.type = 'Literal';
  this.value = ::Number(text);
  this.raw = text;
}

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

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

exports.NumberLiteral = NumberLiteral;

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/NumberLiteral.spider
spider-src-0.1.6 lib/spider-src/support/spider/src/ast/literals/NumberLiteral.spider
spider-src-0.1.5 lib/spider-src/support/spider/src/ast/literals/NumberLiteral.spider