Class: Minjs::ECMA262::ExpDelete
- Inherits:
-
Expression
- Object
- Base
- Expression
- Minjs::ECMA262::ExpDelete
- Includes:
- UnaryOperation
- Defined in:
- lib/minjs/ecma262/expression.rb
Overview
Class of the Delete operator expression element.
Instance Attribute Summary
Attributes included from UnaryOperation
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(val) ⇒ ExpDelete
constructor
A new instance of ExpDelete.
-
#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) ⇒ ExpDelete
Returns a new instance of ExpDelete.
848 849 850 |
# File 'lib/minjs/ecma262/expression.rb', line 848 def initialize(val) @val = val end |
Instance Method Details
#priority ⇒ Fixnum
Returns expression priority.
857 858 859 |
# File 'lib/minjs/ecma262/expression.rb', line 857 def priority PRIORITY_UNARY end |
#sym ⇒ Object
symbol of expression
853 854 855 |
# File 'lib/minjs/ecma262/expression.rb', line 853 def sym "delete" end |