Fix printing struct fields
This commit is contained in:
parent
b8658816b4
commit
580ae22a98
1 changed files with 1 additions and 1 deletions
|
|
@ -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";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue