@@ -92,8 +92,8 @@ class Witness {
92
92
// / The witness declaration, along with the substitutions needed to use
93
93
// / the witness declaration from the synthetic environment.
94
94
ConcreteDeclRef declRef;
95
- GenericEnvironment *syntheticEnvironment ;
96
- SubstitutionMap reqToSyntheticEnvSubs ;
95
+ GenericSignature syntheticSig ;
96
+ SubstitutionMap reqToSyntheticSigSubs ;
97
97
// / The derivative generic signature, when the requirement is a derivative
98
98
// / function.
99
99
GenericSignature derivativeGenSig;
@@ -141,10 +141,10 @@ class Witness {
141
141
// / \param substitutions The substitutions required to use the witness from
142
142
// / the synthetic environment.
143
143
// /
144
- // / \param syntheticEnv The synthetic environment .
144
+ // / \param syntheticSig The synthetic signature .
145
145
// /
146
- // / \param reqToSyntheticEnvSubs The mapping from the interface types of the
147
- // / requirement into the interface types of the synthetic environment .
146
+ // / \param reqToSyntheticSigSubs The mapping from the interface types of the
147
+ // / requirement into the interface types of the synthetic signature .
148
148
// /
149
149
// / \param derivativeGenSig The derivative generic signature, when the
150
150
// / requirement is a derivative function.
@@ -153,8 +153,8 @@ class Witness {
153
153
// / need to hop to before calling the witness.
154
154
Witness (ValueDecl *decl,
155
155
SubstitutionMap substitutions,
156
- GenericEnvironment *syntheticEnv ,
157
- SubstitutionMap reqToSyntheticEnvSubs ,
156
+ GenericSignature syntheticSig ,
157
+ SubstitutionMap reqToSyntheticSigSubs ,
158
158
GenericSignature derivativeGenSig,
159
159
Optional<ActorIsolation> enterIsolation);
160
160
@@ -183,18 +183,18 @@ class Witness {
183
183
return getDeclRef ().getSubstitutions ();
184
184
}
185
185
186
- // / Retrieve the synthetic generic environment .
187
- GenericEnvironment * getSyntheticEnvironment () const {
186
+ // / Retrieve the synthetic generic signature .
187
+ GenericSignature getSyntheticSignature () const {
188
188
if (auto *storedWitness = storage.dyn_cast <StoredWitness *>())
189
- return storedWitness->syntheticEnvironment ;
189
+ return storedWitness->syntheticSig ;
190
190
return nullptr ;
191
191
}
192
192
193
193
// / Retrieve the substitution map that maps the interface types of the
194
- // / requirement to the interface types of the synthetic environment .
194
+ // / requirement to the interface types of the synthetic signature .
195
195
SubstitutionMap getRequirementToSyntheticSubs () const {
196
196
if (auto *storedWitness = storage.dyn_cast <StoredWitness *>())
197
- return storedWitness->reqToSyntheticEnvSubs ;
197
+ return storedWitness->reqToSyntheticSigSubs ;
198
198
return {};
199
199
}
200
200
0 commit comments