mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
Merge pull request #5871 from Kelimion/bug-5865
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) {
|
if (i > 0) {
|
||||||
type_writer_appendc(w, CANONICAL_FIELD_SEPARATOR);
|
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_append(w, f->token.string.text, f->token.string.len);
|
||||||
type_writer_appendc(w, CANONICAL_TYPE_SEPARATOR);
|
type_writer_appendc(w, CANONICAL_TYPE_SEPARATOR);
|
||||||
write_type_to_canonical_string(w, f->type);
|
write_type_to_canonical_string(w, f->type);
|
||||||
|
|||||||
Reference in New Issue
Block a user