| ... | ... | @@ -128,10 +128,12 @@ pub fn nameForType2(T: type) []const u8 { |
| 128 | 128 | } |
| 129 | 129 | if (tinfo == .@"struct") { |
| 130 | 130 | const info = tinfo.@"struct"; |
| 131 | if (@hasDecl(T, "baseTypeName")) return T.baseTypeName; |
| 131 | 132 | if (@hasDecl(T, "BaseType")) return nameForType2(T.BaseType); |
| 132 | 133 | if (info.layout == .@"packed") return nameForType2(info.backing_integer.?); |
| 133 | 134 | } |
| 134 | 135 | if (tinfo == .@"enum") { |
| 136 | if (@hasDecl(T, "baseTypeName")) return T.baseTypeName; |
| 135 | 137 | return nameForType2(T.BaseType); |
| 136 | 138 | } |
| 137 | 139 | if (tinfo == .int or tinfo == .bool) { |