@@ -179,8 +179,8 @@ class UnqualifiedLookupFactory {
179
179
};
180
180
181
181
struct PerContextInfo {
182
- DeclContext *dc ; // TODO: Eliminate ME
183
- DeclContext *lookupContextForThisDecl ;
182
+ DeclContext *thisContext ; // TODO: Eliminate ME
183
+ DeclContext *lookupContextForThisContext ;
184
184
Optional<PlacesToSearch> placesToSearch;
185
185
Optional<bool > isCascadingUse;
186
186
@@ -672,23 +672,24 @@ void UnqualifiedLookupFactory::lookupNameInDeclContexts(
672
672
void UnqualifiedLookupFactory::finishLookingInContext (
673
673
const PerContextInfo &&info) {
674
674
breadcrumbs.push_back (info);
675
- auto lookupContextForThisDecl = info.lookupContextForThisDecl ;
675
+ auto lookupContextForThisContext = info.lookupContextForThisContext ;
676
676
auto placesToSearch = std::move (info.placesToSearch );
677
677
auto isCascadingUse = info.isCascadingUse ;
678
678
679
- if (!isa<DefaultArgumentInitializer>(info.dc ) &&
680
- addGenericParametersHereAndInEnclosingScopes (lookupContextForThisDecl ))
679
+ if (!isa<DefaultArgumentInitializer>(info.thisContext ) &&
680
+ addGenericParametersHereAndInEnclosingScopes (lookupContextForThisContext ))
681
681
return ;
682
682
if (placesToSearch.hasValue () && !placesToSearch.getValue ().empty ()) {
683
683
auto startIndexOfInnerResults = Results.size ();
684
- placesToSearch.getValue ().addToResults (Name, isCascadingUse. getValue (),
685
- baseNLOptions,
686
- lookupContextForThisDecl , Results);
684
+ placesToSearch.getValue ().addToResults (
685
+ Name, isCascadingUse. getValue (), baseNLOptions,
686
+ lookupContextForThisContext , Results);
687
687
if (handleUnavailableInnerResults (startIndexOfInnerResults))
688
688
return ;
689
689
}
690
- auto *const whereToLookNext = lookupContextForThisDecl->getParentForLookup ();
691
- assert (whereToLookNext != info.dc && " non-termination" );
690
+ auto *const whereToLookNext =
691
+ lookupContextForThisContext->getParentForLookup ();
692
+ assert (whereToLookNext != info.thisContext && " non-termination" );
692
693
693
694
lookupNameInDeclContexts (
694
695
DCAndUnresolvedIsCascadingUse{whereToLookNext, isCascadingUse});
@@ -1723,7 +1724,7 @@ void UnqualifiedLookupFactory::dumpBreadcrumbs() const {
1723
1724
void UnqualifiedLookupFactory::PerContextInfo::dump () const {
1724
1725
auto &e = llvm::errs ();
1725
1726
e << " dc: " ;
1726
- lookupContextForThisDecl ->dumpContext ();
1727
+ lookupContextForThisContext ->dumpContext ();
1727
1728
if (placesToSearch.hasValue ())
1728
1729
placesToSearch.getValue ().dump ();
1729
1730
}
0 commit comments