Use Ptr for Member (#786)

This commit is contained in:
Jon Meow authored and GitHub committed 2021-08-26 16:32:22 -07:00
1 parent 3ec550a85f
commit e93a361032
6 files changed
+11 -11

No files matched your search

+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),