You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: language.rb
    path of file: ./repos/ruby-next/lib/ruby-next
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

# Checking gem specs doesn't work in ruby.wasm
unless RUBY_PLATFORM.match?(/wasm/)
  gem "ruby-next-parser", ">= 2.8.0.3"
  gem "unparser", ">= 0.4.7"
end

require "set" # rubocop:disable Lint/Redund
    
      def transform(source, rewriters: self.rewriters, using: RubyNext::Core.refine?, path: nil, context: TransformContext.new(path: path))
        text_rewriters, ast_rewriters = rewriters.partition(&:text?)

        retried = 0
        new_source = text_rewrite(source, rewriters: text_rewriters, using: using, context: context)

        begin
          new_source =
            if mode == :rewrite
              rewrite(new_source, rewriters: ast_rewriters, using: using, context: context)
            else
              regenerate(new_source, rewriters: ast_rewriters, using: using, context: context)
            end