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

Method push_fn_ref_cand

codegraph-kernel/src/ccpp/mod.rs:2419–2430  ·  view source on GitHub ↗
(&mut self, from: u32, name: String, mode: Mode, explicit_ref: bool, node: Node)

Source from the content-addressed store, hash-verified

2417 }
2418
2419 fn push_fn_ref_cand(&mut self, from: u32, name: String, mode: Mode, explicit_ref: bool, node: Node) {
2420 let p = node.start_position();
2421 self.fn_ref_cands.push(Cand {
2422 from,
2423 name,
2424 mode,
2425 explicit_ref,
2426 line: p.row as u32 + 1,
2427 column_byte: node.start_byte(),
2428 row: p.row,
2429 });
2430 }
2431
2432 /// scanFnRefSubtree: capture-only walk of subtrees the main walkers skip
2433 /// (variable-declaration initializers). Halts at nested functions/lambdas.

Callers 1

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected