mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
Swift: extract ExtensionDecl protocols
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user