Class: AdLint::Cc1::TypeDeclaration

Inherits:
SyntaxNode show all
Includes:
SymbolicElement
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 SymbolicElement

#mark_as_referred_by

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(sym) ⇒ TypeDeclaration

Returns a new instance of TypeDeclaration.



2517
2518
2519
2520
# File 'lib/adlint/cc1/syntax.rb', line 2517

def initialize(sym)
  super()
  @symbol = sym
end

Instance Attribute Details

#symbolObject (readonly)

Returns the value of attribute symbol.



2522
2523
2524
# File 'lib/adlint/cc1/syntax.rb', line 2522

def symbol
  @symbol
end