Skip to main content

CollectBlockPatches

Function CollectBlockPatches 

Source
fn CollectBlockPatches(
    OrigBlock: &Block,
    MutBlock: &Block,
    Source: &str,
    Patches: &mut Vec<Patch>,
) -> Option<()>
Expand description

Recursively compare OrigBlock (spans anchored to Source) and MutBlock (mutated AST, spans may be synthetic) and collect patches for any statements that differ.