Class: Minjs::ECMA262::Statement
- Defined in:
- lib/minjs/ecma262/statement.rb
Overview
Base class of ECMA262 statement element.
Direct Known Subclasses
StBlock, StBreak, StContinue, StDebugger, StDoWhile, StEmpty, StExp, StFor, StForIn, StForInVar, StForVar, StFunc, StIf, StLabelled, StReturn, StSwitch, StThrow, StTry, StTryCatch, StVar, StWhile, StWith
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#empty? ⇒ Boolean
return true if statement can convert to empty statement.
-
#priority ⇒ Fixnum
Expression priority.
-
#to_exp? ⇒ Boolean
return true if statement can convert to expression.
-
#to_return? ⇒ Boolean
return true if statement can convert to return statement.
Methods inherited from Base
#==, #add_remove_paren, #concat, #deep_dup, #replace, #to_js, #traverse
Instance Method Details
#empty? ⇒ Boolean
return true if statement can convert to empty statement.
23 24 25 |
# File 'lib/minjs/ecma262/statement.rb', line 23 def empty? false end |
#priority ⇒ Fixnum
Returns expression priority.
18 19 20 |
# File 'lib/minjs/ecma262/statement.rb', line 18 def priority 999 end |
#to_exp? ⇒ Boolean
return true if statement can convert to expression.
8 9 10 |
# File 'lib/minjs/ecma262/statement.rb', line 8 def to_exp? false end |
#to_return? ⇒ Boolean
return true if statement can convert to return statement.
13 14 15 |
# File 'lib/minjs/ecma262/statement.rb', line 13 def to_return? false end |