Swift: extract ExtensionDecl protocols

This commit is contained in:
Paolo Tranquilli
2023-01-17 12:56:09 +01:00
parent f6e26211f9
commit d6e0ef9ff9

View File

@@ -265,6 +265,7 @@ std::optional<codeql::SubscriptDecl> DeclTranslator::translateSubscriptDecl(
codeql::ExtensionDecl DeclTranslator::translateExtensionDecl(const swift::ExtensionDecl& decl) {
auto entry = createEntry(decl);
entry.extended_type_decl = dispatcher.fetchLabel(decl.getExtendedNominal());
entry.protocols = dispatcher.fetchRepeatedLabels(decl.getLocalProtocols());
fillGenericContext(decl, entry);
fillIterableDeclContext(decl, entry);
return entry;