define

fun define(name: String, javaName: String, kind: VarType)

Registers name in this scope.

Parameters

name

The MiniKotlin source name (e.g. x).

javaName

The generated Java name (e.g. x_0). For VarType.PARAM this is the same as name; for VarType.VAR it is suffixed with a unique counter to avoid collisions across nested lambda scopes.

kind

Whether this binding is a VarType.PARAM or VarType.VAR.