getByLabel

fun getByLabel(label: String): T

Returns the kind whose label equals label. The failure message identifies the hierarchy by the root's simple name, because qualified names are unavailable on some platforms (e.g. JS).

Throws

if no kind has that label.