diff options
-rw-r--r-- | plugins/base/src/main/kotlin/transformers/documentables/ActualTypealiasAdder.kt | 6 | ||||
-rw-r--r-- | plugins/base/src/main/kotlin/transformers/documentables/DefaultDocumentableMerger.kt | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/plugins/base/src/main/kotlin/transformers/documentables/ActualTypealiasAdder.kt b/plugins/base/src/main/kotlin/transformers/documentables/ActualTypealiasAdder.kt index b3282b03..35f27a94 100644 --- a/plugins/base/src/main/kotlin/transformers/documentables/ActualTypealiasAdder.kt +++ b/plugins/base/src/main/kotlin/transformers/documentables/ActualTypealiasAdder.kt @@ -49,6 +49,12 @@ class ActualTypealiasAdder : PreMergeDocumentableTransformer { ).let(::listOf), typealiases ) + is DAnnotation -> addActualTypeAlias( + it.copy( + classlikes = addActualTypeAliasToClasslikes(it.classlikes, typealiases) + ).let(::listOf), + typealiases + ) else -> throw IllegalStateException("${it::class.qualifiedName} ${it.name} cannot have extra added") } as List<DClasslike> } diff --git a/plugins/base/src/main/kotlin/transformers/documentables/DefaultDocumentableMerger.kt b/plugins/base/src/main/kotlin/transformers/documentables/DefaultDocumentableMerger.kt index ddb5903b..23a67804 100644 --- a/plugins/base/src/main/kotlin/transformers/documentables/DefaultDocumentableMerger.kt +++ b/plugins/base/src/main/kotlin/transformers/documentables/DefaultDocumentableMerger.kt @@ -139,6 +139,7 @@ fun DClasslike.setPlatformData(platformData: List<PlatformData>): DClasslike = w is DEnum -> copy(platformData = platformData) is DInterface -> copy(platformData = platformData) is DObject -> copy(platformData = platformData) + is DAnnotation -> copy(platformData = platformData) else -> throw IllegalStateException("${this::class.qualifiedName} ${this.name} cannot have platform set") } |