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.



2909
2910
2911
2912
2913
# File 'lib/adlint/cc1/syntax.rb', line 2909

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

Instance Attribute Details

#type_qualifiersObject (readonly)

Returns the value of attribute type_qualifiers.



2916
2917
2918
# File 'lib/adlint/cc1/syntax.rb', line 2916

def type_qualifiers
  @type_qualifiers
end

#type_specifiersObject (readonly)

Returns the value of attribute type_specifiers.



2915
2916
2917
# File 'lib/adlint/cc1/syntax.rb', line 2915

def type_specifiers
  @type_specifiers
end

Instance Method Details

#inspect(indent = 0) ⇒ Object



2922
2923
2924
# File 'lib/adlint/cc1/syntax.rb', line 2922

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

#locationObject



2918
2919
2920
# File 'lib/adlint/cc1/syntax.rb', line 2918

def location
  head_location
end