withParentClasses

fun <T : KoParentClassProvider> List<T>.withParentClasses(indirectParents: Boolean = false): List<T>

List containing declarations with any parent class.

Return

A list containing declarations with any parent class.

Parameters

indirectParents

Whether to include indirect parent classes.


fun <T : KoParentClassProvider> List<T>.withParentClasses(indirectParents: Boolean = false, predicate: (List<KoParentDeclaration>) -> Boolean): List<T>

List containing declarations with parent class declarations satisfying the predicate.

Return

A list containing declarations with parent class declarations satisfying the predicate.

Parameters

indirectParents

Whether to include indirect parent classes.

predicate

A function that defines the condition to be met by the list of parent class declarations.