CodeQL library for Swift
codeql/swift-all 2.0.4-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()