mirror of
https://github.com/ziglang/zig.git
synced 2026-02-16 06:18:32 +00:00
zig reduce: add transformation for removing container fields
This commit is contained in:
parent
75efb736ce
commit
212aa717d7
@ -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 });
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user