Class: AdLint::Cpp::IncludeLine

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

Direct Known Subclasses

SystemIncludeLine, UserIncludeLine

Instance Attribute Summary collapse

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(keyword, header_name, include_depth) ⇒ IncludeLine

Returns a new instance of IncludeLine.



317
318
319
320
321
# File 'lib/adlint/cpp/syntax.rb', line 317

def initialize(keyword, header_name, include_depth)
  super(keyword)
  @header_name   = header_name
  @include_depth = include_depth
end

Instance Attribute Details

#fpathObject

Returns the value of attribute fpath.



325
326
327
# File 'lib/adlint/cpp/syntax.rb', line 325

def fpath
  @fpath
end

#header_nameObject (readonly)

Returns the value of attribute header_name.



324
325
326
# File 'lib/adlint/cpp/syntax.rb', line 324

def header_name
  @header_name
end

#include_depthObject (readonly)

Returns the value of attribute include_depth.



323
324
325
# File 'lib/adlint/cpp/syntax.rb', line 323

def include_depth
  @include_depth
end