Class: AdLint::Cpp::FunctionLikeDefineLine

Inherits:
DefineLine show all
Defined in:
lib/adlint/cpp/syntax.rb

Instance Attribute Summary collapse

Attributes inherited from DefineLine

#identifier, #replacement_list, #symbol

Attributes inherited from ControlLine

#keyword

Instance Method Summary collapse

Methods included from SymbolicElement

#mark_as_referred_by

Methods inherited from ControlLine

#location

Methods inherited from SyntaxNode

#location, #short_class_name

Methods included from LocationHolder

#analysis_target?

Methods included from Visitable

#accept

Constructor Details

#initialize(keyword, id, id_list, repl_list, sym) ⇒ FunctionLikeDefineLine

Returns a new instance of FunctionLikeDefineLine.



383
384
385
386
# File 'lib/adlint/cpp/syntax.rb', line 383

def initialize(keyword, id, id_list, repl_list, sym)
  super(keyword, id, repl_list, sym)
  @identifier_list = id_list
end

Instance Attribute Details

#identifier_listObject (readonly)

Returns the value of attribute identifier_list.



388
389
390
# File 'lib/adlint/cpp/syntax.rb', line 388

def identifier_list
  @identifier_list
end

Instance Method Details

#have_va_list?Boolean

Returns:

  • (Boolean)


390
391
392
# File 'lib/adlint/cpp/syntax.rb', line 390

def have_va_list?
  false
end

#inspect(indent = 0) ⇒ Object



394
395
396
# File 'lib/adlint/cpp/syntax.rb', line 394

def inspect(indent = 0)
  " " * indent + "#{short_class_name} (#{identifier.inspect})"
end