Class: AdLint::Cpp::IfGroup
- Inherits:
-
SyntaxNode
- Object
- SyntaxNode
- AdLint::Cpp::IfGroup
- Defined in:
- lib/adlint/cpp/syntax.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#keyword ⇒ Object
readonly
Returns the value of attribute keyword.
Instance Method Summary collapse
-
#initialize(keyword) ⇒ IfGroup
constructor
A new instance of IfGroup.
- #location ⇒ Object
Methods inherited from SyntaxNode
Methods included from LocationHolder
Methods included from Visitable
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
#keyword ⇒ Object (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
#location ⇒ Object
161 162 163 |
# File 'lib/adlint/cpp/syntax.rb', line 161 def location @keyword.location end |