aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLoris Cro <kappaloris@gmail.com>2022-08-02 17:24:19 +0200
committerLoris Cro <kappaloris@gmail.com>2022-08-02 17:49:36 +0200
commitc5afefec427f2f2aeb25fe8f7114b5a0a6aa1129 (patch)
treeae13c0e92e01d36689859e416360aa72f06fd329 /src
parent622714b76b6c3a21a5806e894151d6de8a7e6866 (diff)
downloadzig-c5afefec427f2f2aeb25fe8f7114b5a0a6aa1129.tar.gz
zig-c5afefec427f2f2aeb25fe8f7114b5a0a6aa1129.zip
autodoc: fix autodoc analysis for `@typeInfo`
We were previously erroneously saving it as a `@TypeOf`.
Diffstat (limited to 'src')
-rw-r--r--src/Autodoc.zig3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Autodoc.zig b/src/Autodoc.zig
index 2d163bf4f0..1ed2694553 100644
--- a/src/Autodoc.zig
+++ b/src/Autodoc.zig
@@ -580,6 +580,7 @@ const DocData = struct {
enumLiteral: []const u8, // direct value
alignOf: usize, // index in `exprs`
typeOf: usize, // index in `exprs`
+ typeInfo: usize, // index in `exprs`
typeOf_peer: []usize,
errorUnion: usize, // index in `exprs`
as: As,
@@ -1788,7 +1789,7 @@ fn walkInstruction(
return DocData.WalkResult{
.typeRef = operand.typeRef,
- .expr = .{ .typeOf = operand_index },
+ .expr = .{ .typeInfo = operand_index },
};
},
.as_node => {