aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main
diff options
context:
space:
mode:
authorVadim Mishenev <vad-mishenev@yandex.ru>2022-06-07 14:49:18 +0300
committerGitHub <noreply@github.com>2022-06-07 14:49:18 +0300
commit2e4121457a0fbae1a216007aee6c84a01be628f5 (patch)
treef2bf3fc80982d6fdd60db1ffed5ee5a053862355 /plugins/base/src/main
parent73f78dc34bbcb683f345192629bdbc631035887e (diff)
downloaddokka-2e4121457a0fbae1a216007aee6c84a01be628f5.tar.gz
dokka-2e4121457a0fbae1a216007aee6c84a01be628f5.tar.bz2
dokka-2e4121457a0fbae1a216007aee6c84a01be628f5.zip
Bump Kotlin to 1.7.0-RC2 (#2522)
Diffstat (limited to 'plugins/base/src/main')
-rw-r--r--plugins/base/src/main/kotlin/translators/descriptors/DefaultDescriptorToDocumentableTranslator.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/base/src/main/kotlin/translators/descriptors/DefaultDescriptorToDocumentableTranslator.kt b/plugins/base/src/main/kotlin/translators/descriptors/DefaultDescriptorToDocumentableTranslator.kt
index 57c5fe18..6c4d7a0d 100644
--- a/plugins/base/src/main/kotlin/translators/descriptors/DefaultDescriptorToDocumentableTranslator.kt
+++ b/plugins/base/src/main/kotlin/translators/descriptors/DefaultDescriptorToDocumentableTranslator.kt
@@ -587,7 +587,7 @@ private class DokkaDescriptorVisitor(
parameter(index, desc, DRIWithPlatformInfo(dri, actual))
},
sources = actual,
- expectPresentInSet = if(isExpect) sourceSet else null,
+ expectPresentInSet = sourceSet.takeIf { isExpect },
visibility = descriptor.visibility.toDokkaVisibility().toSourceSetDependent(),
documentation = descriptor.resolveDescriptorData().let { sourceSetDependent ->
if (descriptor.isPrimary) {