Change Declaration passing to use Ptr (#758)

This commit is contained in:
Jon Meow
2021-08-19 11:33:32 -07:00
committed by GitHub
parent 50cfda0e1c
commit 925c60b669
10 changed files with 37 additions and 34 deletions
+1
View File
@@ -19,6 +19,7 @@ cc_library(
":pattern",
":struct_definition",
"//common:ostream",
"//executable_semantics/common:ptr",
"@llvm-project//llvm:Support",
],
)
@@ -8,9 +8,10 @@
#include <variant>
#include "executable_semantics/ast/declaration.h"
#include "executable_semantics/common/ptr.h"
namespace Carbon {
using AST = std::list<const Carbon::Declaration*>;
using AST = std::list<Ptr<const Declaration>>;
}
#endif // EXECUTABLE_SEMANTICS_AST_ABSTRACT_SYNTAX_TREE_H_