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

Returns a new instance of ParameterTypeList.



3314
3315
3316
3317
3318
# File 'lib/adlint/cc1/syntax.rb', line 3314

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.



3320
3321
3322
# File 'lib/adlint/cc1/syntax.rb', line 3320

def parameters
  @parameters
end

Instance Method Details

#have_va_list?Boolean

Returns:

  • (Boolean)


3326
3327
3328
# File 'lib/adlint/cc1/syntax.rb', line 3326

def have_va_list?
  @have_va_list
end

#inspect(indent = 0) ⇒ Object



3330
3331
3332
# File 'lib/adlint/cc1/syntax.rb', line 3330

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

#locationObject



3322
3323
3324
# File 'lib/adlint/cc1/syntax.rb', line 3322

def location
  head_location
end