Skip to main content

search_gaps_for_changed_paths

Function search_gaps_for_changed_paths 

Source
pub fn search_gaps_for_changed_paths(
    graph: &RetainedModuleGraph,
    root: &Path,
    changed_files: &FxHashSet<PathBuf>,
    changed_exports: &[ChangedExport],
) -> Option<Vec<ExportSearchGapPaths>>
Expand description

Compute the literal-search gaps of the changed exports.

For each export of a changed file, the consumers outside the changed set are checked against a whole-word text search for the export name. Only exports with at least one missed or renamed consumer are returned. The consumer sources are read on demand.