mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Name lookup] Use the declaration-based lookupQualified() where it’s easy.
Switch a number of callers of the Type-based lookupQualified() over to the newer (and preferred) declaration-based lookupQualified(). These are the easy ones; NFC.
This commit is contained in:
@@ -1664,8 +1664,8 @@ void ModuleFile::getImportDecls(SmallVectorImpl<Decl *> &Results) {
|
||||
|
||||
SmallVector<ValueDecl *, 8> Decls;
|
||||
TopLevelModule->lookupQualified(
|
||||
ModuleType::get(TopLevelModule), ScopeID,
|
||||
NL_QualifiedDefault | NL_KnownNoDependency, nullptr, Decls);
|
||||
TopLevelModule, ScopeID,
|
||||
NL_QualifiedDefault | NL_KnownNoDependency, Decls);
|
||||
Optional<ImportKind> FoundKind = ImportDecl::findBestImportKind(Decls);
|
||||
assert(FoundKind.hasValue() &&
|
||||
"deserialized imports should not be ambiguous");
|
||||
|
||||
Reference in New Issue
Block a user