Class: CExtractorTypes::CStatement
- Defined in:
- lib/ceedling/c_extractor/c_extractor_types.rb
Overview
Pairs a raw C statement string with its 1-based source line number. Used for macro_definitions, type_definitions, and aggregate_definitions in CModule.
Instance Attribute Summary collapse
-
#line_num ⇒ Object
Returns the value of attribute line_num.
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(text: nil, line_num: nil) ⇒ CStatement
constructor
A new instance of CStatement.
Constructor Details
#initialize(text: nil, line_num: nil) ⇒ CStatement
Returns a new instance of CStatement.
17 18 19 |
# File 'lib/ceedling/c_extractor/c_extractor_types.rb', line 17 def initialize(text: nil, line_num: nil) super end |
Instance Attribute Details
#line_num ⇒ Object
Returns the value of attribute line_num
12 13 14 |
# File 'lib/ceedling/c_extractor/c_extractor_types.rb', line 12 def line_num @line_num end |
#text ⇒ Object
Returns the value of attribute text
12 13 14 |
# File 'lib/ceedling/c_extractor/c_extractor_types.rb', line 12 def text @text end |