Class: AdLint::Cpp::SystemIncludeLine

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

Direct Known Subclasses

SystemIncludeNextLine

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, sys_header_name, include_depth) ⇒ SystemIncludeLine

Returns a new instance of SystemIncludeLine.



341
342
343
# File 'lib/adlint/cpp/syntax.rb', line 341

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

Instance Method Details

#inspect(indent = 0) ⇒ Object



345
346
347
# File 'lib/adlint/cpp/syntax.rb', line 345

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