Add workaround for StatementBlock declaration circularity (#1342)

This won't be visible everywhere, but I think something's needed -- this workaround is temporary while I work on a bigger change to semantics.
This commit is contained in:
Jon Ross-Perkins
2022-06-23 15:28:50 -07:00
committed by GitHub
parent 8d0f3364d8
commit 6dd08d09ac
+5
View File
@@ -13,6 +13,11 @@
#include "toolchain/semantics/nodes/declared_name.h"
#include "toolchain/semantics/nodes/pattern_binding.h"
// TODO: StatementBlock has some circularity in its forward declarations that
// needs to be fixed. These includes are a workaround.
#include "toolchain/semantics/nodes/expression_statement.h"
#include "toolchain/semantics/nodes/return.h"
namespace Carbon::Semantics {
// Represents `fn name(params...) [-> return_expr] body`.