Switch Declaration to use inheritance+cast (#714)

This commit is contained in:
Jon Meow authored and GitHub committed 2021-08-06 14:57:44 -07:00
1 parent 7c03858b55
commit c1148caf7d
11 files changed
+206 -202

No files matched your search

@@ -10,7 +10,7 @@
#include "executable_semantics/ast/declaration.h"
namespace Carbon {
using AST = std::list<Carbon::Declaration>;
using AST = std::list<const Carbon::Declaration*>;
}
#endif // EXECUTABLE_SEMANTICS_AST_ABSTRACT_SYNTAX_TREE_H_