Fix printing struct fields

This commit is contained in:
Nikita Lisitsa 2026-03-30 20:29:39 +03:00
parent b8658816b4
commit 580ae22a98

View file

@ -486,7 +486,7 @@ namespace pslang::ast
for (auto const & field : node.fields)
{
put_indent(out, as_child(options));
out << "field { name = \"" << node.name << "\", type = ";
out << "field { name = \"" << field.name << "\", type = ";
print(out, *field.type);
out << ", offset = " << field.layout.offset << " }\n";
}