pub fn finalize_definitions(
arena: &AstArena,
ast: u32,
name: &str,
kept: &HashSet<u32>,
keep: bool,
invalid: &[u32],
)Expand description
finalize the mixin or custom function definitions once they are evaluated: the evaluated definitions are replaced
with a comment unless keep is set, the definitions that are kept are reduced to their last definition in the same
scope, the definitions that are not valid are left as is