VarType

Distinguishes how a binding was introduced into scope.

  • PARAM bindings are function parameters. They are immutable in MiniKotlin and are read directly by their Java name inside generated code.

  • VAR bindings are declared with var. They are mutable and are heap-boxed in a single-element array so that inner lambdas produced by the CPS transformation can close over and mutate them. A read of a VAR binding emits javaName[0]; a write emits javaName[0] = value.

Entries

Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun valueOf(value: String): VarType

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.