Class: Minjs::ECMA262::ExpVoid
- Inherits:
-
Expression
- Object
- Base
- Expression
- Minjs::ECMA262::ExpVoid
- Includes:
- UnaryOperation
- Defined in:
- lib/minjs/ecma262/expression.rb
Overview
Class of the Void operator expression element.
Instance Attribute Summary
Attributes included from UnaryOperation
Attributes inherited from Base
Instance Method Summary collapse
-
#ecma262_typeof ⇒ Symbol
return results of ‘typeof’ operator.
-
#initialize(val) ⇒ ExpVoid
constructor
A new instance of ExpVoid.
-
#priority ⇒ Fixnum
Expression priority.
-
#sym ⇒ Object
symbol of expression.
Methods included from UnaryOperation
#==, #add_paren, #deep_dup, #remove_paren, #replace, #side_effect?, #to_js, #traverse
Methods inherited from Expression
#left_hand_side_exp?, #reduce, #side_effect?
Methods inherited from Base
#==, #add_remove_paren, #concat, #deep_dup, #replace, #to_js, #traverse
Constructor Details
#initialize(val) ⇒ ExpVoid
Returns a new instance of ExpVoid.
867 868 869 |
# File 'lib/minjs/ecma262/expression.rb', line 867 def initialize(val) @val = val end |
Instance Method Details
#ecma262_typeof ⇒ Symbol
return results of ‘typeof’ operator.
883 884 885 |
# File 'lib/minjs/ecma262/expression.rb', line 883 def ecma262_typeof :undefined end |
#priority ⇒ Fixnum
Returns expression priority.
876 877 878 |
# File 'lib/minjs/ecma262/expression.rb', line 876 def priority PRIORITY_UNARY end |
#sym ⇒ Object
symbol of expression
871 872 873 |
# File 'lib/minjs/ecma262/expression.rb', line 871 def sym "void" end |