(&mut self, node: Node<'t>)
| 624 | // --- function-as-value refs (#756) ----------------------------------------- |
| 625 | |
| 626 | fn maybe_capture_fn_refs(&mut self, node: Node<'t>) { |
| 627 | let Some(mode) = fnref::dispatch(node.kind()) else { return }; |
| 628 | if self.stack.is_empty() { |
| 629 | return; |
| 630 | } |
| 631 | let from = self.top_row(); |
| 632 | for (cand, _mode) in fnref::capture(node, mode, self.src) { |
| 633 | self.fn_ref_cands.push((from, cand)); |
| 634 | } |
| 635 | } |
| 636 | |
| 637 | /// scanFnRefSubtree: capture-only walk of subtrees the main walkers skip. |
| 638 | /// `walked`: subtrees a body walk has already been through. |
no test coverage detected