codeql
codeql copied to clipboard
Swift: Add `ClassOrStructDecl` class
This PR adds a class that's defined as the union of ClassDecl and StructDecl`. This is motivated by us having used the wrong one of these on several occasions.
Hopefully, by instead relying on this union class, we'll be less likely to run into these issues.