Class: AdLint::Cpp::IfGroup

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

Direct Known Subclasses

IfStatement, IfdefStatement, IfndefStatement

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

Returns a new instance of IfGroup.



155
156
157
# File 'lib/adlint/cpp/syntax.rb', line 155

def initialize(keyword)
  @keyword = keyword
end

Instance Attribute Details

#keywordObject (readonly)

Returns the value of attribute keyword.



159
160
161
# File 'lib/adlint/cpp/syntax.rb', line 159

def keyword
  @keyword
end

Instance Method Details

#locationObject



161
162
163
# File 'lib/adlint/cpp/syntax.rb', line 161

def location
  @keyword.location
end