Skip to content

Commit 1d0d067

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 c71de21 commit 1d0d067

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
@@ -886,6 +886,10 @@ struct AppliedBuilderTransform {
886886
/// converted. Opaque types should be unopened.
887887
Type bodyResultType;
888888

889+
/// The version of the original body with result builder applied
890+
/// as AST transformation.
891+
NullablePtr<BraceStmt> transformedBody;
892+
889893
/// An expression whose value has been recorded for later use.
890894
struct RecordedExpr {
891895
/// The temporary value that captures the value of the expression, if

0 commit comments

Comments
 (0)