emitMethodArg (r.ts:84-98): `name = function(…)` argument entry → a `method` node positioned at the ARGUMENT node, signature from the raw parameters text, body walked hook-aware inside the method scope.
(&mut self, entry: Node<'t>)
| 543 | /// `method` node positioned at the ARGUMENT node, signature from the raw |
| 544 | /// parameters text, body walked hook-aware inside the method scope. |
| 545 | fn emit_method_arg(&mut self, entry: Node<'t>) { |
| 546 | let entry_name = match entry.child_by_field_name("name") { |
| 547 | Some(n) => n, |
| 548 | None => return, |
| 549 | }; |
| 550 | let entry_value = match entry.child_by_field_name("value") { |
| 551 | Some(v) if v.kind() == "function_definition" => v, |
| 552 | _ => return, |
| 553 | }; |
| 554 | let params_text = entry_value.child_by_field_name("parameters").map(|p| self.text(p)); |
| 555 | let name = self.text(entry_name).to_string(); |
| 556 | let method_row = self.create_node("method", &name, entry, params_text); |
| 557 | let body = entry_value.child_by_field_name("body"); |
| 558 | if let (Some(row), Some(body)) = (method_row, body) { |
| 559 | self.stack.push(Scope { row, kind: "method", name }); |
| 560 | self.visit(body); |
| 561 | self.stack.pop(); |
| 562 | } |
| 563 | } |
| 564 | |
| 565 | // --- extractCall (tree-sitter.ts:3684, 4313, 4518-4532, 4572-4580) ---- |
| 566 | // R call nodes reach the generic tail: callee = RAW `function`-field text |
no test coverage detected