mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #18364 from DougGregor/name-lookup-requests
[Name lookup] Introduce requests for several name lookup operations.
This commit is contained in:
@@ -1667,8 +1667,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