[NFC] Take DeclNameRef in UnqualifiedLookup and lookupQualified()

This commit is contained in:
Brent Royal-Gordon
2019-12-10 19:46:10 -08:00
parent 9a57554bdf
commit da88512eda
25 changed files with 64 additions and 68 deletions

View File

@@ -1486,7 +1486,7 @@ bool AssignmentFailure::diagnoseAsError() {
if (auto typeContext = DC->getInnermostTypeContext()) {
SmallVector<ValueDecl *, 2> results;
DC->lookupQualified(typeContext->getSelfNominalTypeDecl(),
VD->getFullName(), NL_QualifiedDefault, results);
VD->createNameRef(), NL_QualifiedDefault, results);
auto foundProperty = llvm::find_if(results, [&](ValueDecl *decl) {
// We're looking for a settable property that is the same type as the