Class: AdLint::Cc1::Definition

Inherits:
SyntaxNode show all
Includes:
DeclarationSpecifiersHolder
Defined in:
lib/adlint/cc1/syntax.rb

Instance Attribute Summary collapse

Attributes inherited from SyntaxNode

#head_token, #subsequent_sequence_point, #tail_token

Instance Method Summary collapse

Methods included from DeclarationSpecifiersHolder

#explicitly_typed?, #function_specifier, #implicitly_typed?, #storage_class_specifier, #type_qualifiers, #type_specifiers

Methods inherited from SyntaxNode

#head_location, #inspect, #location, #short_class_name, #tail_location

Methods included from LocationHolder

#analysis_target?

Methods included from Visitable

#accept

Constructor Details

#initialize(dcl_specs) ⇒ Definition

Returns a new instance of Definition.



2474
2475
2476
2477
# File 'lib/adlint/cc1/syntax.rb', line 2474

def initialize(dcl_specs)
  @declaration_specifiers = dcl_specs
  @type = nil
end

Instance Attribute Details

#declaration_specifiersObject (readonly)

Returns the value of attribute declaration_specifiers.



2479
2480
2481
# File 'lib/adlint/cc1/syntax.rb', line 2479

def declaration_specifiers
  @declaration_specifiers
end

#typeObject

Returns the value of attribute type.



2480
2481
2482
# File 'lib/adlint/cc1/syntax.rb', line 2480

def type
  @type
end