mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user