isCompanionObject

fun KtDeclaration.isCompanionObject(): Boolean

Return

true if the receiver declaration is a companion object

Sources

Link copied to clipboard