class AdLint::Cpp::TextLineToPPTokensLexer

Public Class Methods

new(text_line, tab_width) click to toggle source
Calls superclass method AdLint::Cpp::StringToPPTokensLexer::new
# File lib/adlint/cpp/lexer.rb, line 927
def initialize(text_line, tab_width)
  super(text_line.token.value, tab_width)
  @text_line = text_line
end

Private Instance Methods

create_content(str) click to toggle source
# File lib/adlint/cpp/lexer.rb, line 933
def create_content(str)
  StringContent.new(str, @tab_width, *@text_line.location.to_a)
end