mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-19 21:10:30 +00:00
Add #subtype using to name canonicalization
This commit is contained in:
@@ -756,6 +756,14 @@ gb_internal void write_type_to_canonical_string(TypeWriter *w, Type *type) {
|
||||
if (i > 0) {
|
||||
type_writer_appendc(w, CANONICAL_FIELD_SEPARATOR);
|
||||
}
|
||||
|
||||
if (f->flags & EntityFlags_IsSubtype) {
|
||||
type_writer_appendc(w, "#subtype");
|
||||
}
|
||||
|
||||
if (f->flags & EntityFlag_Using) {
|
||||
type_writer_appendc(w, "using");
|
||||
}
|
||||
type_writer_append(w, f->token.string.text, f->token.string.len);
|
||||
type_writer_appendc(w, CANONICAL_TYPE_SEPARATOR);
|
||||
write_type_to_canonical_string(w, f->type);
|
||||
|
||||
Reference in New Issue
Block a user