Class: AdLint::Cc1::ParameterTypeList

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

#initialize(params, have_va_list) ⇒ ParameterTypeList



3333
3334
3335
3336
3337
# File 'lib/adlint/cc1/syntax.rb', line 3333

def initialize(params, have_va_list)
  super()
  @parameters = params
  @have_va_list = have_va_list
end

Instance Attribute Details

#parametersObject (readonly)

Returns the value of attribute parameters.



3339
3340
3341
# File 'lib/adlint/cc1/syntax.rb', line 3339

def parameters
  @parameters
end

Instance Method Details

#have_va_list?Boolean



3345
3346
3347
# File 'lib/adlint/cc1/syntax.rb', line 3345

def have_va_list?
  @have_va_list
end

#inspect(indent = 0) ⇒ Object



3349
3350
3351
# File 'lib/adlint/cc1/syntax.rb', line 3349

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

#locationObject



3341
3342
3343
# File 'lib/adlint/cc1/syntax.rb', line 3341

def location
  head_location
end