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

Method hook

codegraph-kernel/src/rlang.rs:319–326  ·  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

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

Callers 1

visitMethod · 0.45

Calls 2

hook_callMethod · 0.80
hook_binary_operatorMethod · 0.80

Tested by

no test coverage detected