https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
j

josephivie

11/03/2018, 5:35 PM
Gradle plugin that reads source code and
kotlin_metadata
files.
e

Eugenio

11/03/2018, 5:56 PM
I'm curious, what do you use the sources for?
j

josephivie

11/04/2018, 2:27 AM
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

Eugenio

11/04/2018, 1:27 PM
@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

josephivie

11/04/2018, 7:36 PM
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

Eugenio

11/05/2018, 3:30 PM
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

josephivie

11/05/2018, 4:08 PM
The thing reading the source? I mean, I’m just using ANTLR4. Mirror (my plugin) is open source - https://github.com/lightningkite/mirror-kotlin
4 Views