Class: AdLint::Cc1::TypeDeclaration
- Inherits:
-
SyntaxNode
- Object
- SyntaxNode
- AdLint::Cc1::TypeDeclaration
- Includes:
- SymbolicElement
- Defined in:
- lib/adlint/cc1/syntax.rb
Direct Known Subclasses
EnumTypeDeclaration, StructTypeDeclaration, TypedefDeclaration, UnionTypeDeclaration
Instance Attribute Summary collapse
-
#symbol ⇒ Object
readonly
Returns the value of attribute symbol.
Attributes inherited from SyntaxNode
#head_token, #subsequent_sequence_point, #tail_token
Instance Method Summary collapse
-
#initialize(sym) ⇒ TypeDeclaration
constructor
A new instance of TypeDeclaration.
Methods included from SymbolicElement
Methods inherited from SyntaxNode
#head_location, #inspect, #location, #short_class_name, #tail_location
Methods included from LocationHolder
Methods included from Visitable
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
#symbol ⇒ Object (readonly)
Returns the value of attribute symbol.
2522 2523 2524 |
# File 'lib/adlint/cc1/syntax.rb', line 2522 def symbol @symbol end |