(&mut self, node: Node<'t>)
| 569 | // --- extractInterface / extractEnum / members ----------------------------------- |
| 570 | |
| 571 | pub(super) fn extract_interface(&mut self, node: Node<'t>) { |
| 572 | let name = self.extract_name(node); |
| 573 | let extra = Extra { |
| 574 | docstring: crate::docstring::preceding_docstring(node, self.src), |
| 575 | is_exported: Some(self.is_exported(node)), |
| 576 | ..Extra::default() |
| 577 | }; |
| 578 | let Some(row) = self.create_node("interface", &name, node, extra) else { |
| 579 | return; |
| 580 | }; |
| 581 | self.extract_inheritance(node, row); |
| 582 | self.stack.push(Scope { row, kind: "interface", name }); |
| 583 | let body = body_of(node).unwrap_or(node); |
| 584 | for i in 0..body.named_child_count() { |
| 585 | if let Some(c) = body.named_child(i) { |
| 586 | self.visit_node(c); |
| 587 | } |
| 588 | } |
| 589 | self.stack.pop(); |
| 590 | } |
| 591 | |
| 592 | pub(super) fn extract_enum(&mut self, node: Node<'t>) { |
| 593 | let Some(body) = body_of(node) else { return }; |
no test coverage detected