countFunctions

abstract fun countFunctions(includeNested: Boolean = true, includeLocal: Boolean = true, predicate: (KoFunctionDeclaration) -> Boolean): Int

Returns the number of functions that satisfies the specified predicate present in the declaration.

Return

The number of functions in the declaration.

Parameters

includeNested

Specifies whether to include nested functions in the count (optional, default is true).

includeLocal

Specifies whether to include local functions in the count (optional, default is true).

predicate

The predicate function to determine if a function satisfies a condition.