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

Member predicate Raw::Type::getCanonicalType

Gets the canonical type of this type.

This is the unique type we get after resolving aliases and desugaring. For example, given

typealias MyInt = Int

then [MyInt?] has the canonical type Array<Optional<Int>>.

Type getCanonicalType()