CodeQL library for Swift
codeql/swift-all 6.2.3 (changelog, source)
Search

Member predicate Impl::TypeDecl::getADerivedTypeDecl

Gets the declaration of any type derived from this type declaration. Expands protocols added in extensions and expands type aliases. For example in the following code, B is derived from A.

typealias A_alias = A

class B : A_alias {}
TypeDecl getADerivedTypeDecl()