Can I get Problemes.NO from
: Memes(Problemes.NO)
during annotations processing somehow?
sealed class Memes(val pr: Problemes) {
enum class Problemes { NO }
↓↓↓
data class Foo(val moo: String) : Memes(Problemes.NO)
}
Or java:
class Foo extends Memes {
constructor(String moo) {
super(Problemes.NO); // <- this bad boy
}
}
What I tried:
*KotlinPoet metadata dark magic - couldn't find anything related to super type constructor call in it
*Java TreePathScanner with visitExpressionStatement
and visitVariable
overriden - no results at all
My thoughts:
Source file parsing, but during annotations processing it doesn't look like good idea.