(&mut self, node: Node<'t>, kind: &'static str)
| 715 | } |
| 716 | |
| 717 | fn extract_class(&mut self, node: Node<'t>, kind: &'static str) { |
| 718 | let name = self.extract_name(node); |
| 719 | let extra = Extra { |
| 720 | docstring: preceding_docstring(node, self.src), |
| 721 | visibility: Some(self.visibility_of(node)), |
| 722 | ..Extra::default() |
| 723 | }; |
| 724 | let Some(row) = self.create_node(kind, &name, node, extra) else { return }; |
| 725 | self.extract_inheritance(node, row); |
| 726 | // primary-ctor refs: csharp-only (needs a parameter_list child type); |
| 727 | // decorators: none. |
| 728 | self.stack.push(Scope { row, kind, name }); |
| 729 | let body = node.child_by_field_name("body").unwrap_or(node); |
| 730 | for i in 0..body.named_child_count() { |
| 731 | if let Some(c) = body.named_child(i) { |
| 732 | self.visit_node(c); |
| 733 | } |
| 734 | } |
| 735 | self.stack.pop(); |
| 736 | } |
| 737 | |
| 738 | fn extract_interface(&mut self, node: Node<'t>) { |
| 739 | let name = self.extract_name(node); |
no test coverage detected