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

Method visit

codegraph-kernel/src/rlang.rs:300–313  ·  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 stack_guard!();
302 if self.hook(node) {
303 return;
304 }
305 if node.kind() == "call" {
306 self.extract_call(node);
307 }
308 let mut cursor = node.walk();
309 let children: Vec<Node<'t>> = node.named_children(&mut cursor).collect();
310 for child in children {
311 self.visit(child);
312 }
313 }
314
315 /// The visitNode hook (r.ts:180-309). Returns true when consumed.
316 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