withoutFunctions

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

List containing declarations with no functions.

Return

A list containing declarations with no functions.

Parameters

includeNested

Whether to include nested functions.

includeLocal

Whether to include local functions.


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

List containing declarations without function declarations satisfying the predicate.

Return

A list containing declarations without 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.