Class: Minjs::ECMA262::ExpComma
- Inherits:
-
Expression
- Object
- Base
- Expression
- Minjs::ECMA262::ExpComma
- Includes:
- BinaryOperation
- Defined in:
- lib/minjs/ecma262/expression.rb
Overview
Class of comma operator ( , )
Instance Attribute Summary
Attributes included from BinaryOperation
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(val, val2) ⇒ ExpComma
constructor
A new instance of ExpComma.
-
#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) ⇒ ExpComma
Returns a new instance of ExpComma.
2231 2232 2233 2234 |
# File 'lib/minjs/ecma262/expression.rb', line 2231 def initialize(val, val2) @val = val @val2 = val2 end |
Instance Method Details
#priority ⇒ Fixnum
Returns expression priority.
2242 2243 2244 |
# File 'lib/minjs/ecma262/expression.rb', line 2242 def priority PRIORITY_COMMA end |
#sym ⇒ Object
symbol of expression
2237 2238 2239 |
# File 'lib/minjs/ecma262/expression.rb', line 2237 def sym "," end |