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

Method visit

codegraph-kernel/src/rlang.rs:300–312  ·  view source on GitHub ↗
(&mut self, node: Node<'t>)

Source from the content-addressed store, hash-verified

298 // else plain recursion over namedChildren in order.
299
300 fn visit(&mut self, node: Node<'t>) {
301 if self.hook(node) {
302 return;
303 }
304 if node.kind() == "call" {
305 self.extract_call(node);
306 }
307 let mut cursor = node.walk();
308 let children: Vec<Node<'t>> = node.named_children(&mut cursor).collect();
309 for child in children {
310 self.visit(child);
311 }
312 }
313
314 /// The visitNode hook (r.ts:180-309). Returns true when consumed.
315 fn hook(&mut self, node: Node<'t>) -> bool {

Callers 4

extractFunction · 0.45
hook_callMethod · 0.45
hook_binary_operatorMethod · 0.45
emit_method_argMethod · 0.45

Calls 3

hookMethod · 0.45
extract_callMethod · 0.45
collectMethod · 0.45

Tested by

no test coverage detected