Skip to main content

generate_core_excerpts

Function generate_core_excerpts 

Source
pub fn generate_core_excerpts(
    all_fragments: &[Fragment],
    core_ids: &FxHashSet<FragmentId>,
    hunks: &[DiffHunk],
) -> FxHashMap<FragmentId, Fragment>
Expand description

Cheap stand-ins for the core fragments that have no signature variant, keyed by the core they stand in for. Kept out of all_fragments on purpose: they must not become graph nodes or ordinary context candidates, only substitutes for a core that would otherwise vanish.