We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99e04b5 commit b1a7361Copy full SHA for b1a7361
src/Autodoc.zig
@@ -3702,6 +3702,11 @@ fn walkInstruction(
3702
call_ctx,
3703
);
3704
3705
+ // Inside field init bodies, the struct decl instruction is used to refer to the
3706
+ // field type during the second pass of analysis.
3707
+ try self.repurposed_insts.put(self.arena, @intCast(inst_index), {});
3708
+ defer _ = self.repurposed_insts.remove(@intCast(inst_index));
3709
+
3710
var field_type_refs: std.ArrayListUnmanaged(DocData.Expr) = .{};
3711
var field_default_refs: std.ArrayListUnmanaged(?DocData.Expr) = .{};
3712
var field_name_indexes: std.ArrayListUnmanaged(usize) = .{};
0 commit comments