@@ -2363,9 +2363,11 @@ static bool isAcceptableLookupResult(const DeclContext *dc,
23632363 if (!decl->isAccessibleFrom (dc, /* forConformance*/ false ,
23642364 allowUsableFromInline))
23652365 return false ;
2366+ }
23662367
2367- // Check that there is some import in the originating context that
2368- // makes this decl visible.
2368+ // Check that there is some import in the originating context that makes this
2369+ // decl visible.
2370+ if (!(options & NL_IgnoreMissingImports)) {
23692371 if (missingExplicitImportForMemberDecl (dc, decl))
23702372 return false ;
23712373 }
@@ -3983,7 +3985,8 @@ bool IsCallAsFunctionNominalRequest::evaluate(Evaluator &evaluator,
39833985 // that will be checked when we actually try to solve with a `callAsFunction`
39843986 // member access.
39853987 SmallVector<ValueDecl *, 4 > results;
3986- auto opts = NL_QualifiedDefault | NL_ProtocolMembers | NL_IgnoreAccessControl;
3988+ auto opts = NL_QualifiedDefault | NL_ProtocolMembers |
3989+ NL_IgnoreAccessControl | NL_IgnoreMissingImports;
39873990 dc->lookupQualified (decl, DeclNameRef (ctx.Id_callAsFunction ),
39883991 decl->getLoc (), opts, results);
39893992
@@ -4138,8 +4141,11 @@ void swift::simple_display(llvm::raw_ostream &out, NLOptions options) {
41384141 FLAG (NL_RemoveOverridden)
41394142 FLAG (NL_IgnoreAccessControl)
41404143 FLAG (NL_OnlyTypes)
4141- FLAG (NL_OnlyMacros)
41424144 FLAG (NL_IncludeAttributeImplements)
4145+ FLAG (NL_IncludeUsableFromInline)
4146+ FLAG (NL_ExcludeMacroExpansions)
4147+ FLAG (NL_OnlyMacros)
4148+ FLAG (NL_IgnoreMissingImports)
41434149#undef FLAG
41444150 };
41454151
0 commit comments