mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-15 15:18:11 +00:00
Refactor FunctionDefinition towards instance methods (#654)
It felt weird to have a `Make` method in this case.
This commit is contained in:
1 parent
d2afd45214
commit
ef785bb6e3
5 files changed
+28
-35
No files matched your search
@@ -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