Class: Minjs::ECMA262::Literal

Inherits:
Base
  • Object
show all
Defined in:
lib/minjs/ecma262/literal.rb

Overview

Base class of ECMA262 Literal

Instance Attribute Summary

Attributes inherited from Base

#parent

Instance Method Summary collapse

Methods inherited from Base

#==, #add_remove_paren, #concat, #deep_dup, #replace, #to_js, #traverse

Instance Method Details

#lt?Boolean

true if literal is line terminator

Returns:



13
14
15
# File 'lib/minjs/ecma262/literal.rb', line 13

def lt?
  false
end

#priorityFixnum

Returns expression priority.

Returns:

  • (Fixnum)

    expression priority



24
25
26
# File 'lib/minjs/ecma262/literal.rb', line 24

def priority
  PRIORITY_PRIMARY
end

#side_effect?Boolean

Returns this node has side effect or not.

Returns:



19
20
21
# File 'lib/minjs/ecma262/literal.rb', line 19

def side_effect?
  true
end

#ws?Boolean

true if literal is white space

Returns:



8
9
10
# File 'lib/minjs/ecma262/literal.rb', line 8

def ws?
  false
end