Class: AdLint::Cpp::ControlLine

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from SyntaxNode

#inspect, #short_class_name

Methods included from LocationHolder

#analysis_target?

Methods included from Visitable

#accept

Constructor Details

#initialize(keyword) ⇒ ControlLine

Returns a new instance of ControlLine.



305
306
307
# File 'lib/adlint/cpp/syntax.rb', line 305

def initialize(keyword)
  @keyword = keyword
end

Instance Attribute Details

#keywordObject (readonly)

Returns the value of attribute keyword.



309
310
311
# File 'lib/adlint/cpp/syntax.rb', line 309

def keyword
  @keyword
end

Instance Method Details

#locationObject



311
312
313
# File 'lib/adlint/cpp/syntax.rb', line 311

def location
  @keyword.location
end