Skip to content

Commit ca74aca

Browse files
rockbrunoCodaFi
authored andcommitted
Allow unavailable decls to be walked
1 parent 503da8f commit ca74aca

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/Index/Index.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,8 +301,7 @@ class IndexSwiftASTWalker : public SourceEntityWalker {
301301
bool handleSourceOrModuleFile(SourceFileOrModule SFOrMod);
302302

303303
bool walkToDeclPre(Decl *D, CharSourceRange Range) override {
304-
// Do not handle unavailable decls.
305-
if (AvailableAttr::isUnavailable(D))
304+
if (IsModuleFile && AvailableAttr::isUnavailable(D))
306305
return false;
307306

308307
if (!handleCustomAttrInitRefs(D))

0 commit comments

Comments
 (0)