class AdLint::Cpp::TextLine

Attributes

token[R]

Public Class Methods

new(tok) click to toggle source
# File lib/adlint/cpp/syntax.rb, line 472
def initialize(tok)
  @token = tok
end

Public Instance Methods

inspect(indent = 0) click to toggle source
# File lib/adlint/cpp/syntax.rb, line 482
def inspect(indent = 0)
  " " * indent + "#{short_class_name} (#{@token.inspect})"
end
location() click to toggle source
# File lib/adlint/cpp/syntax.rb, line 478
def location
  @token.location
end