How to access scope function's parameter name with reflection
I have a scope function on the Reflect class I created; this class will try to use reflection and set the status property value to the InProgress instance. My challenge here is accessing the name of status from the reflection side so I can set the private field by name.
Reflect(myExampleInstance) {
on { status }.then(InProgress)
}
^ Here, I have status property that I have passed to the on function.
This is the reflection side:
inline fun on(
p: T.() -> R,
): OnGoingReflect {...