(&mut self, node: Node<'t>)
| 473 | // --- extractInterface / extractEnum / members ----------------------------------- |
| 474 | |
| 475 | pub(super) fn extract_interface(&mut self, node: Node<'t>) { |
| 476 | let name = self.extract_name(node); |
| 477 | let extra = Extra { |
| 478 | docstring: crate::docstring::preceding_docstring(node, self.src), |
| 479 | is_exported: Some(self.is_exported(node)), |
| 480 | ..Extra::default() |
| 481 | }; |
| 482 | let Some(row) = self.create_node("interface", &name, node, extra) else { |
| 483 | return; |
| 484 | }; |
| 485 | self.extract_inheritance(node, row); |
| 486 | self.stack.push(Scope { row, kind: "interface", name }); |
| 487 | let body = body_of(node).unwrap_or(node); |
| 488 | for i in 0..body.named_child_count() { |
| 489 | if let Some(c) = body.named_child(i) { |
| 490 | self.visit_node(c); |
| 491 | } |
| 492 | } |
| 493 | self.stack.pop(); |
| 494 | } |
| 495 | |
| 496 | pub(super) fn extract_enum(&mut self, node: Node<'t>) { |
| 497 | let Some(body) = body_of(node) else { return }; |
no test coverage detected