Class: AdLint::Cpp::AsmSection
- Inherits:
-
GroupPart
- Object
- SyntaxNode
- GroupPart
- AdLint::Cpp::AsmSection
- Defined in:
- lib/adlint/cpp/syntax.rb
Instance Attribute Summary collapse
-
#asm_line ⇒ Object
readonly
Returns the value of attribute asm_line.
-
#endasm_line ⇒ Object
readonly
Returns the value of attribute endasm_line.
Instance Method Summary collapse
-
#initialize(asm_line, endasm_line) ⇒ AsmSection
constructor
A new instance of AsmSection.
- #inspect(indent = 0) ⇒ Object
- #location ⇒ Object
Methods inherited from SyntaxNode
Methods included from LocationHolder
Methods included from Visitable
Constructor Details
#initialize(asm_line, endasm_line) ⇒ AsmSection
Returns a new instance of AsmSection.
520 521 522 523 |
# File 'lib/adlint/cpp/syntax.rb', line 520 def initialize(asm_line, endasm_line) @asm_line = asm_line @endasm_line = endasm_line end |
Instance Attribute Details
#asm_line ⇒ Object (readonly)
Returns the value of attribute asm_line.
525 526 527 |
# File 'lib/adlint/cpp/syntax.rb', line 525 def asm_line @asm_line end |
#endasm_line ⇒ Object (readonly)
Returns the value of attribute endasm_line.
526 527 528 |
# File 'lib/adlint/cpp/syntax.rb', line 526 def endasm_line @endasm_line end |
Instance Method Details
#inspect(indent = 0) ⇒ Object
532 533 534 535 536 |
# File 'lib/adlint/cpp/syntax.rb', line 532 def inspect(indent = 0) [" " * indent + short_class_name, @asm_line.inspect(indent + 1), @endasm_line.inspect(indent + 1)].join("\n") end |
#location ⇒ Object
528 529 530 |
# File 'lib/adlint/cpp/syntax.rb', line 528 def location @asm_line.location end |