resolveCanonicalType

Resolve the canonical type.

TODO merge with resolvePointeeType. (It wasn't done as of this writing because I'm not sure they will stay similare enough to allow a merge).

TODO I think that the resuilt from array/funcPtr/pointee should be checked if they are a typedef. May be a bug that complicates the result at other places.

resolveCanonicalType
(
LookupT
)
if (
__traits(hasMember, LookupT, "kind")
)

Parameters

LookupT

a type supporting the method "kind" taking a USR and returning a TypeKind.

type
Type: TypeKind

the type to resolve

lookup
Type: LookupT

see LookupT

Return Value

Type: auto

TypeKindAttr of the canonical type.

Meta