numObjects

abstract fun numObjects(includeNested: Boolean = true): Int

Returns the number of objects present in the declaration.

Return

The number of objects in the declaration.

Parameters

includeNested

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