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

Method hook

codegraph-kernel/src/rlang.rs:317–324  ·  view source on GitHub ↗

The visitNode hook (r.ts:180-309). Returns true when consumed.

(&mut self, node: Node<'t>)

Source from the content-addressed store, hash-verified

315
316 /// The visitNode hook (r.ts:180-309). Returns true when consumed.
317 fn hook(&mut self, node: Node<'t>) -> bool {
318 stack_guard!();
319 match node.kind() {
320 "call" => self.hook_call(node),
321 "binary_operator" => self.hook_binary_operator(node),
322 _ => false,
323 }
324 }
325
326 fn hook_call(&mut self, node: Node<'t>) -> bool {
327 stack_guard!();

Callers 1

visitMethod · 0.45

Calls 2

hook_callMethod · 0.80
hook_binary_operatorMethod · 0.80

Tested by

no test coverage detected