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

Method hook

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

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

Callers 1

visitMethod · 0.45

Calls 2

hook_callMethod · 0.80
hook_binary_operatorMethod · 0.80

Tested by

no test coverage detected