1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 13:27:35 +00:00

LibCpp: Parse enum members with explicit values

This commit is contained in:
Ali Mohammad Pur 2021-07-28 04:15:22 +04:30 committed by Andreas Kling
parent 67a19eaecb
commit 8fefbfd5ac
3 changed files with 16 additions and 4 deletions

View file

@ -287,7 +287,9 @@ void EnumDeclaration::dump(FILE* output, size_t indent) const
outln(output, "{}", m_name);
for (auto& entry : m_entries) {
print_indent(output, indent + 1);
outln(output, "{}", entry);
outln(output, "{}", entry.name);
if (entry.value)
entry.value->dump(output, indent + 2);
}
}