Class: Minjs::ECMA262::ExpLShiftAssign
- Inherits:
-
Expression
- Object
- Base
- Expression
- Minjs::ECMA262::ExpLShiftAssign
- Includes:
- AssignmentOperation
- Defined in:
- lib/minjs/ecma262/expression.rb
Overview
Class of ‘<<=’ operator
Instance Attribute Summary
Attributes included from AssignmentOperation
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(val, val2) ⇒ ExpLShiftAssign
constructor
A new instance of ExpLShiftAssign.
-
#priority ⇒ Fixnum
Expression priority.
-
#sym ⇒ Object
symbol of expression.
Methods included from AssignmentOperation
#==, #add_paren, #deep_dup, #ecma262_typeof, #reduce, #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) ⇒ ExpLShiftAssign
Returns a new instance of ExpLShiftAssign.
2112 2113 2114 2115 |
# File 'lib/minjs/ecma262/expression.rb', line 2112 def initialize(val, val2) @val = val @val2 = val2 end |
Instance Method Details
#priority ⇒ Fixnum
Returns expression priority.
2122 2123 2124 |
# File 'lib/minjs/ecma262/expression.rb', line 2122 def priority PRIORITY_ASSIGNMENT end |
#sym ⇒ Object
symbol of expression
2118 2119 2120 |
# File 'lib/minjs/ecma262/expression.rb', line 2118 def sym "<<=" end |