Skip to main content

prune_hoisted_contexts

Function prune_hoisted_contexts 

Source
pub fn prune_hoisted_contexts(
    func: &mut ReactiveFunction,
    env: &Environment,
) -> Result<(), CompilerError>
Expand description

Prunes DeclareContexts lowered for HoistedConsts and transforms any references back to their original instruction kind. TS: pruneHoistedContexts