with Functions
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
include Nested
Whether to include nested functions.
include Local
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
include Nested
Whether to include nested functions.
include Local
Whether to include local functions.
predicate
A function that defines the condition to be met by the list of function declarations.