aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main/kotlin/translators/psi/parsers
diff options
context:
space:
mode:
authorAndrzej Ratajczak <32793002+BarkingBad@users.noreply.github.com>2022-02-17 16:27:28 +0100
committerGitHub <noreply@github.com>2022-02-17 18:27:28 +0300
commit9a1434d583b931671e2c5e9c5275af725938d503 (patch)
treed1db2de7c5eb5bde0529c9f8d1a3c47f914fb2af /plugins/base/src/main/kotlin/translators/psi/parsers
parent13b87181219f5a96e499c6bda230f6bcd2ed3bc0 (diff)
downloaddokka-9a1434d583b931671e2c5e9c5275af725938d503.tar.gz
dokka-9a1434d583b931671e2c5e9c5275af725938d503.tar.bz2
dokka-9a1434d583b931671e2c5e9c5275af725938d503.zip
Refactor Ancestry Graphs (#2326)
Diffstat (limited to 'plugins/base/src/main/kotlin/translators/psi/parsers')
-rw-r--r--plugins/base/src/main/kotlin/translators/psi/parsers/PsiCommentsUtils.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/base/src/main/kotlin/translators/psi/parsers/PsiCommentsUtils.kt b/plugins/base/src/main/kotlin/translators/psi/parsers/PsiCommentsUtils.kt
index 1771595a..1d905e2d 100644
--- a/plugins/base/src/main/kotlin/translators/psi/parsers/PsiCommentsUtils.kt
+++ b/plugins/base/src/main/kotlin/translators/psi/parsers/PsiCommentsUtils.kt
@@ -98,7 +98,7 @@ internal fun findClosestDocComment(element: PsiNamedElement, logger: DokkaLogger
return findClosestDocComment(superMethods.single(), logger)
}
- val superMethodDocumentation = superMethods.map { method -> findClosestDocComment(method, logger) }
+ val superMethodDocumentation = superMethods.map { method -> findClosestDocComment(method, logger) }.distinct()
if (superMethodDocumentation.size == 1) {
return superMethodDocumentation.single()
}
@@ -143,4 +143,4 @@ internal fun PsiDocTag.contentElementsWithSiblingIfNeeded(): List<PsiElement> =
}
internal fun PsiDocTag.resolveToElement(): PsiElement? =
- dataElements.firstOrNull()?.firstChild?.referenceElementOrSelf()?.resolveToGetDri() \ No newline at end of file
+ dataElements.firstOrNull()?.firstChild?.referenceElementOrSelf()?.resolveToGetDri()