params

open fun params(name: String, types: Array<out KType> = typeMap[name] ?: error("No type parameters registered for $name")): String

Generates the type argument string (e.g., <kotlin.Int, kotlin.String>) for the variable with the given name, rendering each type with renderType.

Return

a formatted type parameter string, or an empty string if there are no parameters

Parameters

name

the variable name

types

the type parameters; defaults to those previously registered for name

Throws

if types is omitted and no types were registered for name