Skip to main content

walk_unannotated_params

Function walk_unannotated_params 

Source
pub fn walk_unannotated_params(
    program: &[SNode],
    visit: &mut impl FnMut(UnannotatedParam),
)
Expand description

Visit every parameter in program that the rule requires a type for, including declarations nested inside another body.

The walk is pre-order, so an impl block is always seen before the methods it owns. That is what lets one pass tell a method apart from a free function without keeping a parallel copy of the AST’s child structure.