Class: Rubycc::Front::AST::IncDec
- Inherits:
-
Data
- Object
- Data
- Rubycc::Front::AST::IncDec
- Defined in:
- lib/rubycc/front/ast.rb
Overview
Prefix or postfix "++"/"--". op is :add for "++" and :sub for "--".
prefix is true for "++x"/"--x" and false for "x++"/"x--". target
is a VariableRef, a Subscript or a dereference, exactly like
CompoundAssignment.
Instance Attribute Summary collapse
-
#op ⇒ Object
readonly
Returns the value of attribute op.
-
#prefix ⇒ Object
readonly
Returns the value of attribute prefix.
-
#target ⇒ Object
readonly
Returns the value of attribute target.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Instance Attribute Details
#op ⇒ Object (readonly)
Returns the value of attribute op
67 68 69 |
# File 'lib/rubycc/front/ast.rb', line 67 def op @op end |
#prefix ⇒ Object (readonly)
Returns the value of attribute prefix
67 68 69 |
# File 'lib/rubycc/front/ast.rb', line 67 def prefix @prefix end |
#target ⇒ Object (readonly)
Returns the value of attribute target
67 68 69 |
# File 'lib/rubycc/front/ast.rb', line 67 def target @target end |
#token ⇒ Object (readonly)
Returns the value of attribute token
67 68 69 |
# File 'lib/rubycc/front/ast.rb', line 67 def token @token end |