ForteScarlet / kotlin-suspend-transform-compiler-plugin

A Kotlin compiler plugin for transforming suspend functions to platform-compatible non-suspend functions, such as the JVM Blocking API and CompletableFuture or JS Promise, etc. 🐱
MIT License
36 stars 3 forks source link

Move to Kotlin Symbol Processing? #29

Open ScottPierce opened 1 year ago

ScottPierce commented 1 year ago

Have you thought about moving to Kotlin Symbol Processing as a way to work around the library with the compiler api you are encountering?

https://kotlinlang.org/docs/ksp-overview.html

ForteScarlet commented 1 year ago

Hi. I did actually intend to use KSP in the earliest days, but I found that the content generated by KSP seemed to be required as a separate file/class (i.e. it couldn't directly change the original class), which was different to what I needed at the time, so I ended up going with the compiler plugin.

KSP might indeed be a good option though, and perhaps I'll try to provide an additional version of KSP when I have time. But with my limited abilities this probably won't be soon 😣