diff options
| author | gingerBill <bill@gingerbill.org> | 2021-04-18 19:59:24 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-04-18 19:59:24 +0100 |
| commit | 6ae468828cc0aa4f7cff54919f9c3eca0850f931 (patch) | |
| tree | 33e1040769e7df67f70c33bfd5417d85aaa82cfb /src/docs_writer.cpp | |
| parent | b59e110fec6876d55e43910430f706ed1575c6e7 (diff) | |
Improve odin-doc type information for Named types by storing the base type
Diffstat (limited to 'src/docs_writer.cpp')
| -rw-r--r-- | src/docs_writer.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/docs_writer.cpp b/src/docs_writer.cpp index 2a975e5d0..b5a9161dd 100644 --- a/src/docs_writer.cpp +++ b/src/docs_writer.cpp @@ -521,6 +521,7 @@ OdinDocTypeIndex odin_doc_type(OdinDocWriter *w, Type *type) { case Type_Named: doc_type.kind = OdinDocType_Named; doc_type.name = odin_doc_write_string(w, type->Named.name); + doc_type.types = odin_doc_type_as_slice(w, base_type(type)); doc_type.entities = odin_doc_add_entity_as_slice(w, type->Named.type_name); break; case Type_Generic: |