(&mut self, node: Node<'t>)
| 605 | // --- function-as-value refs (#756) ----------------------------------------- |
| 606 | |
| 607 | fn maybe_capture_fn_refs(&mut self, node: Node<'t>) { |
| 608 | let Some(mode) = fnref::dispatch(node.kind()) else { return }; |
| 609 | if self.stack.is_empty() { |
| 610 | return; |
| 611 | } |
| 612 | let from = self.top_row(); |
| 613 | for (cand, _mode) in fnref::capture(node, mode, self.src) { |
| 614 | self.fn_ref_cands.push((from, cand)); |
| 615 | } |
| 616 | } |
| 617 | |
| 618 | /// scanFnRefSubtree: capture-only walk of subtrees the main walkers skip. |
| 619 | /// `walked`: subtrees a body walk has already been through. |
no test coverage detected