(&mut self, node: Node<'t>, class_row: u32)
| 1113 | // --- extractInheritance — the scala branch (:5339-5360) --------------- |
| 1114 | |
| 1115 | fn extract_inheritance(&mut self, node: Node<'t>, class_row: u32) { |
| 1116 | let mut cursor = node.walk(); |
| 1117 | let kids: Vec<Node<'t>> = node.named_children(&mut cursor).collect(); |
| 1118 | for child in kids { |
| 1119 | if matches!( |
| 1120 | child.kind(), |
| 1121 | "extends_clause" | "superclass" | "base_clause" | "extends_interfaces" |
| 1122 | ) { |
| 1123 | // Iterate ALL supertypes (with-chains, comma form); unwrap |
| 1124 | // each via scalaBaseTypeName; `arguments` children → None → |
| 1125 | // skipped. `derives_clause` is a different kind — silent. |
| 1126 | let mut cc = child.walk(); |
| 1127 | let targets: Vec<Node<'t>> = child.named_children(&mut cc).collect(); |
| 1128 | for target in targets { |
| 1129 | if let Some(name) = self.scala_base_type_name(Some(target)) { |
| 1130 | self.push_ref_at(class_row, &name, "extends", target); |
| 1131 | } |
| 1132 | } |
| 1133 | } |
| 1134 | } |
| 1135 | } |
| 1136 | |
| 1137 | // --- extractTypeAnnotations (:5788-5880) ------------------------------ |
| 1138 |
no test coverage detected