Class: AdLint::Cpp::EndasmLine

Inherits:
SyntaxNode 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(keyword) ⇒ EndasmLine

Returns a new instance of EndasmLine.



556
557
558
# File 'lib/adlint/cpp/syntax.rb', line 556

def initialize(keyword)
  @keyword = keyword
end

Instance Attribute Details

#keywordObject (readonly)

Returns the value of attribute keyword.



560
561
562
# File 'lib/adlint/cpp/syntax.rb', line 560

def keyword
  @keyword
end

Instance Method Details

#inspect(indent = 0) ⇒ Object



566
567
568
# File 'lib/adlint/cpp/syntax.rb', line 566

def inspect(indent = 0)
  " " * indent + "#{short_class_name} (#{@keyword.inspect})"
end

#locationObject



562
563
564
# File 'lib/adlint/cpp/syntax.rb', line 562

def location
  @keyword.location
end