zig reduce: add transformation for removing container fields

This commit is contained in:
Andrew Kelley 2023-11-04 17:57:43 -07:00
parent 75efb736ce
commit 212aa717d7

View File

@ -165,7 +165,10 @@ fn walkMember(w: *Walk, decl: Ast.Node.Index) Error!void {
.container_field_init,
.container_field_align,
.container_field,
=> try walkContainerField(w, ast.fullContainerField(decl).?),
=> {
try w.transformations.append(.{ .delete_node = decl });
try walkContainerField(w, ast.fullContainerField(decl).?);
},
.@"comptime" => {
try w.transformations.append(.{ .delete_node = decl });