numPublicOrDefaultDeclarations

abstract fun numPublicOrDefaultDeclarations(includeNested: Boolean = true, includeLocal: Boolean = true): Int

Returns the number of declarations with public or default visibility modifier present in the declaration.

Return

The number of declarations in the declaration.

Parameters

includeNested

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

includeLocal

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