Class: Minjs::ECMA262::ExpPreInc
- Inherits:
-
Expression
- Object
- Base
- Expression
- Minjs::ECMA262::ExpPreInc
- Includes:
- UnaryOperation
- Defined in:
- lib/minjs/ecma262/expression.rb
Overview
Class of the Prefix Increment 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) ⇒ ExpPreInc
constructor
A new instance of ExpPreInc.
-
#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) ⇒ ExpPreInc
Returns a new instance of ExpPreInc.
919 920 921 |
# File 'lib/minjs/ecma262/expression.rb', line 919 def initialize(val) @val = val end |
Instance Method Details
#ecma262_typeof ⇒ Symbol
return results of ‘typeof’ operator.
936 937 938 |
# File 'lib/minjs/ecma262/expression.rb', line 936 def ecma262_typeof :number end |
#priority ⇒ Fixnum
Returns expression priority.
929 930 931 |
# File 'lib/minjs/ecma262/expression.rb', line 929 def priority PRIORITY_UNARY end |
#sym ⇒ Object
symbol of expression
924 925 926 |
# File 'lib/minjs/ecma262/expression.rb', line 924 def sym "++" end |