File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -327,13 +327,13 @@ class ASTScopeImpl {
327
327
// / the self type twice. That's why we pass scopeWhoseTypeWasAlreadySearched.
328
328
// /
329
329
// / Look in this scope.
330
- // / \p selfDC is the context for names dependent on dynamic self,
331
- // / \p limit is a scope into which lookup should not go. See \ref
332
- // / getLookupLimit. \p scopeWhoseTypeWasAlreadySearched is a Decl whose
333
- // / generics and self type has already been searched, \p isCascadingUse
334
- // / indicates whether the lookup results will need a cascading dependency or
335
- // / not \p consumer is the object to which found decls are reported. Returns
336
- // / the isCascadingUse information.
330
+ // / \param selfDC The context for names dependent on dynamic self,
331
+ // / \param limit A scope into which lookup should not go. See \c getLookupLimit.
332
+ // / \param scopeWhoseTypeWasAlreadySearched A \c Decl whose generics and self type have
333
+ // / already been searched.
334
+ // / \param isCascadingUse Whether the lookup results will need a cascading dependency or not.
335
+ // / \param consumer is the object to which found decls are reported.
336
+ // / \returns \c isCascadingUse
337
337
Optional<bool >
338
338
lookup (NullablePtr<DeclContext> selfDC, NullablePtr<const ASTScopeImpl> limit,
339
339
NullablePtr<const Decl> scopeWhoseTypeWasAlreadySearched,
Original file line number Diff line number Diff line change @@ -232,16 +232,16 @@ Optional<bool> ASTScopeImpl::lookupInParent(
232
232
233
233
// If this scope has an associated Decl, we have already searched its generics
234
234
// and selfType, so no need to look again.
235
- NullablePtr<const Decl> haveAlreadyLookedHereForParent =
235
+ NullablePtr<const Decl> scopeWhoseTypeWasAlreadySearchedForParent =
236
236
getDecl () ? getDecl ().getPtrOrNull () : scopeWhoseTypeWasAlreadySearched;
237
237
238
238
// If there is no limit and this scope induces one, pass that on.
239
239
const NullablePtr<const ASTScopeImpl> limitForParent =
240
240
limit ? limit : getLookupLimit ();
241
241
242
242
return lookupParent->lookup (computeSelfDCForParent (selfDC), limitForParent,
243
- haveAlreadyLookedHereForParent, isCascadingUse ,
244
- consumer);
243
+ scopeWhoseTypeWasAlreadySearchedForParent ,
244
+ isCascadingUse, consumer);
245
245
}
246
246
247
247
#pragma mark lookInMyGenericParameters
You can’t perform that action at this time.
0 commit comments