isCompanionObject

fun KtDeclaration.isCompanionObject(): Boolean(source)

Return

true if the receiver declaration is a companion object

Since

0.12.0