Class: CExtractorTypes::CStatement

Inherits:
Struct
  • Object
show all
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

Instance Method Summary collapse

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_numObject

Returns the value of attribute line_num

Returns:

  • (Object)

    the current value of line_num



12
13
14
# File 'lib/ceedling/c_extractor/c_extractor_types.rb', line 12

def line_num
  @line_num
end

#textObject

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



12
13
14
# File 'lib/ceedling/c_extractor/c_extractor_types.rb', line 12

def text
  @text
end