class RuboCop::AST::ProcessedSource

def parse(source, ruby_version)

def parse(source, ruby_version)
  buffer_name = @path || STRING_SOURCE_NAME
  @buffer = Parser::Source::Buffer.new(buffer_name, 1)
  begin
    @buffer.source = source
  rescue EncodingError => e
    @parser_error = e
    @ast = nil
    @comments = []
    @tokens = []
    return
  end
  @ast, @comments, @tokens = tokenize(create_parser(ruby_version))
end