https://kotlinlang.org logo
#squarelibraries
Title
# squarelibraries
w

William Reed

09/23/2021, 9:09 PM
looking at
TypeMirror.asTypeName()
from kotlin poet suggests using
kotlinpoet-metadata
instead. looking through the docs i don’t really see how I can perform the same type of operation from within an annotation processor on an
Element
to get a type name. any suggestions?
e

ephemient

09/24/2021, 1:16 AM
Copy code
package com.squareup.kotlinpoet.metadata
@KotlinPoetMetadataPreview
public fun TypeElement.toKmClass(): KmClass
w

William Reed

09/24/2021, 12:55 PM
thanks 🙂
12 Views