mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #40708 from xedin/disable-multi-stmt-inference-inside-result-builder-bodies
[ConstraintSystem] SE-0326: Temporarily prevent multi-statement closure inference in result builder contexts
This commit is contained in:
@@ -5292,6 +5292,10 @@ public:
|
||||
/// part of the constraint system.
|
||||
void forEachExpr(Expr *expr, llvm::function_ref<Expr *(Expr *)> callback);
|
||||
|
||||
/// Determine whether one of the parent closures the given one is nested
|
||||
/// in (if any) has a result builder applied to its body.
|
||||
bool isInResultBuilderContext(ClosureExpr *closure) const;
|
||||
|
||||
SWIFT_DEBUG_DUMP;
|
||||
SWIFT_DEBUG_DUMPER(dump(Expr *));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user