mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #73685 from slavapestov/pack-expansion-closures-part-5
Pack expansion closures, part 5
This commit is contained in:
@@ -656,7 +656,8 @@ protected:
|
||||
void appendClosureEntity(const AbstractClosureExpr *closure);
|
||||
|
||||
void appendClosureComponents(Type Ty, unsigned discriminator, bool isImplicit,
|
||||
const DeclContext *parentContext);
|
||||
const DeclContext *parentContext,
|
||||
ArrayRef<GenericEnvironment *> capturedEnvs);
|
||||
|
||||
void appendDefaultArgumentEntity(const DeclContext *ctx, unsigned index);
|
||||
|
||||
|
||||
@@ -53,6 +53,17 @@ struct MapLocalArchetypesOutOfContext {
|
||||
Type operator()(SubstitutableType *type) const;
|
||||
};
|
||||
|
||||
struct MapIntoLocalArchetypeContext {
|
||||
GenericEnvironment *baseGenericEnv;
|
||||
ArrayRef<GenericEnvironment *> capturedEnvs;
|
||||
|
||||
MapIntoLocalArchetypeContext(GenericEnvironment *baseGenericEnv,
|
||||
ArrayRef<GenericEnvironment *> capturedEnvs)
|
||||
: baseGenericEnv(baseGenericEnv), capturedEnvs(capturedEnvs) {}
|
||||
|
||||
Type operator()(SubstitutableType *type) const;
|
||||
};
|
||||
|
||||
GenericSignature buildGenericSignatureWithCapturedEnvironments(
|
||||
ASTContext &ctx,
|
||||
GenericSignature sig,
|
||||
|
||||
Reference in New Issue
Block a user