mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
reduce: fix compile errors
Regressed by c11b6adf13fe5c765ec480af5bad6338e6982a9d.
This commit is contained in:
parent
091aa54a3e
commit
879ea2710f
@ -345,19 +345,19 @@ fn walkExpression(w: *Walk, node: Ast.Node.Index) Error!void {
|
|||||||
},
|
},
|
||||||
|
|
||||||
.assign_destructure => {
|
.assign_destructure => {
|
||||||
const full = tree.assignDestructure(node);
|
const full = ast.assignDestructure(node);
|
||||||
for (full.ast.variables) |variable_node| {
|
for (full.ast.variables) |variable_node| {
|
||||||
switch (node_tags[lhs_node]) {
|
switch (node_tags[variable_node]) {
|
||||||
.global_var_decl,
|
.global_var_decl,
|
||||||
.local_var_decl,
|
.local_var_decl,
|
||||||
.simple_var_decl,
|
.simple_var_decl,
|
||||||
.aligned_var_decl,
|
.aligned_var_decl,
|
||||||
=> try walkLocalVarDecl(w, ast.fullVarDecl(lhs_node).?),
|
=> try walkLocalVarDecl(w, ast.fullVarDecl(variable_node).?),
|
||||||
|
|
||||||
else => try walkExpression(w, variable_node),
|
else => try walkExpression(w, variable_node),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return walkExpression(w, full.ast.assign_expr);
|
return walkExpression(w, full.ast.value_expr);
|
||||||
},
|
},
|
||||||
|
|
||||||
.bit_not,
|
.bit_not,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user