class DEBUGGER__::SourceRepository

def add iseq, src

Experimental RBS support (using type sampling data from the type_fusion project).

def add: (RubyVM::InstructionSequence iseq, nil src) -> Array[String]?

This signature was generated using 503 samples from 6 applications.

def add iseq, src
  # only manage loaded file names
  if (path = (iseq.absolute_path || iseq.path)) && File.exist?(path)
    if @loaded_file_map.has_key? path
      return path, true # reloaded
    else
      @loaded_file_map[path] = path
      return path, false
    end
  end
end