pub fn resolve_source_file_for_location(
source_manager: &dyn SourceManager,
location: &Location,
) -> Option<Arc<SourceFile>>Expand description
Resolve a source file for location.
Compiled packages may contain remapped paths such as src/lib.rs, while sources loaded by the
VM host may be keyed by an absolute path, or may not be loaded yet at all. Prefer the source
manager’s existing URI table, then fall back to loading the file from disk.