Teodor Penkov
11/19/2021, 9:27 AM@optics
annotation to the data classes. I started creating custom plugin based on the optics compiler plugin, so I can look for the classes that I want (e.g.is a data class && it's in specific location
) but that doesn’t seem like the right thing to do.
What would you suggest for the 3rd party code?
pp. I’ve managed to generate some code, but then I stumbled upon errors such as unresolved references etc.simon.vergauwen
11/19/2021, 9:43 AMsimon.vergauwen
11/19/2021, 9:44 AMTeodor Penkov
11/19/2021, 9:47 AMTeodor Penkov
11/19/2021, 9:50 AMdata class A {
data class Data
}
data class B {
data class Data
}
In the above example I would want to generate optics for both inner Data classes, but I’m not sure if that wouldn’t run into namespace issuessimon.vergauwen
11/22/2021, 9:06 AMsimon.vergauwen
11/22/2021, 9:06 AMpackage.A.Data
and package.B.Data
Teodor Penkov
11/22/2021, 9:06 AM