module Tapioca::RBIFilesHelper
def location_to_payload_url(loc, path_prefix:)
def location_to_payload_url(loc, path_prefix:) return loc.to_s unless path_prefix url = loc.file || "" return loc.to_s unless url.start_with?(path_prefix) url = url.sub(path_prefix, SorbetHelper::SORBET_PAYLOAD_URL) url = "#{url}#L#{loc.begin_line}" url end