mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-19 16:07:11 +00:00
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:
1 parent
8d0f3364d8
commit
6dd08d09ac
1 file changed
+5
@@ -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`.
|
||||
|
||||
Reference in new issue
Block a user