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

Member predicate Impl::TypeDecl::getABaseTypeDecl

Gets the declaration of any of the base types of this type declaration. Expands protocols added in extensions and expands type aliases. For example in the following code, B has base type A.

typealias A_alias = A

class B : A_alias {}
TypeDecl getABaseTypeDecl()