Skip to content

isFromCompanionBlock

Whether this declaration is declared inside a companion object block.

Example:

class Foo {
  companion {
    fun static1() {} // true
  }

  fun regular() {} // false
}