asName

fun String.asName(): Name

Convert the String to a Name by simply wrapping it in a single name token without parsing. The input string could contain dots and braces, but they are just escaped, not parsed.

fun NameToken.asName(): Name