Class: Rubycc::Front::AST::CompoundAssignment
- Inherits:
-
Data
- Object
- Data
- Rubycc::Front::AST::CompoundAssignment
- Defined in:
- lib/rubycc/front/ast.rb
Overview
Compound assignment "target op= value". op is one of :add, :sub,
:mul, :div, :mod (the operator without its trailing "="). target is
a VariableRef, a Subscript or a dereference (Unary with op :deref); the
parser rejects any other, non-assignable target.
Instance Attribute Summary collapse
-
#op ⇒ Object
readonly
Returns the value of attribute op.
-
#target ⇒ Object
readonly
Returns the value of attribute target.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Attribute Details
#op ⇒ Object (readonly)
Returns the value of attribute op
61 62 63 |
# File 'lib/rubycc/front/ast.rb', line 61 def op @op end |
#target ⇒ Object (readonly)
Returns the value of attribute target
61 62 63 |
# File 'lib/rubycc/front/ast.rb', line 61 def target @target end |
#token ⇒ Object (readonly)
Returns the value of attribute token
61 62 63 |
# File 'lib/rubycc/front/ast.rb', line 61 def token @token end |
#value ⇒ Object (readonly)
Returns the value of attribute value
61 62 63 |
# File 'lib/rubycc/front/ast.rb', line 61 def value @value end |