Skip to content

Companion

object Companion

Properties

ANNOTATION_CLASS

An annotation class only.

CLASS

A class, interface, or object, including annotation classes.

CONSTRUCTOR

A constructor (primary or secondary).

EXPRESSION

Any expression.

FIELD

A field, including a property's backing field.

FILE

FUNCTION

A function (constructors are not included).

LOCAL_VARIABLE

A local variable.

PROPERTY

PROPERTY_GETTER

A property getter only.

PROPERTY_SETTER

A property setter only.

TYPE

A type usage.

TYPE_PARAMETER

A generic type parameter.

TYPEALIAS

A type alias.

VALUE_PARAMETER

A value parameter of a function or a constructor.