MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / maybe_capture_fn_refs

Method maybe_capture_fn_refs

codegraph-kernel/src/tsjs/mod.rs:540–549  ·  view source on GitHub ↗
(&mut self, node: Node<'t>)

Source from the content-addressed store, hash-verified

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) {

Callers 3

scan_fn_ref_subtreeMethod · 0.45
visit_nodeMethod · 0.45

Calls 3

dispatchFunction · 0.85
captureFunction · 0.85
top_rowMethod · 0.45

Tested by

no test coverage detected