Class: AdLint::Cpp::ObjectLikeDefineLine

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 DefineLine

#initialize

Methods included from SymbolicElement

#mark_as_referred_by

Methods inherited from ControlLine

#initialize, #location

Methods inherited from SyntaxNode

#location, #short_class_name

Methods included from LocationHolder

#analysis_target?

Methods included from Visitable

#accept

Constructor Details

This class inherits a constructor from AdLint::Cpp::DefineLine

Instance Method Details

#inspect(indent = 0) ⇒ Object



368
369
370
# File 'lib/adlint/cpp/syntax.rb', line 368

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