isInCompanionObject

fun KtDeclaration.isInCompanionObject(): Boolean

Return

true if the receiver declaration is inside a companion object

Sources

Link copied to clipboard