Skip to content

Commit 22ab6ec

Browse files
committed
[ConstraintSystem] Augment AppliedBuilderTransform to reference transformed body
If result builder AST transform is enabled, let builder transform descriptor carry tranformed body for ease of access during solution application.
1 parent 6e550bc commit 22ab6ec

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/swift/Sema/ConstraintSystem.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -914,6 +914,10 @@ struct AppliedBuilderTransform {
914914
/// converted. Opaque types should be unopened.
915915
Type bodyResultType;
916916

917+
/// The version of the original body with result builder applied
918+
/// as AST transformation.
919+
NullablePtr<BraceStmt> transformedBody;
920+
917921
/// An expression whose value has been recorded for later use.
918922
struct RecordedExpr {
919923
/// The temporary value that captures the value of the expression, if

0 commit comments

Comments
 (0)