hasDeclarations

abstract fun hasDeclarations(includeNested: Boolean = true, includeLocal: Boolean = true): Boolean

Determines whatever the declaration has declarations.

Return

true if the declaration has any declaration, false otherwise.

Parameters

includeNested

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

includeLocal

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