@@ -92,8 +92,8 @@ class Witness {
9292 // / The witness declaration, along with the substitutions needed to use
9393 // / the witness declaration from the synthetic environment.
9494 ConcreteDeclRef declRef;
95- GenericEnvironment *syntheticEnvironment ;
96- SubstitutionMap reqToSyntheticEnvSubs ;
95+ GenericSignature syntheticSig ;
96+ SubstitutionMap reqToSyntheticSigSubs ;
9797 // / The derivative generic signature, when the requirement is a derivative
9898 // / function.
9999 GenericSignature derivativeGenSig;
@@ -141,10 +141,10 @@ class Witness {
141141 // / \param substitutions The substitutions required to use the witness from
142142 // / the synthetic environment.
143143 // /
144- // / \param syntheticEnv The synthetic environment .
144+ // / \param syntheticSig The synthetic signature .
145145 // /
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 .
148148 // /
149149 // / \param derivativeGenSig The derivative generic signature, when the
150150 // / requirement is a derivative function.
@@ -153,8 +153,8 @@ class Witness {
153153 // / need to hop to before calling the witness.
154154 Witness (ValueDecl *decl,
155155 SubstitutionMap substitutions,
156- GenericEnvironment *syntheticEnv ,
157- SubstitutionMap reqToSyntheticEnvSubs ,
156+ GenericSignature syntheticSig ,
157+ SubstitutionMap reqToSyntheticSigSubs ,
158158 GenericSignature derivativeGenSig,
159159 Optional<ActorIsolation> enterIsolation);
160160
@@ -183,18 +183,18 @@ class Witness {
183183 return getDeclRef ().getSubstitutions ();
184184 }
185185
186- // / Retrieve the synthetic generic environment .
187- GenericEnvironment * getSyntheticEnvironment () const {
186+ // / Retrieve the synthetic generic signature .
187+ GenericSignature getSyntheticSignature () const {
188188 if (auto *storedWitness = storage.dyn_cast <StoredWitness *>())
189- return storedWitness->syntheticEnvironment ;
189+ return storedWitness->syntheticSig ;
190190 return nullptr ;
191191 }
192192
193193 // / 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 .
195195 SubstitutionMap getRequirementToSyntheticSubs () const {
196196 if (auto *storedWitness = storage.dyn_cast <StoredWitness *>())
197- return storedWitness->reqToSyntheticEnvSubs ;
197+ return storedWitness->reqToSyntheticSigSubs ;
198198 return {};
199199 }
200200
0 commit comments