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

Method push_fn_ref_cand

codegraph-kernel/src/ccpp/mod.rs:2421–2432  ·  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

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

Callers 1

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected