Class: AdLint::Cpp::ControlLine
- Inherits:
-
GroupPart
- Object
- SyntaxNode
- GroupPart
- AdLint::Cpp::ControlLine
- Defined in:
- lib/adlint/cpp/syntax.rb
Direct Known Subclasses
DefineLine, ErrorLine, IncludeLine, LineLine, PragmaLine, UndefLine
Instance Attribute Summary collapse
-
#keyword ⇒ Object
readonly
Returns the value of attribute keyword.
Instance Method Summary collapse
-
#initialize(keyword) ⇒ ControlLine
constructor
A new instance of ControlLine.
- #location ⇒ Object
Methods inherited from SyntaxNode
Methods included from LocationHolder
Methods included from Visitable
Constructor Details
#initialize(keyword) ⇒ ControlLine
Returns a new instance of ControlLine.
305 306 307 |
# File 'lib/adlint/cpp/syntax.rb', line 305 def initialize(keyword) @keyword = keyword end |
Instance Attribute Details
#keyword ⇒ Object (readonly)
Returns the value of attribute keyword.
309 310 311 |
# File 'lib/adlint/cpp/syntax.rb', line 309 def keyword @keyword end |
Instance Method Details
#location ⇒ Object
311 312 313 |
# File 'lib/adlint/cpp/syntax.rb', line 311 def location @keyword.location end |