evant
09/29/2020, 4:30 PMtype.replace()
but you need a KSTypeArgument
.
and you can get a type argument from
resolver.getTypeArgument()
but you need a type reference.
But I don't know how to get a type reference. You can do
resolver.getClassDeclarationByName("name").asType()
but that returns a KSType
not a KSTypeRefence
.Ting-Yuan Huang
09/29/2020, 5:03 PMJiaxiang
09/29/2020, 5:47 PMevant
09/29/2020, 5:55 PM