mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 07:32:44 +00:00
autodoc: fix regression in frontend rendering of values
This commit is contained in:
parent
2a96f80d03
commit
60678f5baf
@ -478,11 +478,13 @@ var zigAnalysis;
|
||||
}
|
||||
|
||||
if (lastIsDecl && last.kind === "const") {
|
||||
let typeObj = getType(resolveValue(last.value).expr.type);
|
||||
if (typeObj && typeObj.kind === typeKinds.Fn) {
|
||||
return renderFn(last);
|
||||
const value = resolveValue(last.value);
|
||||
if ("type" in value.expr) {
|
||||
let typeObj = getType(value.expr.type);
|
||||
if (typeObj.kind === typeKinds.Fn) {
|
||||
return renderFn(last);
|
||||
}
|
||||
}
|
||||
|
||||
return renderValue(last);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user