Class: AdLint::Cc1::SpecifierQualifierList

Inherits:
SyntaxNode
  • Object
show all
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 inherited from SyntaxNode

#head_location, #short_class_name, #tail_location

Methods included from LocationHolder

#analysis_target?

Methods included from Visitable

#accept

Constructor Details

#initializeSpecifierQualifierList

Returns a new instance of SpecifierQualifierList.



2928
2929
2930
2931
2932
# File 'lib/adlint/cc1/syntax.rb', line 2928

def initialize
  super
  @type_specifiers = []
  @type_qualifiers = []
end

Instance Attribute Details

#type_qualifiersObject (readonly)

Returns the value of attribute type_qualifiers.



2935
2936
2937
# File 'lib/adlint/cc1/syntax.rb', line 2935

def type_qualifiers
  @type_qualifiers
end

#type_specifiersObject (readonly)

Returns the value of attribute type_specifiers.



2934
2935
2936
# File 'lib/adlint/cc1/syntax.rb', line 2934

def type_specifiers
  @type_specifiers
end

Instance Method Details

#inspect(indent = 0) ⇒ Object



2941
2942
2943
# File 'lib/adlint/cc1/syntax.rb', line 2941

def inspect(indent = 0)
  " " * indent + short_class_name
end

#locationObject



2937
2938
2939
# File 'lib/adlint/cc1/syntax.rb', line 2937

def location
  head_location
end