Class: Rubycc::Front::AST::ArrayDesignator
- Inherits:
-
Data
- Object
- Data
- Rubycc::Front::AST::ArrayDesignator
- Defined in:
- lib/rubycc/front/ast.rb
Overview
An array designator "[constant-expression]" (6.7.9). index is the
bracketed constant folded to a Ruby Integer at parse time; token is
the "[" for diagnostics (an out-of-range index).
Instance Attribute Summary collapse
-
#index ⇒ Object
readonly
Returns the value of attribute index.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Instance Attribute Details
#index ⇒ Object (readonly)
Returns the value of attribute index
118 119 120 |
# File 'lib/rubycc/front/ast.rb', line 118 def index @index end |
#token ⇒ Object (readonly)
Returns the value of attribute token
118 119 120 |
# File 'lib/rubycc/front/ast.rb', line 118 def token @token end |