Skip to main content

walk_program_unattributed

Function walk_program_unattributed 

Source
pub fn walk_program_unattributed<'a>(
    program: &'a [SNode],
    visitor: &mut impl FnMut(&'a SNode),
)
Expand description

Walk declaration bodies and expression children in pre-order, excluding attribute arguments. Attributed declarations are visited as their inner declaration, so compile-time metadata cannot look like an executed call.