Class: Rubycc::Front::ConstantEvaluator::OffsetofTerm
- Inherits:
-
Data
- Object
- Data
- Rubycc::Front::ConstantEvaluator::OffsetofTerm
- Defined in:
- lib/rubycc/front/constant_evaluator.rb
Overview
One subscript step of a __builtin_offsetof designator whose index is not
a constant expression: its contribution to the offset is the value of
index (an expression node the caller lowers) times scale, the
element's byte size.
Instance Attribute Summary collapse
-
#index ⇒ Object
readonly
Returns the value of attribute index.
-
#scale ⇒ Object
readonly
Returns the value of attribute scale.
Instance Attribute Details
#index ⇒ Object (readonly)
Returns the value of attribute index
93 94 95 |
# File 'lib/rubycc/front/constant_evaluator.rb', line 93 def index @index end |
#scale ⇒ Object (readonly)
Returns the value of attribute scale
93 94 95 |
# File 'lib/rubycc/front/constant_evaluator.rb', line 93 def scale @scale end |