mirror of
https://github.com/github/codeql.git
synced 2026-04-27 01:35:13 +02:00
Swift: Fix unavailability checks after 6.2 upgrade
This commit is contained in:
@@ -170,7 +170,9 @@ static std::unordered_set<swift::ModuleDecl*> extractDeclarations(
|
||||
bodyEmissionStrategy);
|
||||
auto topLevelDecls = getTopLevelDecls(module, primaryFile, lazyDeclaration);
|
||||
for (auto decl : topLevelDecls) {
|
||||
// TODO: Swift 6.2 is unavailable
|
||||
if (decl->isUnavailable()) {
|
||||
continue;
|
||||
}
|
||||
visitor.extract(decl);
|
||||
}
|
||||
for (auto& comment : comments) {
|
||||
|
||||
@@ -292,7 +292,9 @@ void DeclTranslator::fillTypeDecl(const swift::TypeDecl& decl, codeql::TypeDecl&
|
||||
void DeclTranslator::fillIterableDeclContext(const swift::IterableDeclContext& decl,
|
||||
codeql::Decl& entry) {
|
||||
for (auto member : decl.getMembers()) {
|
||||
// TODO: Swift 6.2 unavailable members
|
||||
if (member->isUnavailable()) {
|
||||
continue;
|
||||
}
|
||||
entry.members.emplace_back(dispatcher.fetchLabel(member));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user