mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 10:01:06 +01: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:
@@ -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