Refactor FunctionDefinition towards instance methods (#654)

It felt weird to have a `Make` method in this case.
This commit is contained in:
Jon Meow
2021-07-15 14:55:44 -07:00
committed by GitHub
parent d2afd45214
commit ef785bb6e3
5 changed files with 28 additions and 35 deletions
+1 -1
View File
@@ -8,7 +8,7 @@
namespace Carbon {
void FunctionDeclaration::Print() const { PrintFunDef(definition); }
void FunctionDeclaration::Print() const { definition.Print(); }
void StructDeclaration::Print() const {
std::cout << "struct " << *definition.name << " {" << std::endl;