How can I create a KType from a string (the fully ...
# ksp
j
How can I create a KType from a string (the fully qualified name of a class) ?
j
resolver.getClassDeclarationByName()
to get the class declaration, and then calling
asType
or
asStarProjectedType()
to get the
KSType
j
And that will also work for classes not currently being compiled yes?
As well as non Kotlin classes?
j
yes
j
Great! thanks!