Class: Minjs::ECMA262::ExpPreDec
- Inherits:
-
Expression
- Object
- Base
- Expression
- Minjs::ECMA262::ExpPreDec
- Includes:
- UnaryOperation
- Defined in:
- lib/minjs/ecma262/expression.rb
Overview
Class of the Prefix Decrement 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) ⇒ ExpPreDec
constructor
A new instance of ExpPreDec.
-
#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) ⇒ ExpPreDec
Returns a new instance of ExpPreDec.
946 947 948 |
# File 'lib/minjs/ecma262/expression.rb', line 946 def initialize(val) @val = val end |
Instance Method Details
#ecma262_typeof ⇒ Symbol
return results of ‘typeof’ operator.
963 964 965 |
# File 'lib/minjs/ecma262/expression.rb', line 963 def ecma262_typeof :number end |
#priority ⇒ Fixnum
Returns expression priority.
956 957 958 |
# File 'lib/minjs/ecma262/expression.rb', line 956 def priority PRIORITY_UNARY end |
#sym ⇒ Object
symbol of expression
951 952 953 |
# File 'lib/minjs/ecma262/expression.rb', line 951 def sym "--" end |