Class: Minjs::ECMA262::Expression
- Defined in:
- lib/minjs/ecma262/expression.rb
Overview
Base class of ECMA262 expression element
Direct Known Subclasses
ExpAdd, ExpAddAssign, ExpAnd, ExpAndAssign, ExpAssign, ExpBitwiseNot, ExpCall, ExpComma, ExpCond, ExpDelete, ExpDiv, ExpDivAssign, ExpEq, ExpGt, ExpGtEq, ExpIn, ExpInstanceOf, ExpLShift, ExpLShiftAssign, ExpLogicalAnd, ExpLogicalNot, ExpLogicalOr, ExpLt, ExpLtEq, ExpMod, ExpModAssign, ExpMul, ExpMulAssign, ExpNegative, ExpNew, ExpNotEq, ExpOr, ExpOrAssign, ExpParen, ExpPositive, ExpPostDec, ExpPostInc, ExpPreDec, ExpPreInc, ExpProp, ExpPropBrac, ExpRShift, ExpRShiftAssign, ExpStrictEq, ExpStrictNotEq, ExpSub, ExpSubAssign, ExpTypeof, ExpURShift, ExpURShiftAssign, ExpVoid, ExpXor, ExpXorAssign
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#left_hand_side_exp? ⇒ Boolean
True if expression is kind of LeftHandSideExpression.
-
#priority ⇒ Fixnum
Expression priority.
-
#reduce(parent) ⇒ Object
reduce expression if available.
- #side_effect? ⇒ Boolean
Methods inherited from Base
#==, #add_remove_paren, #concat, #deep_dup, #replace, #to_js, #traverse
Instance Method Details
#left_hand_side_exp? ⇒ Boolean
Returns true if expression is kind of LeftHandSideExpression.
46 47 48 |
# File 'lib/minjs/ecma262/expression.rb', line 46 def left_hand_side_exp? false end |
#priority ⇒ Fixnum
Returns expression priority.
51 52 53 |
# File 'lib/minjs/ecma262/expression.rb', line 51 def priority 999 end |
#reduce(parent) ⇒ Object
reduce expression if available
42 43 |
# File 'lib/minjs/ecma262/expression.rb', line 42 def reduce(parent) end |
#side_effect? ⇒ Boolean
55 56 57 |
# File 'lib/minjs/ecma262/expression.rb', line 55 def side_effect? return true end |