Class: Chelsy::Element
Overview
Element
can have multiple Fragment
s
fragments
is an instace ofFragmentList
holdsFragment
s which stands aboveElement
.post_fragments
holdsFragment
s which stands belowElement
.
Direct Known Subclasses
BitField, Declarative, Designator, Document, EnumMember, EnumMemberList, Expr, IdentList, Initializer, InitializerList, Param, ParamList, ProtoParamList, Raw, Stmt, StructOrUnionMemberList, Type::Base
Instance Attribute Summary collapse
-
#fragments ⇒ Object
readonly
Returns the value of attribute fragments.
-
#post_fragments ⇒ Object
readonly
Returns the value of attribute post_fragments.
Instance Method Summary collapse
-
#initialize(**rest) ⇒ Element
constructor
A new instance of Element.
Constructor Details
#initialize(**rest) ⇒ Element
Returns a new instance of Element.
114 115 116 117 118 119 |
# File 'lib/chelsy/ast.rb', line 114 def initialize(**rest) @fragments = FragmentList.new @post_fragments = FragmentList.new super(**rest) end |
Instance Attribute Details
#fragments ⇒ Object (readonly)
Returns the value of attribute fragments.
112 113 114 |
# File 'lib/chelsy/ast.rb', line 112 def fragments @fragments end |
#post_fragments ⇒ Object (readonly)
Returns the value of attribute post_fragments.
112 113 114 |
# File 'lib/chelsy/ast.rb', line 112 def post_fragments @post_fragments end |