hasDelegate

abstract fun hasDelegate(delegateName: String? = null): Boolean

Determines whatever declaration has a delegate with given name.

Return

true if the declaration has a delegate matching the specified name (or any delegate if delegateName is null), false otherwise.

Parameters

delegateName

the name of the delegate (optional).