Skip to content

Commit 3e95844

Browse files
author
David Ungar
committed
Clean up
1 parent 72b2096 commit 3e95844

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

include/swift/AST/ASTScope.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -327,13 +327,13 @@ class ASTScopeImpl {
327327
/// the self type twice. That's why we pass scopeWhoseTypeWasAlreadySearched.
328328
///
329329
/// 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
337337
Optional<bool>
338338
lookup(NullablePtr<DeclContext> selfDC, NullablePtr<const ASTScopeImpl> limit,
339339
NullablePtr<const Decl> scopeWhoseTypeWasAlreadySearched,

lib/AST/ASTScopeLookup.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,16 +232,16 @@ Optional<bool> ASTScopeImpl::lookupInParent(
232232

233233
// If this scope has an associated Decl, we have already searched its generics
234234
// and selfType, so no need to look again.
235-
NullablePtr<const Decl> haveAlreadyLookedHereForParent =
235+
NullablePtr<const Decl> scopeWhoseTypeWasAlreadySearchedForParent =
236236
getDecl() ? getDecl().getPtrOrNull() : scopeWhoseTypeWasAlreadySearched;
237237

238238
// If there is no limit and this scope induces one, pass that on.
239239
const NullablePtr<const ASTScopeImpl> limitForParent =
240240
limit ? limit : getLookupLimit();
241241

242242
return lookupParent->lookup(computeSelfDCForParent(selfDC), limitForParent,
243-
haveAlreadyLookedHereForParent, isCascadingUse,
244-
consumer);
243+
scopeWhoseTypeWasAlreadySearchedForParent,
244+
isCascadingUse, consumer);
245245
}
246246

247247
#pragma mark lookInMyGenericParameters

0 commit comments

Comments
 (0)