Use Ptr for Member (#786)

This commit is contained in:
Jon Meow
2021-08-26 16:32:22 -07:00
committed by GitHub
parent 3ec550a85f
commit e93a361032
6 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -77,7 +77,7 @@ class FunctionDeclaration : public Declaration {
class ClassDeclaration : public Declaration {
public:
ClassDeclaration(SourceLocation loc, std::string name,
std::list<Member*> members)
std::list<Ptr<Member>> members)
: Declaration(Kind::ClassDeclaration, loc),
definition({.loc = loc,
.name = std::move(name),