I'm creating a lib for kotlin python interop and a...
# compiler
d
I'm creating a lib for kotlin python interop and as part of it, I thought it would be cool to also create a compiler plugin to make the syntax more friendly. The plugin is there mainly to enable dynamic types outside of kotlin/js. The only problem I have is adding the dynamic properties to FIR, afaik I have to return a list of available properties in
fun getCallableNamesForClass()
and that kinda doesn't work for this use case. Do you know any solution how to tell FIR to treat anything as a property when it is accessed as one? Basically
getCallableNamesForClass()
returning a wildcard for specified classes (I know this is not how to implement it, I just want to illustrate my objective). Preferably, I want the properties just as a getter/setter without the field behind it as I remap it later in the IR to get the actual calls to my lib.
d
It's impossible with the current API, and there are no plans to support such a case