I'm updating my custom plugin to K2, and is runnin...
# compiler
a
I'm updating my custom plugin to K2, and is running into a recursion issue. My plugin generates additional constructors for data classes. I use the primary constructor to figure out which properties there are. But in K2, trying to get the primary constructor in my extension calls my extension again, presumably to generator all constructors. Does this mean I cannot do this in the FIR stage?
Specifically, I'm calling
primaryConstructorSymbol
from
FirDeclarationGenerationExtension.generateConstructors
d
There is a special context, passed to
generateConstuctors
, which contains
declaredMemberScope
, containing all not-generated declarations, present in this class (without its supertypes)