Class: Minjs::ECMA262::ExpURShift
- Inherits:
-
Expression
- Object
- Base
- Expression
- Minjs::ECMA262::ExpURShift
- Includes:
- BinaryOperation
- Defined in:
- lib/minjs/ecma262/expression.rb
Overview
Class of the Unsigned Right Shift operator expression element.
Instance Attribute Summary
Attributes included from BinaryOperation
Attributes inherited from Base
Instance Method Summary collapse
-
#ecma262_typeof ⇒ Symbol
return results of ‘typeof’ operator.
-
#initialize(val, val2) ⇒ ExpURShift
constructor
A new instance of ExpURShift.
-
#priority ⇒ Fixnum
Expression priority.
-
#sym ⇒ Object
symbol of expression.
Methods included from BinaryOperation
#==, #add_paren, #deep_dup, #remove_paren, #replace, #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, val2) ⇒ ExpURShift
Returns a new instance of ExpURShift.
1390 1391 1392 1393 |
# File 'lib/minjs/ecma262/expression.rb', line 1390 def initialize(val, val2) @val = val @val2 = val2 end |
Instance Method Details
#ecma262_typeof ⇒ Symbol
return results of ‘typeof’ operator.
1408 1409 1410 |
# File 'lib/minjs/ecma262/expression.rb', line 1408 def ecma262_typeof :number end |
#priority ⇒ Fixnum
Returns expression priority.
1401 1402 1403 |
# File 'lib/minjs/ecma262/expression.rb', line 1401 def priority PRIORITY_SHIFT end |
#sym ⇒ Object
symbol of expression
1396 1397 1398 |
# File 'lib/minjs/ecma262/expression.rb', line 1396 def sym ">>>" end |