countInitBlocks

abstract fun countInitBlocks(predicate: (KoInitBlockDeclaration) -> Boolean): Int

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

Return

The number of init blocks in the declaration.

Parameters

predicate

The predicate function to determine if an init block satisfies a condition.