hasChildren

abstract fun hasChildren(indirectChildren: Boolean = false): Boolean

Whatever declaration has any child defined directly in the Kotlin file.

Return

true if the declaration has any child, false otherwise.

Parameters

indirectChildren

specifies whether to include children defined in other files such as child of the child.