diff --git a/lib/docs/main.js b/lib/docs/main.js
index 5ee39ec89386cb17550f22e44b2dbe16255dc25a..064099e1ad23c5675758f98fdd50a387dd997ff0 100644
--- a/lib/docs/main.js
+++ b/lib/docs/main.js
@@ -2215,6 +2215,7 @@ var zigAnalysis;
}
if (typesList.length !== 0) {
+ window.x = typesList;
resizeDomList(domListTypes, typesList.length, '
');
for (let i = 0; i < typesList.length; i += 1) {
let liDom = domListTypes.children[i];
@@ -2252,7 +2253,6 @@ var zigAnalysis;
if (fnsList.length !== 0) {
resizeDomList(domListFns, fnsList.length, '');
- window.x = domListFns;
for (let i = 0; i < fnsList.length; i += 1) {
let decl = fnsList[i];
let trDom = domListFns.children[i];
@@ -2594,7 +2594,7 @@ var zigAnalysis;
if (list[mainDeclIndex] != null) continue;
let decl = zigAnalysis.decls[mainDeclIndex];
- let declVal = decl.value; //resolveValue(decl.value);
+ let declVal = resolveValue(decl.value);
let declNames = item.declNames.concat([decl.name]);
list[mainDeclIndex] = {
pkgNames: pkgNames,
@@ -2615,7 +2615,7 @@ var zigAnalysis;
}
- // Generic function
+ // Generic fun/ction
if (value.kind == typeKinds.Fn && value.generic_ret != null) {
let resolvedVal = resolveValue({ expr: value.generic_ret});
if ("type" in resolvedVal.expr) {