withProperties

fun <T : KoPropertyProvider> List<T>.withProperties(includeNested: Boolean = true): List<T>

List containing declarations with any property.

Return

A list containing declarations with any property.

Parameters

includeNested

Whether to include nested properties.


fun <T : KoPropertyProvider> List<T>.withProperties(includeNested: Boolean = true, predicate: (List<KoPropertyDeclaration>) -> Boolean): List<T>

List containing declarations with property declarations satisfying the predicate.

Return

A list containing declarations with property declarations satisfying the predicate.

Parameters

includeNested

Whether to include nested properties.

predicate

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