| ... | @@ -2200,17 +2200,10 @@ fn walkInstruction( | ... | @@ -2200,17 +2200,10 @@ fn walkInstruction( |
| 2200 | false, | 2200 | false, |
| 2201 | ); | 2201 | ); |
| 2202 | | 2202 | |
| 2203 | _ = operand; | 2203 | return DocData.WalkResult{ |
| 2204 | | 2204 | .typeRef = operand.expr, |
| 2205 | // WIP | 2205 | .expr = .{ .@"struct" = &.{} }, |
| 2206 | | 2206 | }; |
| 2207 | printWithContext( | | |
| 2208 | file, | | |
| 2209 | inst_index, | | |
| 2210 | "TODO: implement `{s}` for walkInstruction\n\n", | | |
| 2211 | .{@tagName(tags[inst_index])}, | | |
| 2212 | ); | | |
| 2213 | return self.cteTodo(@tagName(tags[inst_index])); | | |
| 2214 | }, | 2207 | }, |
| 2215 | .struct_init_anon => { | 2208 | .struct_init_anon => { |
| 2216 | const pl_node = data[inst_index].pl_node; | 2209 | const pl_node = data[inst_index].pl_node; |
| ... | @@ -2537,6 +2530,7 @@ fn walkInstruction( | ... | @@ -2537,6 +2530,7 @@ fn walkInstruction( |
| 2537 | const var_init_ref = @intToEnum(Ref, file.zir.extra[extra_index]); | 2530 | const var_init_ref = @intToEnum(Ref, file.zir.extra[extra_index]); |
| 2538 | const var_init = try self.walkRef(file, parent_scope, parent_src, var_init_ref, need_type); | 2531 | const var_init = try self.walkRef(file, parent_scope, parent_src, var_init_ref, need_type); |
| 2539 | value.expr = var_init.expr; | 2532 | value.expr = var_init.expr; |
| | 2533 | value.typeRef = var_init.typeRef; |
| 2540 | } | 2534 | } |
| 2541 | | 2535 | |
| 2542 | return value; | 2536 | return value; |