Open ansman opened 6 years ago
Ah yes sorry @ansman, the new version will bring a different signature for that interface!
By the way you're not required to implement the interface on the processor directly, it can be any class:
class NotAProcessor(
override val processingEnv: ProcessingEnvironment
) : KotlinMetadataUtils {
// ...
}
The processingEnv
is unusable in KotlinAbstractProcessor
child classes. To be able to access it you will need have to maintain a ref to it internally (and use that). Not great.
private lateinit var processingEnvironment: ProcessingEnvironment
override fun init(processingEnv: ProcessingEnvironment) {
super.init(processingEnv)
this.processingEnvironment = processingEnv
}