Class: AdLint::Cpp::DefineLine

Inherits:
ControlLine show all
Includes:
SymbolicElement
Defined in:
lib/adlint/cpp/syntax.rb

Instance Attribute Summary collapse

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

#inspect, #location, #short_class_name

Methods included from LocationHolder

#analysis_target?

Methods included from Visitable

#accept

Constructor Details

#initialize(keyword, id, repl_list, sym) ⇒ DefineLine

Returns a new instance of DefineLine.



355
356
357
358
359
360
# File 'lib/adlint/cpp/syntax.rb', line 355

def initialize(keyword, id, repl_list, sym)
  super(keyword)
  @identifier = id
  @replacement_list = repl_list
  @symbol = sym
end

Instance Attribute Details

#identifierObject (readonly)

Returns the value of attribute identifier.



362
363
364
# File 'lib/adlint/cpp/syntax.rb', line 362

def identifier
  @identifier
end

#replacement_listObject (readonly)

Returns the value of attribute replacement_list.



363
364
365
# File 'lib/adlint/cpp/syntax.rb', line 363

def replacement_list
  @replacement_list
end

#symbolObject (readonly)

Returns the value of attribute symbol.



364
365
366
# File 'lib/adlint/cpp/syntax.rb', line 364

def symbol
  @symbol
end