(&self, typeid: TypeId)
| 608 | } |
| 609 | |
| 610 | fn ty(&self, typeid: TypeId) -> (bool, String) { |
| 611 | let ty = &self.typeenv.types[typeid.index()]; |
| 612 | let name = ty.name(self.typeenv); |
| 613 | let is_ref = match ty { |
| 614 | Type::Builtin(_) | Type::Primitive(..) => false, |
| 615 | Type::Enum { .. } | Type::Struct { .. } => true, |
| 616 | }; |
| 617 | (is_ref, String::from(name)) |
| 618 | } |
| 619 | |
| 620 | fn validate_block(ret_kind: ReturnKind, block: &Block) -> Nested<'_> { |
| 621 | if !matches!(ret_kind, ReturnKind::Iterator) { |
no test coverage detected