Pavel S
08/20/2023, 8:23 AMKClass<*>
is assignable from a certain KSClassDeclaration
?Pavel S
08/20/2023, 8:24 AMKSType
has isAssignableFrom
method, but I can get KSType
from the annotation argument, but can’t figure out how to get KSType
from KSClassDeclaration
Pavel S
08/20/2023, 11:04 AMKSClassDeclaration
via Resolver::getClassDeclarationByName
and use its KSClassDeclaration::getAllSuperTypes
methodDavid Rawson
08/20/2023, 7:19 PMKSClassDeclaration.asType()
work? If you don’t need to supply type arguments for the type parameters, asType(emptyList())
should work.