Sha256: 064bff03e7778761846a0bc877d9dec48fbd788268232eca4817a36599639d89

Contents?: true

Size: 384 Bytes

Versions: 3

Compression:

Stored size: 384 Bytes

Contents

use :node;

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

fn BooleanLiteral(text)
  extends Node {
  
  this.type = 'Literal';
  this.value = text == "true";
  this.raw = text;
}

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

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

exports.BooleanLiteral = BooleanLiteral;

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