autodoc: Display type kinds for containers (#17667)

This commit is contained in:
Krzysztof Wolicki 2023-10-22 16:15:00 +02:00 committed by GitHub
parent b822e841cd
commit 606f0e496e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3539,6 +3539,13 @@ Happy writing!
} }
domSectTests.classList.remove("hidden"); domSectTests.classList.remove("hidden");
} }
if (container.kind !== typeKinds.Struct || containerNode.fields.length > 0) {
domHdrName.innerHTML = "<pre class='inline'>" +
zigAnalysis.typeKinds[container.kind] +
"</pre>";
domHdrName.classList.remove("hidden");
}
} }
function operatorCompare(a, b) { function operatorCompare(a, b) {