module Tapioca::Runtime::Trackers::ConstantDefinition

def build_source_location(tp, locations)

def build_source_location(tp, locations)
  loc = resolve_loc(locations)
  file = loc&.file
  line = loc&.line
  lineno = file && File.identical?(file, tp.path) ? tp.lineno : (line || 0)
  SourceLocation.from_loc([file || "", lineno])
end

def disable!

def disable!
  @class_tracepoint.disable
  @creturn_tracepoint.disable
  super
end

def files_for(klass)

: (Module klass) -> Set[String]
or where metaprogramming was used via +eval+, etc.
about situations where the class was opened prior to +require+ing,
Returns the files in which this class or module was opened. Doesn't know
def files_for(klass)
  locations_for(klass).map(&:file).to_set
end

def locations_for(klass)

: (Module klass) -> Set[SourceLocation]
def locations_for(klass)
  @class_files.fetch(klass, Set.new)
end