withAllParentClasses

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

List containing declarations that have all parent classes satisfying the provided predicate.

Return

A filtered list containing declarations with all parent classes satisfying the predicate.

Parameters

indirectParents

Whether to include indirect parent classes.

predicate

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