I was trying to add typealias support to Room XPro...
# ksp
y
I was trying to add typealias support to Room XProcessing and hit an interesting case. Should there be a similar
getClassDeclarationByName
that supports
KSTypeAlias
. I'm honestly not sure what is the right behavior here. I think in XProcessing, we'll just resolve them immediately as we wrap which might cause some confusion but will work fine (except for the fact that generated code would access the resolved type rather than type alias). But i don't know if there are other cases where processors would need to find classes by type alias
for those interested, here is the CL: https://android-review.googlesource.com/c/platform/frameworks/support/+/1695089 cc: @elihart @gabrielfv
🙏 1
🤔 1
f
hmm I'm about to add JSR330 - like support in koin, and I think this will matter to me. I'll write something on the weekend to figure it out.
t
Implementation-wise, it is doable. But yeah, let's see the use case first.