Mateus Moreira
12/07/2022, 10:07 PMdocumentables
as DFunction I can get the parameters but they lack the comments and generic types are erased, ex: test: Provider<String>
would turn into just Provider
.
Could I get some advice on how to correctly approach this? I feel like I am not doing this the correct way.jaguililla
12/08/2022, 8:35 AMMateus Moreira
12/08/2022, 2:42 PMVadim Mishenev
12/08/2022, 3:30 PMIf I use theDokka keeps generic types. E.g.,as DFunction I can get the parameters but they lack the comments and generic types are erased, ex:documentables
would turn into justtest: Provider<String>
.Provider
DParameter.type
will have GenericTypeConstructor
type.
You can have a look at our unit tests:
https://github.com/Kotlin/dokka/blob/4451b8e546584da389da60f73b56ce25d6ac2eaa/plugins/base/src/test/kotlin/model/FunctionsTest.kt#L217
and how we generate function signatures:
https://github.com/Kotlin/dokka/blob/c0aece910e9b012a45ef577136a3f986c52df23e/plugins/base/src/main/kotlin/signatures/KotlinSignatureProvider.kt#L301Mateus Moreira
12/10/2022, 6:11 PMMateus Moreira
12/11/2022, 2:26 PM-
plus the class name lower kebab cased? Basically I need the json to link to the original html docs when possibleVadim Mishenev
12/11/2022, 7:30 PMMateus Moreira
12/11/2022, 11:10 PM