@@ -996,32 +996,7 @@ struct AppliedBuilderTransform {
996996
997997 // / The version of the original body with result builder applied
998998 // / as AST transformation.
999- NullablePtr<BraceStmt> transformedBody;
1000-
1001- // / An expression whose value has been recorded for later use.
1002- struct RecordedExpr {
1003- // / The temporary value that captures the value of the expression, if
1004- // / there is one.
1005- VarDecl *temporaryVar;
1006-
1007- // / The expression that results from generating constraints with this
1008- // / particular builder.
1009- Expr *generatedExpr;
1010- };
1011-
1012- // / A mapping from expressions whose values are captured by the builder
1013- // / to information about the temporary variable capturing the
1014- llvm::DenseMap<Expr *, RecordedExpr> capturedExprs;
1015-
1016- // / A mapping from statements to a pair containing the implicit variable
1017- // / declaration that captures the result of that expression, and the
1018- // / set of expressions that can be used to produce a value for that
1019- // / variable.
1020- llvm::DenseMap<Stmt *, std::pair<VarDecl *, llvm::TinyPtrVector<Expr *>>>
1021- capturedStmts;
1022-
1023- // / The return expression, capturing the last value to be emitted.
1024- Expr *returnExpr = nullptr ;
999+ BraceStmt *transformedBody;
10251000};
10261001
10271002struct Score ;
@@ -6212,25 +6187,6 @@ bool isSIMDOperator(ValueDecl *value);
62126187
62136188std::string describeGenericType (ValueDecl *GP, bool includeName = false );
62146189
6215- // / Apply the given result builder transform within a specific solution
6216- // / to produce the rewritten body.
6217- // /
6218- // / \param solution The solution to use during application, providing the
6219- // / specific types for each type variable.
6220- // / \param applied The applied builder transform.
6221- // / \param body The body to transform
6222- // / \param dc The context in which the transform occurs.
6223- // / \param rewriteTarget Rewrites a target to its final, type-checked version.
6224- // /
6225- // / \returns the transformed body
6226- BraceStmt *applyResultBuilderTransform (
6227- const constraints::Solution &solution,
6228- constraints::AppliedBuilderTransform applied, BraceStmt *body,
6229- DeclContext *dc,
6230- std::function<Optional<constraints::SyntacticElementTarget>(
6231- constraints::SyntacticElementTarget)>
6232- rewriteTarget);
6233-
62346190// / Whether the given parameter requires an argument.
62356191bool parameterRequiresArgument (
62366192 ArrayRef<AnyFunctionType::Param> params,
0 commit comments