Class: AdLint::Cpp::PseudoObjectLikeDefineLine

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

Instance Attribute Summary

Attributes inherited from DefineLine

#identifier, #replacement_list, #symbol

Attributes inherited from ControlLine

#keyword

Instance Method Summary collapse

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(name_str) ⇒ PseudoObjectLikeDefineLine

Returns a new instance of PseudoObjectLikeDefineLine.



374
375
376
377
# File 'lib/adlint/cpp/syntax.rb', line 374

def initialize(name_str)
  super(Token.new(:DEFINE, "#define", Location.new),
        Token.new(:PP_TOKEN, name_str, Location.new), nil, nil)
end

Instance Method Details

#mark_as_referred_by(tok) ⇒ Object



379
# File 'lib/adlint/cpp/syntax.rb', line 379

def mark_as_referred_by(tok) end