| ... | ... | @@ -2897,6 +2897,26 @@ fn walkInstruction( |
| 2897 | 2897 | .expr = .{ .@"struct" = &.{} }, |
| 2898 | 2898 | }; |
| 2899 | 2899 | }, |
| 2900 | .struct_init_empty_ref_result => { |
| 2901 | const un_node = data[inst_index].un_node; |
| 2902 | |
| 2903 | var operand: DocData.WalkResult = try self.walkRef( |
| 2904 | file, |
| 2905 | parent_scope, |
| 2906 | parent_src, |
| 2907 | un_node.operand, |
| 2908 | false, |
| 2909 | call_ctx, |
| 2910 | ); |
| 2911 | |
| 2912 | const struct_init_idx = self.exprs.items.len; |
| 2913 | try self.exprs.append(self.arena, .{ .@"struct" = &.{} }); |
| 2914 | |
| 2915 | return DocData.WalkResult{ |
| 2916 | .typeRef = operand.expr, |
| 2917 | .expr = .{ .@"&" = struct_init_idx }, |
| 2918 | }; |
| 2919 | }, |
| 2900 | 2920 | .struct_init_anon => { |
| 2901 | 2921 | const pl_node = data[inst_index].pl_node; |
| 2902 | 2922 | const extra = file.zir.extraData(Zir.Inst.StructInitAnon, pl_node.payload_index); |