withFunctions

fun <T : KoFunctionProvider> List<T>.withFunctions(includeNested: Boolean = true, includeLocal: Boolean = true): List<T>

List containing declarations with any function.

Return

A list containing declarations with any function.

Parameters

includeNested

Whether to include nested functions.

includeLocal

Whether to include local functions.


fun <T : KoFunctionProvider> List<T>.withFunctions(includeNested: Boolean = true, includeLocal: Boolean = true, predicate: (List<KoFunctionDeclaration>) -> Boolean): List<T>

List containing declarations with function declarations satisfying the predicate.

Return

A list containing declarations with function declarations satisfying the predicate.

Parameters

includeNested

Whether to include nested functions.

includeLocal

Whether to include local functions.

predicate

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