[BuilderTransform] Move buildVar to ResultBuilder type

This commit is contained in:
Pavel Yaskevich
2022-04-14 13:52:30 -07:00
parent e087489f30
commit 54d6bc9bc3
2 changed files with 23 additions and 20 deletions

View File

@@ -115,6 +115,10 @@ private:
Identifier BuildOptionalId;
/// Counter used to give unique names to the variables that are
/// created implicitly.
unsigned VarCounter = 0;
public:
ResultBuilder(ConstraintSystem *CS, DeclContext *DC, Type builderType);
@@ -136,6 +140,9 @@ public:
Expr *buildCall(SourceLoc loc, Identifier fnName,
ArrayRef<Expr *> argExprs,
ArrayRef<Identifier> argLabels) const;
/// Build an implicit variable in this context.
VarDecl *buildVar(SourceLoc loc);
};
/// Describes the algorithm to use for trailing closure matching.