Class: Minjs::ECMA262::Literal
- Defined in:
- lib/minjs/ecma262/literal.rb
Overview
Base class of ECMA262 Literal
Direct Known Subclasses
Boolean, DivOrRegexpLiteral, ECMA262Array, ECMA262Numeric, ECMA262Object, ECMA262RegExp, ECMA262String, IdentifierName, LineTerminator, MultiLineComment, Null, Punctuator, SingleLineComment, This, WhiteSpace
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#lt? ⇒ Boolean
true if literal is line terminator.
-
#priority ⇒ Fixnum
Expression priority.
-
#side_effect? ⇒ Boolean
Returns this node has side effect or not.
-
#ws? ⇒ Boolean
true if literal is white space.
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
13 14 15 |
# File 'lib/minjs/ecma262/literal.rb', line 13 def lt? false end |
#priority ⇒ Fixnum
Returns 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.
19 20 21 |
# File 'lib/minjs/ecma262/literal.rb', line 19 def side_effect? true end |
#ws? ⇒ Boolean
true if literal is white space
8 9 10 |
# File 'lib/minjs/ecma262/literal.rb', line 8 def ws? false end |