Add comments to signify inferred types

This commit is contained in:
Benjamin Moir 2024-01-10 03:38:05 +10:00
parent 0a9f0c205e
commit 6c0135789a
1 changed files with 2 additions and 2 deletions

View File

@ -1582,7 +1582,7 @@ pub fn struct_def_string(
in_union = false;
}
if i == anon.member_index {
out.push_str(&indent_all_by(indent, "union {\n"));
out.push_str(&indent_all_by(indent, "union { // inferred\n"));
indent += 4;
in_union = true;
}
@ -1594,7 +1594,7 @@ pub fn struct_def_string(
in_group = false;
}
if i == anon.member_index {
out.push_str(&indent_all_by(indent, "struct {\n"));
out.push_str(&indent_all_by(indent, "struct { // inferred\n"));
indent += 4;
in_group = true;
}