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