(&self, module: &ModuleDef, sum: &SumTypeDef)
| 159 | } |
| 160 | |
| 161 | fn collect_sum_dependencies(&self, module: &ModuleDef, sum: &SumTypeDef) -> HashSet<String> { |
| 162 | let mut deps = HashSet::new(); |
| 163 | for (_, variant_type) in &sum.variants { |
| 164 | deps.extend(Self::collect_dependencies(module, variant_type)); |
| 165 | } |
| 166 | deps |
| 167 | } |
| 168 | |
| 169 | // Generate minimal product type (struct with fields only) |
| 170 | fn write_product_type(&self, output: &mut String, module: &ModuleDef, type_name: &str, product: &ProductTypeDef) { |
no test coverage detected