Gradle plugin that reads source code and `kotlin_m...
# multiplatform
j
Gradle plugin that reads source code and
kotlin_metadata
files.
e
I'm curious, what do you use the sources for?
j
What do you mean? I'm able to read them so I can do the equivalent of Kotlin Multiplatform Annotation Processing. It's really darn handy to have, especially considering there are no equivalents at the moment. Also, thanks for your work. It was your stuff that got me going in the right direction.
Also, I can process files from other Kotlin common modules, which means I can serialize basically anything in common
e
@josephivie I'm happy I could be helpful! 🙏 To be more specific, I'm curious about what you use the sources that the metadata doesn't hold 🙂
j
Defaults for arguments in a constructor. The metadata has no information on it as far as I can tell (besides that there is a default), so I can't calculate the default value without calling the constructor.
e
ah, yes, I really miss that! but since it's an expression, what do you do with it? provide an AST?
btw is it open source?
j
The thing reading the source? I mean, I’m just using ANTLR4. Mirror (my plugin) is open source - https://github.com/lightningkite/mirror-kotlin