mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 22:02:23 +01:00
Refactor FunctionDefinition towards instance methods (#654)
It felt weird to have a `Make` method in this case.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user