(&mut self, node: Node<'t>)
| 538 | // --- function-as-value refs (#756) ----------------------------------------- |
| 539 | |
| 540 | fn maybe_capture_fn_refs(&mut self, node: Node<'t>) { |
| 541 | let Some(mode) = fnref::dispatch(node.kind()) else { return }; |
| 542 | if self.stack.is_empty() { |
| 543 | return; |
| 544 | } |
| 545 | let from = self.top_row(); |
| 546 | for (cand, _mode) in fnref::capture(node, mode, self.src) { |
| 547 | self.fn_ref_cands.push((from, cand)); |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | /// scanFnRefSubtree: capture-only walk of subtrees the main walkers skip. |
| 552 | fn scan_fn_ref_subtree(&mut self, node: Node<'t>, depth: u32) { |
no test coverage detected