mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-01 20:28:15 +00:00
Rename #partial[Enum]Type to #sparse[Enum]Type for non-contiguous enum fields
This commit is contained in:
@@ -472,6 +472,9 @@ write_type_writer :: proc(w: io.Writer, ti: ^Type_Info, n_written: ^int = nil) -
|
||||
write_type(w, info.elem, &n) or_return
|
||||
|
||||
case Type_Info_Enumerated_Array:
|
||||
if info.is_sparse {
|
||||
io.write_string(w, "#sparse", &n) or_return
|
||||
}
|
||||
io.write_string(w, "[", &n) or_return
|
||||
write_type(w, info.index, &n) or_return
|
||||
io.write_string(w, "]", &n) or_return
|
||||
|
||||
Reference in New Issue
Block a user