Class: AdLint::Cpp::AsmLine
- Inherits:
-
SyntaxNode
- Object
- SyntaxNode
- AdLint::Cpp::AsmLine
- Defined in:
- lib/adlint/cpp/syntax.rb
Instance Attribute Summary collapse
-
#keyword ⇒ Object
readonly
Returns the value of attribute keyword.
Instance Method Summary collapse
-
#initialize(keyword) ⇒ AsmLine
constructor
A new instance of AsmLine.
- #inspect(indent = 0) ⇒ Object
- #location ⇒ Object
Methods inherited from SyntaxNode
Methods included from LocationHolder
Methods included from Visitable
Constructor Details
#initialize(keyword) ⇒ AsmLine
Returns a new instance of AsmLine.
540 541 542 |
# File 'lib/adlint/cpp/syntax.rb', line 540 def initialize(keyword) @keyword = keyword end |
Instance Attribute Details
#keyword ⇒ Object (readonly)
Returns the value of attribute keyword.
544 545 546 |
# File 'lib/adlint/cpp/syntax.rb', line 544 def keyword @keyword end |
Instance Method Details
#inspect(indent = 0) ⇒ Object
550 551 552 |
# File 'lib/adlint/cpp/syntax.rb', line 550 def inspect(indent = 0) " " * indent + "#{short_class_name} (#{@keyword.inspect})" end |
#location ⇒ Object
546 547 548 |
# File 'lib/adlint/cpp/syntax.rb', line 546 def location @keyword.location end |