Class: AdLint::Cpp::PseudoObjectLikeDefineLine
- Inherits:
-
DefineLine
- Object
- SyntaxNode
- GroupPart
- ControlLine
- DefineLine
- AdLint::Cpp::PseudoObjectLikeDefineLine
- Defined in:
- lib/adlint/cpp/syntax.rb
Instance Attribute Summary
Attributes inherited from DefineLine
#identifier, #replacement_list, #symbol
Attributes inherited from ControlLine
Instance Method Summary collapse
-
#initialize(name_str) ⇒ PseudoObjectLikeDefineLine
constructor
A new instance of PseudoObjectLikeDefineLine.
- #mark_as_referred_by(tok) ⇒ Object
Methods inherited from ControlLine
Methods inherited from SyntaxNode
#inspect, #location, #short_class_name
Methods included from LocationHolder
Methods included from Visitable
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 |