Switch Member to variant in anticipation of more kinds. (#656)

Note this overlaps a little with #644's Member changes, but not too badly.
This commit is contained in:
Jon Meow authored and GitHub committed 2021-07-15 15:23:52 -07:00
1 parent 467b58abe9
commit ada2be2d16
6 files changed
+54 -37

No files matched your search

+1 -1
View File
@@ -13,7 +13,7 @@ void FunctionDeclaration::Print() const { definition.Print(); }
void StructDeclaration::Print() const {
std::cout << "struct " << *definition.name << " {" << std::endl;
for (auto& member : *definition.members) {
PrintMember(member);
member->Print();
}
std::cout << "}" << std::endl;
}