(&mut self, node: Node<'t>, kind: &'static str)
| 738 | } |
| 739 | |
| 740 | fn extract_class(&mut self, node: Node<'t>, kind: &'static str) { |
| 741 | stack_guard!(); |
| 742 | let name = self.extract_name(node); |
| 743 | let extra = Extra { |
| 744 | docstring: preceding_docstring(node, self.src), |
| 745 | visibility: Some(self.visibility_of(node)), |
| 746 | ..Extra::default() |
| 747 | }; |
| 748 | let Some(row) = self.create_node(kind, &name, node, extra) else { return }; |
| 749 | self.extract_inheritance(node, row); |
| 750 | // primary-ctor refs: csharp-only (needs a parameter_list child type); |
| 751 | // decorators: none. |
| 752 | self.stack.push(Scope { row, kind, name }); |
| 753 | let body = node.child_by_field_name("body").unwrap_or(node); |
| 754 | for i in 0..body.named_child_count() { |
| 755 | if let Some(c) = body.named_child(i) { |
| 756 | self.visit_node(c); |
| 757 | } |
| 758 | } |
| 759 | self.stack.pop(); |
| 760 | } |
| 761 | |
| 762 | fn extract_interface(&mut self, node: Node<'t>) { |
| 763 | stack_guard!(); |
no test coverage detected