Class: AdLint::Cpp::ElseGroup
- Inherits:
-
SyntaxNode
- Object
- SyntaxNode
- AdLint::Cpp::ElseGroup
- 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) ⇒ ElseGroup
constructor
A new instance of ElseGroup.
- #location ⇒ Object
Methods inherited from SyntaxNode
Methods included from LocationHolder
Methods included from Visitable
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
#keyword ⇒ Object (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
#location ⇒ Object
269 270 271 |
# File 'lib/adlint/cpp/syntax.rb', line 269 def location @keyword.location end |