diff options
author | Andrzej Ratajczak <andrzej.ratajczak98@gmail.com> | 2020-09-17 16:47:07 +0200 |
---|---|---|
committer | Andrzej Ratajczak <32793002+BarkingBad@users.noreply.github.com> | 2020-09-29 14:57:02 +0200 |
commit | 26415d91fcf32f0c70af4f9cea9500bca8187b0e (patch) | |
tree | a1be8fd6980fc16b0ca2957dd3f2c1d18ed80643 /plugins/base/src/main/kotlin/signatures/KotlinSignatureProvider.kt | |
parent | 7e572b6341bc7da3eeed4aef41665097ebad9f35 (diff) | |
download | dokka-26415d91fcf32f0c70af4f9cea9500bca8187b0e.tar.gz dokka-26415d91fcf32f0c70af4f9cea9500bca8187b0e.tar.bz2 dokka-26415d91fcf32f0c70af4f9cea9500bca8187b0e.zip |
Add processing of annotations to typealiases
Diffstat (limited to 'plugins/base/src/main/kotlin/signatures/KotlinSignatureProvider.kt')
-rw-r--r-- | plugins/base/src/main/kotlin/signatures/KotlinSignatureProvider.kt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/base/src/main/kotlin/signatures/KotlinSignatureProvider.kt b/plugins/base/src/main/kotlin/signatures/KotlinSignatureProvider.kt index d701de04..465f8cb7 100644 --- a/plugins/base/src/main/kotlin/signatures/KotlinSignatureProvider.kt +++ b/plugins/base/src/main/kotlin/signatures/KotlinSignatureProvider.kt @@ -279,14 +279,15 @@ class KotlinSignatureProvider(ctcc: CommentsToContentConverter, logger: DokkaLog private fun signature(t: DTypeAlias) = t.sourceSets.map { - contentBuilder.contentFor(t, styles = t.stylesIfDeprecated(it), sourceSets = setOf(it)) { + contentBuilder.contentFor(t, sourceSets = setOf(it)) { t.underlyingType.entries.groupBy({ it.value }, { it.key }).map { (type, platforms) -> +contentBuilder.contentFor( t, ContentKind.Symbol, - setOf(TextStyle.Monospace), + setOf(TextStyle.Monospace) + t.stylesIfDeprecated(it), sourceSets = platforms.toSet() ) { + annotationsBlock(t) text(t.visibility[it]?.takeIf { it !in ignoredVisibilities }?.name?.let { "$it " } ?: "") processExtraModifiers(t) text("typealias ") |