(&mut self, node: Node<'t>)
| 692 | // --- extractors -------------------------------------------------------------- |
| 693 | |
| 694 | fn extract_class(&mut self, node: Node<'t>) { |
| 695 | stack_guard!(); |
| 696 | // skipBodilessClass unset: a bodiless `record Empty;` still mints a node. |
| 697 | let name = self.extract_name(node); |
| 698 | let extra = Extra { |
| 699 | docstring: preceding_docstring(node, self.src), |
| 700 | visibility: Some(self.visibility_of(node)), |
| 701 | ..Extra::default() // isExported hook absent → flag not present |
| 702 | }; |
| 703 | let Some(row) = self.create_node("class", &name, node, extra) else { return }; |
| 704 | self.extract_inheritance(node, row); |
| 705 | self.extract_primary_ctor_param_refs(node, row); |
| 706 | // extractDecoratorsFor: C# attributes never match its accepted node |
| 707 | // types (attribute_list is skipped, its children never reached) — |
| 708 | // zero `decorates` refs; the call slot emits nothing. |
| 709 | |
| 710 | self.stack.push(Scope { row, kind: "class", name }); |
| 711 | // body ?? node: a bodiless record's own children are iterated |
| 712 | // "harmlessly" — visit_node on identifier/parameter_list/base_list |
| 713 | // children falls through (base-arg identifiers still feed fn-ref |
| 714 | // capture, mirroring the TS walk). |
| 715 | let body = node.child_by_field_name("body").unwrap_or(node); |
| 716 | for c in body.named_children(&mut body.walk()) { |
| 717 | self.visit_node(c); |
| 718 | } |
| 719 | // no synthesizeMembers for C# |
| 720 | self.stack.pop(); |
| 721 | } |
| 722 | |
| 723 | fn extract_struct(&mut self, node: Node<'t>) { |
| 724 | stack_guard!(); |
no test coverage detected