aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-02-22 17:41:22 +0000
committergingerBill <bill@gingerbill.org>2024-02-22 17:41:22 +0000
commitc9e37a08be896356ccbe011007f664dc2c78e962 (patch)
tree8fd4c38070da99da8684b1c68521358c9da4775e /src
parentdcbcf75269a75a9d677104f40dd99d3610e1353d (diff)
Add backing type of a `bit_field` to the doc-format
Diffstat (limited to 'src')
-rw-r--r--src/docs_writer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/docs_writer.cpp b/src/docs_writer.cpp
index 88d9df40c..45484e13b 100644
--- a/src/docs_writer.cpp
+++ b/src/docs_writer.cpp
@@ -625,6 +625,7 @@ gb_internal OdinDocTypeIndex odin_doc_type(OdinDocWriter *w, Type *type) {
fields[i] = odin_doc_add_entity(w, type->BitField.fields[i]);
}
doc_type.entities = odin_write_slice(w, fields.data, fields.count);
+ doc_type.types = odin_doc_type_as_slice(w, type->BitField.backing_type);
}
break;