Class: Minjs::ECMA262::ExpTypeof
- Inherits:
-
Expression
- Object
- Base
- Expression
- Minjs::ECMA262::ExpTypeof
- Includes:
- UnaryOperation
- Defined in:
- lib/minjs/ecma262/expression.rb
Overview
Class of the Typeof 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) ⇒ ExpTypeof
constructor
A new instance of ExpTypeof.
-
#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) ⇒ ExpTypeof
Returns a new instance of ExpTypeof.
893 894 895 |
# File 'lib/minjs/ecma262/expression.rb', line 893 def initialize(val) @val = val end |
Instance Method Details
#ecma262_typeof ⇒ Symbol
return results of ‘typeof’ operator.
909 910 911 |
# File 'lib/minjs/ecma262/expression.rb', line 909 def ecma262_typeof :string end |
#priority ⇒ Fixnum
Returns expression priority.
902 903 904 |
# File 'lib/minjs/ecma262/expression.rb', line 902 def priority PRIORITY_UNARY end |
#sym ⇒ Object
symbol of expression
898 899 900 |
# File 'lib/minjs/ecma262/expression.rb', line 898 def sym "typeof" end |