Class: AdLint::Cpp::ElifGroup

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

Direct Known Subclasses

ElifStatement

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) ⇒ ElifGroup

Returns a new instance of ElifGroup.



235
236
237
# File 'lib/adlint/cpp/syntax.rb', line 235

def initialize(keyword)
  @keyword = keyword
end

Instance Attribute Details

#keywordObject (readonly)

Returns the value of attribute keyword.



239
240
241
# File 'lib/adlint/cpp/syntax.rb', line 239

def keyword
  @keyword
end

Instance Method Details

#locationObject



241
242
243
# File 'lib/adlint/cpp/syntax.rb', line 241

def location
  @keyword.location
end