Fix a whole bunch of issues exposed by ziglang/zig#9191

This also includes a workaround for the fact that @"type" refers to the builtin
and not to a variable called "type". See ziglang/zig#2897.
This commit is contained in:
Robin Voetter
2021-06-24 02:11:36 +02:00
parent b63533d95b
commit b3c71d69ea
10 changed files with 82 additions and 75 deletions

View File

@@ -171,7 +171,7 @@ pub const Generator = struct {
if (e.is_bitmask and seen_bits.get(decl.name) == null)
continue;
},
else => {}
else => {},
}
self.registry.decls[i] = decl;
i += 1;