From 24710663084b0ccd964a2b8a3e0b1dacd63dac43 Mon Sep 17 00:00:00 2001 From: Andrzej Ratajczak Date: Thu, 13 Aug 2020 14:18:45 +0200 Subject: Add generic typealiases proper parsing and some tests --- .../descriptors/DefaultDescriptorToDocumentableTranslator.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins/base/src/main') diff --git a/plugins/base/src/main/kotlin/translators/descriptors/DefaultDescriptorToDocumentableTranslator.kt b/plugins/base/src/main/kotlin/translators/descriptors/DefaultDescriptorToDocumentableTranslator.kt index 383a3715..dac88768 100644 --- a/plugins/base/src/main/kotlin/translators/descriptors/DefaultDescriptorToDocumentableTranslator.kt +++ b/plugins/base/src/main/kotlin/translators/descriptors/DefaultDescriptorToDocumentableTranslator.kt @@ -501,7 +501,8 @@ private class DokkaDescriptorVisitor( underlyingType = underlyingType.toBound().toSourceSetDependent(), visibility = visibility.toDokkaVisibility().toSourceSetDependent(), documentation = resolveDescriptorData(), - sourceSets = setOf(sourceSet) + sourceSets = setOf(sourceSet), + generics = descriptor.declaredTypeParameters.map { it.toTypeParameter() } ) } -- cgit