Merge pull request #18364 from DougGregor/name-lookup-requests

[Name lookup] Introduce requests for several name lookup operations.
This commit is contained in:
Doug Gregor
2018-07-31 13:23:38 -07:00
committed by GitHub
42 changed files with 733 additions and 162 deletions

View File

@@ -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");