countLocalDeclarations

abstract fun countLocalDeclarations(predicate: (KoBaseDeclaration) -> Boolean): Int

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

Return

The number of local declarations in the declaration.

Parameters

predicate

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