Skip to main content

count_placeholders

Function count_placeholders 

Source
fn count_placeholders(stmts: &[Stmt<'_>]) -> usize
Expand description

Recursively counts placeholder (_) statements within a list of statements, descending into nested blocks, conditionals, loops, try/catch, and Yul switch cases.