calleeName (r.ts:46-55): bare identifier text, or a namespace_operator's `rhs` field text (`pkg::fn` → `fn`) — so `methods::setClass` etc. trigger the special branches. Everything else (extract_operator, subset2, string, call, return…) → None.
(&self, call: Node<'t>)
| 249 | /// `methods::setClass` etc. trigger the special branches. Everything else |
| 250 | /// (extract_operator, subset2, string, call, return…) → None. |
| 251 | fn callee_name(&self, call: Node<'t>) -> Option<&'t str> { |
| 252 | let f = call.child_by_field_name("function")?; |
| 253 | match f.kind() { |
| 254 | "identifier" => Some(self.text(f)), |
| 255 | "namespace_operator" => f.child_by_field_name("rhs").map(|rhs| self.text(rhs)), |
| 256 | _ => None, |
| 257 | } |
| 258 | } |
| 259 | |
| 260 | /// firstArgValue (r.ts:58-67): the FIRST `argument`-typed named child of |
| 261 | /// the `arguments` field → its `value` field (named arguments are NOT |
no test coverage detected