isInCompanionObject

fun KtDeclaration.isInCompanionObject(): Boolean(source)

Return

true if the receiver declaration is inside a companion object

Since

0.12.0