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: io_readlines.rb
    path of file: ./repos/rubocop-performance/lib/rubocop/cop/performance
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module RuboCop
  module Cop
    module Performance
      # Identifies places where inefficie
    
        def correction_range(enumerable_call, readlines_call)
          begin_pos = readlines_call.loc.selector.begin_pos

          end_pos = if enumerable_call.method?(:each)
                      enumerable_call.source_range.end_pos
                    else
                      enumerable_call.loc.dot.begin_pos
                    end