We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 503da8f commit ca74acaCopy full SHA for ca74aca
lib/Index/Index.cpp
@@ -301,8 +301,7 @@ class IndexSwiftASTWalker : public SourceEntityWalker {
301
bool handleSourceOrModuleFile(SourceFileOrModule SFOrMod);
302
303
bool walkToDeclPre(Decl *D, CharSourceRange Range) override {
304
- // Do not handle unavailable decls.
305
- if (AvailableAttr::isUnavailable(D))
+ if (IsModuleFile && AvailableAttr::isUnavailable(D))
306
return false;
307
308
if (!handleCustomAttrInitRefs(D))
0 commit comments