mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-22 20:42:39 +00:00
Switch FunctionDefinition to a class (#852)
Splitting out the task from #849
This commit is contained in:
1 parent
c9b5c2fa1a
commit
6ab2bff69c
5 files changed
+66
-49
No files matched your search
@@ -61,7 +61,7 @@ class Declaration {
|
||||
class FunctionDeclaration : public Declaration {
|
||||
public:
|
||||
FunctionDeclaration(Nonnull<const FunctionDefinition*> definition)
|
||||
: Declaration(Kind::FunctionDeclaration, definition->source_location),
|
||||
: Declaration(Kind::FunctionDeclaration, definition->source_loc()),
|
||||
definition(definition) {}
|
||||
|
||||
static auto classof(const Declaration* decl) -> bool {
|
||||
|
||||
Reference in new issue
Block a user