Class: Rubycc::Front::BitfieldInit
- Inherits:
-
Data
- Object
- Data
- Rubycc::Front::BitfieldInit
- Defined in:
- lib/rubycc/front/initializer_resolver.rb
Overview
A scalar placed into a bit-field. offset identifies the containing
storage unit; shift is the field's bit position within that unit. It
stays separate from ScalarInit because a bit-field initializer must be a
read-modify-write, not a whole-width scalar store at the member's byte.
Instance Attribute Summary collapse
-
#offset ⇒ Object
readonly
Returns the value of attribute offset.
-
#shift ⇒ Object
readonly
Returns the value of attribute shift.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
-
#width ⇒ Object
readonly
Returns the value of attribute width.
Instance Attribute Details
#offset ⇒ Object (readonly)
Returns the value of attribute offset
20 21 22 |
# File 'lib/rubycc/front/initializer_resolver.rb', line 20 def offset @offset end |
#shift ⇒ Object (readonly)
Returns the value of attribute shift
20 21 22 |
# File 'lib/rubycc/front/initializer_resolver.rb', line 20 def shift @shift end |
#type ⇒ Object (readonly)
Returns the value of attribute type
20 21 22 |
# File 'lib/rubycc/front/initializer_resolver.rb', line 20 def type @type end |
#value ⇒ Object (readonly)
Returns the value of attribute value
20 21 22 |
# File 'lib/rubycc/front/initializer_resolver.rb', line 20 def value @value end |
#width ⇒ Object (readonly)
Returns the value of attribute width
20 21 22 |
# File 'lib/rubycc/front/initializer_resolver.rb', line 20 def width @width end |