(&mut self, node: Node<'t>)
| 738 | // --- function-as-value refs (#756) ----------------------------------------- |
| 739 | |
| 740 | fn maybe_capture_fn_refs(&mut self, node: Node<'t>) { |
| 741 | let Some(mode) = fnref::dispatch(node.kind()) else { return }; |
| 742 | if self.stack.is_empty() { |
| 743 | return; |
| 744 | } |
| 745 | let from = self.top_row(); |
| 746 | for (cand, _mode) in fnref::capture(node, mode, self.src) { |
| 747 | self.fn_ref_cands.push((from, cand)); |
| 748 | } |
| 749 | } |
| 750 | |
| 751 | /// scanFnRefSubtree: capture-only walk of subtrees the main walkers skip. |
| 752 | /// `walked`: subtrees a body walk has already been through. |
no test coverage detected