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 294de74 commit 1c101caCopy full SHA for 1c101ca
swift/extractor/SwiftExtractor.cpp
@@ -170,7 +170,8 @@ static std::unordered_set<swift::ModuleDecl*> extractDeclarations(
170
bodyEmissionStrategy);
171
auto topLevelDecls = getTopLevelDecls(module, primaryFile, lazyDeclaration);
172
for (auto decl : topLevelDecls) {
173
- if (decl->isUnavailable() && !llvm::isa<swift::NominalTypeDecl>(decl)) {
+ if (decl->isUnavailable() && !llvm::isa<swift::NominalTypeDecl>(decl) &&
174
+ !llvm::isa<swift::VarDecl>(decl)) {
175
continue;
176
}
177
visitor.extract(decl);
0 commit comments