Ahmed na
02/28/2023, 12:12 AM@MyAnnotatoin
data class A(){
fun b(): MyAnnotatoinGeneratedClass {
return MyAnnotatoinGeneratedClass()
}
}
where MyAnnotatoinGeneratedClass
is a class that was generated by @MyAnnotation
Ofc i'm getting not resolved right nowBig Chungus
02/28/2023, 12:14 AMBig Chungus
02/28/2023, 12:14 AMyigit
02/28/2023, 12:14 AMyigit
02/28/2023, 12:15 AMAhmed na
02/28/2023, 12:16 AMAhmed na
02/28/2023, 12:17 AMBig Chungus
02/28/2023, 12:37 AMAhmed na
02/28/2023, 12:46 AM@MyAnnotatoin
data class A(){
fun b(): String {
val c = MyAnnotatoinGeneratedClass()
return c.process()
}
}
but when i used it as a return type i hit this wallJiaxiang
02/28/2023, 12:58 AMdata class A
to next round where (ideally) the generated class MyAnnotationGeneratedClass
should be available, am I misunderstanding anything here?Ahmed na
02/28/2023, 1:07 AM@Suppress
seams only for linttingJiaxiang
02/28/2023, 1:09 AMA
with the return result of SymbolProcessor.process()
, and therefore KSP will grab the deferred symbol in the next round, and if MyAnnotationGeneratedClass
is generated in the first round, it should be able to unblock the processing of A
in second round.Ahmed na
02/28/2023, 1:16 AMAhmed na
02/28/2023, 2:35 AMval validatedSymbols = resolved.filter {
it.validate()
true // <--- ignore validation
}.toList()
as for multi round/deferring i'll give another shot later
Thank you !