sandwwraith
09/21/2018, 2:38 PMdecodeElementIndex
indeed produces element index. You need to switch over it and then select proper property to decodealtavir
09/21/2018, 2:39 PMaltavir
09/21/2018, 2:40 PMval key = decodeCharElement(descriptor, 0)
altavir
09/21/2018, 2:40 PMsandwwraith
09/21/2018, 2:41 PMaltavir
09/21/2018, 2:41 PMsandwwraith
09/21/2018, 2:41 PMsourcegen
that contains test data manually generated and committed to the repo. It has similar structure to what the plugin produces:
https://github.com/Kotlin/kotlinx.serialization/blob/refactoring_sourcegen/integration-tests/test-data-sourcegen/src/SimpleData.kt#L61altavir
09/21/2018, 2:49 PM