generated docs: more verbose fields

also prevent docs making hyperlinks for integer types
This commit is contained in:
Andrew Kelley
2019-10-09 16:21:34 -04:00
parent 8d5e3a2f33
commit e0ab685467
3 changed files with 32 additions and 20 deletions

View File

@@ -811,7 +811,7 @@ static void anal_dump_type(AnalDumpCtx *ctx, ZigType *ty) {
jw_end_array(jw);
}
{
if (ty->data.structure.src_field_count != 0) {
jw_object_field(jw, "fields");
jw_begin_array(jw);