Class: CExtractorTypes::CVariableDeclaration

Inherits:
Struct
  • Object
show all
Defined in:
lib/ceedling/c_extractor/c_extractor_types.rb

Overview

Struct representing a single parsed C variable declaration

Instance Attribute Summary collapse

Instance Method Summary collapse

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_suffixObject

Returns the value of attribute array_suffix

Returns:

  • (Object)

    the current value of array_suffix



106
107
108
# File 'lib/ceedling/c_extractor/c_extractor_types.rb', line 106

def array_suffix
  @array_suffix
end

#decoratorsObject

Returns the value of attribute decorators

Returns:

  • (Object)

    the current value of decorators



106
107
108
# File 'lib/ceedling/c_extractor/c_extractor_types.rb', line 106

def decorators
  @decorators
end

#line_numObject

Returns the value of attribute line_num

Returns:

  • (Object)

    the current value of line_num



106
107
108
# File 'lib/ceedling/c_extractor/c_extractor_types.rb', line 106

def line_num
  @line_num
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



106
107
108
# File 'lib/ceedling/c_extractor/c_extractor_types.rb', line 106

def name
  @name
end

#originalObject

Returns the value of attribute original

Returns:

  • (Object)

    the current value of original



106
107
108
# File 'lib/ceedling/c_extractor/c_extractor_types.rb', line 106

def original
  @original
end

#textObject

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



106
107
108
# File 'lib/ceedling/c_extractor/c_extractor_types.rb', line 106

def text
  @text
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



106
107
108
# File 'lib/ceedling/c_extractor/c_extractor_types.rb', line 106

def type
  @type
end