Skip to main content

build_for_reference_index

Function build_for_reference_index 

Source
pub fn build_for_reference_index(
    files: &[PathBuf],
    source_overrides: Option<&HashMap<PathBuf, String>>,
) -> ModuleGraphBuild
Expand description

Build a module graph that retains every reachable AST and honors unsaved buffer overrides.

This is the construction find-references and harn graph share: one resolution graph, one inverse index. source_overrides replace disk contents for the named files so an editor buffer wins over the file it just edited.