Swift: update extractor after schema changes

This commit is contained in:
Paolo Tranquilli
2023-09-14 10:05:17 +02:00
parent 4d3aecfff6
commit cf1667c325

View File

@@ -271,7 +271,7 @@ void DeclTranslator::fillTypeDecl(const swift::TypeDecl& decl, codeql::TypeDecl&
entry.name = decl.getNameStr().str();
for (auto& typeLoc : decl.getInherited()) {
if (auto type = typeLoc.getType()) {
entry.base_types.push_back(dispatcher.fetchLabel(type));
entry.inherited_types.push_back(dispatcher.fetchLabel(type));
}
}
fillValueDecl(decl, entry);