(&mut self, node: Node<'t>)
| 1071 | } |
| 1072 | |
| 1073 | fn extract_class(&mut self, node: Node<'t>) { |
| 1074 | stack_guard!(); |
| 1075 | let resolved_body = self.resolve_body(node); |
| 1076 | let name = self.extract_name(node); |
| 1077 | let extra = Extra { |
| 1078 | docstring: preceding_docstring(node, self.src), |
| 1079 | visibility: Some(self.visibility_of(node)), |
| 1080 | ..Extra::default() |
| 1081 | }; |
| 1082 | let Some(row) = self.create_node("class", &name, node, extra) else { return }; |
| 1083 | self.extract_inheritance(node, row); |
| 1084 | // primaryCtor refs: csharp-gated no-op. |
| 1085 | self.extract_decorators_for(node, row); |
| 1086 | self.stack.push(Scope { row, kind: "class", name }); |
| 1087 | // Bodied: ONLY class_body children (primary-ctor properties/defaults |
| 1088 | // invisible). Bodiless: the class node itself → header children |
| 1089 | // visited → ctor default-value + super-arg calls attribute to the |
| 1090 | // CLASS (the asymmetry, pinned). |
| 1091 | let body = resolved_body.unwrap_or(node); |
| 1092 | for i in 0..body.named_child_count() { |
| 1093 | if let Some(c) = body.named_child(i) { |
| 1094 | self.visit_node(c); |
| 1095 | } |
| 1096 | } |
| 1097 | self.stack.pop(); |
| 1098 | } |
| 1099 | |
| 1100 | fn extract_interface(&mut self, node: Node<'t>) { |
| 1101 | stack_guard!(); |
no test coverage detected