Does anyone know why `KSType` does not extend `KSA...
# ksp
j
Does anyone know why
KSType
does not extend
KSAnnotated
?
It makes it difficult to handle without a single interface to represent things that have annotations
They both have
val annotations: Sequence<KSAnnotation>
j
KSAnnotated
is a subtype of
KSNode
while
KSType
is not.
j
I’m aware of that, however my suggestion is that it would be useful to have a contract for just “something that has annotations”
j
I see your point, changing class structure might be breaking for binary compatibilities. Generally, annotations on `type`s are considered different from annotations on symbols, in most of the time it should be sufficient to read annotations from
KSTypeReference
directly, are you processing annotations on actual types rather than the type reference?
z
yeah this was my thought as well - this seems like something for KSTypeReference