Push a block's span if it contains the cursor, and recurse into its statements.
(block: &Block<'_>, offset: u32, spans: &mut Vec<(u32, u32)>)
| 133 | |
| 134 | /// Push a block's span if it contains the cursor, and recurse into its statements. |
| 135 | fn push_block(block: &Block<'_>, offset: u32, spans: &mut Vec<(u32, u32)>) { |
| 136 | push_brace_pair(block.left_brace, block.right_brace, offset, spans); |
| 137 | for stmt in block.statements.iter() { |
| 138 | collect_spans_from_statement(stmt, offset, spans); |
| 139 | } |
| 140 | } |
| 141 | |
| 142 | // ─── Statement walker ─────────────────────────────────────────────────────── |
| 143 |
no test coverage detected