Maik
04/13/2021, 8:46 AM@ErrorID val errorID = 0xA03L
Is it possible to implement such a requirement with ksp or would it require building a Kotlin compiler plugin?Jiaxiang
04/13/2021, 9:22 AMFabio
04/13/2021, 10:29 AM@ErrorID
and generate a new class file with a list of all those ids, which could in turn be run as a test.
Not sure about how to cross modules though. I think I saw some new expensive method in one of the latest releases.yigit
04/13/2021, 3:59 PMyigit
04/13/2021, 3:59 PMyigit
04/13/2021, 4:00 PMFabio
04/14/2021, 4:48 AMTing-Yuan Huang
04/14/2021, 5:31 AMgetDeclarationsFromPackage(packageName: String)
might be useful. By traversing the elements in the libraries / modules to find `errorID`s, the single test mentioned by @Fabio can be generated. Depending on where errorID
can appear (e.g., only top level), it might not be that expensive. Those `errorID`s has to be visible to the test, though.