Class: AdLint::Cpp::ElseGroup

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

Direct Known Subclasses

ElseStatement

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

Returns a new instance of ElseGroup.



263
264
265
# File 'lib/adlint/cpp/syntax.rb', line 263

def initialize(keyword)
  @keyword = keyword
end

Instance Attribute Details

#keywordObject (readonly)

Returns the value of attribute keyword.



267
268
269
# File 'lib/adlint/cpp/syntax.rb', line 267

def keyword
  @keyword
end

Instance Method Details

#locationObject



269
270
271
# File 'lib/adlint/cpp/syntax.rb', line 269

def location
  @keyword.location
end