(&mut self, ty: &Type)
| 1171 | } |
| 1172 | |
| 1173 | fn is_primative_list(&mut self, ty: &Type) -> bool { |
| 1174 | match ty { |
| 1175 | Type::Id(id) => { |
| 1176 | let ty = &self.resolve.types[*id]; |
| 1177 | match &ty.kind { |
| 1178 | TypeDefKind::Type(ty) => self.is_primative_list(ty), |
| 1179 | TypeDefKind::List(ty) if crate::world_generator::is_primitive(ty) => { |
| 1180 | return true; |
| 1181 | } |
| 1182 | _ => false, |
| 1183 | } |
| 1184 | } |
| 1185 | _ => false, |
| 1186 | } |
| 1187 | } |
| 1188 | |
| 1189 | pub(crate) fn name_with_qualifier( |
| 1190 | &mut self, |