aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main/kotlin/transformers/documentables
diff options
context:
space:
mode:
authorMarcin Aman <maman@virtuslab.com>2020-05-07 17:10:10 +0200
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-05-19 13:47:03 +0200
commit3aeb65472be150a6098f2fac17dbdf0bb2a40013 (patch)
tree03540fe12ce6b139fbb7658a2d57d0e97023721c /plugins/base/src/main/kotlin/transformers/documentables
parente9d7fc75b46bb44f2c946b8cbb0636deb71e20dc (diff)
downloaddokka-3aeb65472be150a6098f2fac17dbdf0bb2a40013.tar.gz
dokka-3aeb65472be150a6098f2fac17dbdf0bb2a40013.tar.bz2
dokka-3aeb65472be150a6098f2fac17dbdf0bb2a40013.zip
Missing generics on class. Add generics to annotation #834
Diffstat (limited to 'plugins/base/src/main/kotlin/transformers/documentables')
-rw-r--r--plugins/base/src/main/kotlin/transformers/documentables/DefaultDocumentableMerger.kt3
-rw-r--r--plugins/base/src/main/kotlin/transformers/documentables/DocumentableVisibilityFilter.kt1
2 files changed, 3 insertions, 1 deletions
diff --git a/plugins/base/src/main/kotlin/transformers/documentables/DefaultDocumentableMerger.kt b/plugins/base/src/main/kotlin/transformers/documentables/DefaultDocumentableMerger.kt
index 862f9240..1b8fa299 100644
--- a/plugins/base/src/main/kotlin/transformers/documentables/DefaultDocumentableMerger.kt
+++ b/plugins/base/src/main/kotlin/transformers/documentables/DefaultDocumentableMerger.kt
@@ -175,7 +175,8 @@ fun DAnnotation.mergeWith(other: DAnnotation): DAnnotation = copy(
expectPresentInSet = expectPresentInSet ?: other.expectPresentInSet,
sources = sources+ other.sources,
visibility = visibility + other.visibility,
- sourceSets = sourceSets + other.sourceSets
+ sourceSets = sourceSets + other.sourceSets,
+ generics = merge(generics + other.generics, DTypeParameter::mergeWith)
).mergeExtras(this, other)
fun DParameter.mergeWith(other: DParameter): DParameter = copy(
diff --git a/plugins/base/src/main/kotlin/transformers/documentables/DocumentableVisibilityFilter.kt b/plugins/base/src/main/kotlin/transformers/documentables/DocumentableVisibilityFilter.kt
index 6fdce3a8..d15ec791 100644
--- a/plugins/base/src/main/kotlin/transformers/documentables/DocumentableVisibilityFilter.kt
+++ b/plugins/base/src/main/kotlin/transformers/documentables/DocumentableVisibilityFilter.kt
@@ -265,6 +265,7 @@ internal class DocumentableVisibilityFilter(val context: DokkaContext) : PreMerg
visibility.filtered(filteredPlatforms),
companion,
constructors,
+ generics,
filteredPlatforms,
extra
)