asMemberName

Converts an Enum constant to a MemberName.

val EXACTLY_ONCE = InvocationKind.EXACTLY_ONCE.asMemberName()

@DelicateKotlinPoetApi(message = "This API uses internal Kotlin reflection APIs and might break at any time")
fun KCallable<*>.asMemberName(): MemberName(source)

Converts a reference to a callable (Property or function) to a MemberName.

val STRING_PLUS = String::plus.asMemberName()