withParentClass

List containing declarations with any direct parent class.

Return

A list containing declarations with any direct parent class.


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

List containing declarations with the specified parent class.

Return

A list containing declarations with the specified parent class.

Parameters

indirectParents

Whether to include indirect parent classes.

predicate

The predicate function to determine if a declaration parent class satisfies a condition.