typeReferencesRecursive
fun ClassOrInterfaceType.typeReferencesRecursive(): Sequence<ClassOrInterfaceType>
Content copied to clipboard
Includes all types referenced by the receiver ClassOrInterfaceType, optionally including itself.
For instance, given the function:
public javax.inject.Provider<List<String>> getStringListProvider() { /* ... */}
Content copied to clipboard
This function with will return a sequence of 'javax.inject.Provider', 'List', 'String'.
Return
A Sequence of all Types referenced by the receiver class type.