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

Method hook

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

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

Callers 1

visitMethod · 0.45

Calls 2

hook_callMethod · 0.80
hook_binary_operatorMethod · 0.80

Tested by

no test coverage detected