[NameLookup] Plumb source location arguments through all name lookup APIs.

This source location will be used to determine whether to add a name lookup
option to exclude macro expansions when the name lookup request is constructed.
Currently, the source location argument is unused.
This commit is contained in:
Holly Borla
2023-06-10 01:38:30 -07:00
parent 2943064511
commit cd752cca22
46 changed files with 174 additions and 105 deletions

View File

@@ -560,7 +560,7 @@ void ModuleFile::getImportDecls(SmallVectorImpl<Decl *> &Results) {
SmallVector<ValueDecl *, 8> Decls;
TopLevelModule->lookupQualified(
TopLevelModule, DeclNameRef(ScopeID),
NL_QualifiedDefault, Decls);
SourceLoc(), NL_QualifiedDefault, Decls);
Optional<ImportKind> FoundKind = ImportDecl::findBestImportKind(Decls);
assert(FoundKind.has_value() &&
"deserialized imports should not be ambiguous");