class RuboCop::AST::NodePattern::Parser::WithMeta::Lexer
def initialize(str_or_buffer)
def initialize(str_or_buffer) @source_buffer = if str_or_buffer.respond_to?(:source) str_or_buffer else ::Parser::Source::Buffer.new('(string)', source: str_or_buffer) end @comments = [] super(@source_buffer.source) end