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

Method visit

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

Source from the content-addressed store, hash-verified

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

walkMethod · 0.80
hookMethod · 0.45
extract_callMethod · 0.45
collectMethod · 0.45

Tested by

no test coverage detected