Class: Rubycc::Front::AST::MemberAccess
- Inherits:
-
Data
- Object
- Data
- Rubycc::Front::AST::MemberAccess
- Defined in:
- lib/rubycc/front/ast.rb
Overview
A struct member access. base is the postfix-expression on the left,
member the identifier String on the right and arrow false for the
"." form (base is the struct itself) or true for the "->" form (base is
a pointer to the struct, so "p->m" means "(*p).m"). Both forms are
lvalues: the generator lowers either to the base struct's address plus
the member's constant offset, then reads or writes through it.
Instance Attribute Summary collapse
-
#arrow ⇒ Object
readonly
Returns the value of attribute arrow.
-
#base ⇒ Object
readonly
Returns the value of attribute base.
-
#member ⇒ Object
readonly
Returns the value of attribute member.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Instance Attribute Details
#arrow ⇒ Object (readonly)
Returns the value of attribute arrow
138 139 140 |
# File 'lib/rubycc/front/ast.rb', line 138 def arrow @arrow end |
#base ⇒ Object (readonly)
Returns the value of attribute base
138 139 140 |
# File 'lib/rubycc/front/ast.rb', line 138 def base @base end |
#member ⇒ Object (readonly)
Returns the value of attribute member
138 139 140 |
# File 'lib/rubycc/front/ast.rb', line 138 def member @member end |
#token ⇒ Object (readonly)
Returns the value of attribute token
138 139 140 |
# File 'lib/rubycc/front/ast.rb', line 138 def token @token end |