Class: AdLint::Cpp::SyntaxNode

Inherits:
Object
  • Object
show all
Includes:
LocationHolder, Visitable
Defined in:
lib/adlint/cpp/syntax.rb

Instance Method Summary collapse

Methods included from LocationHolder

#analysis_target?

Methods included from Visitable

#accept

Instance Method Details

#inspect(indent = 0) ⇒ Object



48
49
50
# File 'lib/adlint/cpp/syntax.rb', line 48

def inspect(indent = 0)
  subclass_responsibility
end

#locationObject



44
45
46
# File 'lib/adlint/cpp/syntax.rb', line 44

def location
  subclass_responsibility
end

#short_class_nameObject



52
53
54
# File 'lib/adlint/cpp/syntax.rb', line 52

def short_class_name
  self.class.name.sub(/\A.*::/, "")
end