hierarchy

expect fun TypeInfo.hierarchy(): Sequence<TypeInfo>(source)

Returns all types of the hierarchy, starting with the given type.

When type arguments are encountered, they are included in parent type arguments, so for example, Collection<Element> is included for the root type ArrayList<Element>.

Report a problem

actual fun TypeInfo.hierarchy(): Sequence<TypeInfo>(source)

Returns all types of the hierarchy, starting with the given type.

When type arguments are encountered, they are included in parent type arguments, so for example, Collection<Element> is included for the root type ArrayList<Element>.

Report a problem

actual fun TypeInfo.hierarchy(): Sequence<TypeInfo>(source)

This kind of reflection is currently only supported for the JVM platform.

For non-JVM platforms, we omit support for resolving covariant types of declared dependencies.

Report a problem