Class: AdLint::Cpp::AsmSection

Inherits:
GroupPart show all
Defined in:
lib/adlint/cpp/syntax.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from SyntaxNode

#short_class_name

Methods included from LocationHolder

#analysis_target?

Methods included from Visitable

#accept

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_lineObject (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_lineObject (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

#locationObject



528
529
530
# File 'lib/adlint/cpp/syntax.rb', line 528

def location
  @asm_line.location
end