Vladimir Tagakov
06/09/2022, 11:38 PMval annotation: KSAnnotation = //...
annotation.annotationType.resolve() // only resolves when annotation is not nested in a class
Jiaxiang
06/09/2022, 11:44 PMVladimir Tagakov
06/09/2022, 11:45 PMVladimir Tagakov
06/09/2022, 11:59 PMclass Outer {
annotation class Nested
}
com.google.devtools.ksp.symbol.KSAnnotation#getShortName
returns “Nested” but in our setup it for some reason returns “Outer$Nested”. Maybe it is somehow related to compilation units, but I can’t reproduce it in tests =(Jiaxiang
06/10/2022, 12:01 AMVladimir Tagakov
06/10/2022, 12:02 AM