Class: CExtractorTypes::CVariableDeclaration
- Defined in:
- lib/ceedling/c_extractor/c_extractor_types.rb
Overview
Struct representing a single parsed C variable declaration
Instance Attribute Summary collapse
-
#array_suffix ⇒ Object
Returns the value of attribute array_suffix.
-
#decorators ⇒ Object
Returns the value of attribute decorators.
-
#line_num ⇒ Object
Returns the value of attribute line_num.
-
#name ⇒ Object
Returns the value of attribute name.
-
#original ⇒ Object
Returns the value of attribute original.
-
#text ⇒ Object
Returns the value of attribute text.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(original: nil, name: nil, type: nil, array_suffix: '', decorators: [], text: nil, line_num: nil) ⇒ CVariableDeclaration
constructor
A new instance of CVariableDeclaration.
Constructor Details
#initialize(original: nil, name: nil, type: nil, array_suffix: '', decorators: [], text: nil, line_num: nil) ⇒ CVariableDeclaration
Returns a new instance of CVariableDeclaration.
117 118 119 |
# File 'lib/ceedling/c_extractor/c_extractor_types.rb', line 117 def initialize(original: nil, name: nil, type: nil, array_suffix: '', decorators: [], text: nil, line_num: nil) super end |
Instance Attribute Details
#array_suffix ⇒ Object
Returns the value of attribute array_suffix
106 107 108 |
# File 'lib/ceedling/c_extractor/c_extractor_types.rb', line 106 def array_suffix @array_suffix end |
#decorators ⇒ Object
Returns the value of attribute decorators
106 107 108 |
# File 'lib/ceedling/c_extractor/c_extractor_types.rb', line 106 def decorators @decorators end |
#line_num ⇒ Object
Returns the value of attribute line_num
106 107 108 |
# File 'lib/ceedling/c_extractor/c_extractor_types.rb', line 106 def line_num @line_num end |
#name ⇒ Object
Returns the value of attribute name
106 107 108 |
# File 'lib/ceedling/c_extractor/c_extractor_types.rb', line 106 def name @name end |
#original ⇒ Object
Returns the value of attribute original
106 107 108 |
# File 'lib/ceedling/c_extractor/c_extractor_types.rb', line 106 def original @original end |
#text ⇒ Object
Returns the value of attribute text
106 107 108 |
# File 'lib/ceedling/c_extractor/c_extractor_types.rb', line 106 def text @text end |
#type ⇒ Object
Returns the value of attribute type
106 107 108 |
# File 'lib/ceedling/c_extractor/c_extractor_types.rb', line 106 def type @type end |