| 54 | } |
| 55 | |
| 56 | const char* Primitive::BoxedDescriptor(Primitive::Type type) { |
| 57 | static_assert(COUNT_OF(kBoxedDescriptors) == static_cast<size_t>(Primitive::kPrimLast) + 1, |
| 58 | "Missing element"); |
| 59 | CHECK(Primitive::kPrimNot <= type && type <= Primitive::kPrimVoid) << static_cast<int>(type); |
| 60 | return kBoxedDescriptors[type]; |
| 61 | } |
| 62 | |
| 63 | std::ostream& operator<<(std::ostream& os, Primitive::Type type) { |
| 64 | uint32_t int_type = static_cast<uint32_t>(type); |
nothing calls this directly
no outgoing calls
no test coverage detected