countVariables

abstract fun countVariables(predicate: (KoVariableDeclaration) -> Boolean): Int

Gets the number of variables that satisfies the specified predicate present in the declaration.

Return

The number of variables in the declaration.

Parameters

predicate

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