Class: Rubycc::Front::AST::Subscript
- Inherits:
-
Data
- Object
- Data
- Rubycc::Front::AST::Subscript
- Defined in:
- lib/rubycc/front/ast.rb
Overview
A subscript target[index] (postfix "[" expression "]"). Both target
and index are expression nodes; the generator lowers it as
"*(target + index)" and type-checks that target is an array/pointer.
Instance Attribute Summary collapse
-
#index ⇒ Object
readonly
Returns the value of attribute index.
-
#target ⇒ Object
readonly
Returns the value of attribute target.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Instance Attribute Details
#index ⇒ Object (readonly)
Returns the value of attribute index
130 131 132 |
# File 'lib/rubycc/front/ast.rb', line 130 def index @index end |
#target ⇒ Object (readonly)
Returns the value of attribute target
130 131 132 |
# File 'lib/rubycc/front/ast.rb', line 130 def target @target end |
#token ⇒ Object (readonly)
Returns the value of attribute token
130 131 132 |
# File 'lib/rubycc/front/ast.rb', line 130 def token @token end |