Class: AdLint::Cc1::Definition
- Inherits:
-
SyntaxNode
- Object
- SyntaxNode
- AdLint::Cc1::Definition
- Includes:
- DeclarationSpecifiersHolder
- Defined in:
- lib/adlint/cc1/syntax.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#declaration_specifiers ⇒ Object
readonly
Returns the value of attribute declaration_specifiers.
-
#type ⇒ Object
Returns the value of attribute type.
Attributes inherited from SyntaxNode
#head_token, #subsequent_sequence_point, #tail_token
Instance Method Summary collapse
-
#initialize(dcl_specs) ⇒ Definition
constructor
A new instance of Definition.
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
Methods included from Visitable
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_specifiers ⇒ Object (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 |
#type ⇒ Object
Returns the value of attribute type.
2480 2481 2482 |
# File 'lib/adlint/cc1/syntax.rb', line 2480 def type @type end |