Class: AdLint::Cpp::UserIncludeLine

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

Direct Known Subclasses

UserIncludeNextLine

Instance Attribute Summary

Attributes inherited from IncludeLine

#fpath, #header_name, #include_depth

Attributes inherited from ControlLine

#keyword

Instance Method Summary collapse

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, usr_header_name, include_depth) ⇒ UserIncludeLine

Returns a new instance of UserIncludeLine.



329
330
331
# File 'lib/adlint/cpp/syntax.rb', line 329

def initialize(keyword, usr_header_name, include_depth)
  super(keyword, usr_header_name, include_depth)
end

Instance Method Details

#inspect(indent = 0) ⇒ Object



333
334
335
# File 'lib/adlint/cpp/syntax.rb', line 333

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