aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main/kotlin/translators/psi
diff options
context:
space:
mode:
authorFilip Zybała <fzybala@virtuslab.com>2020-03-20 15:27:30 +0100
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-03-26 12:36:03 +0100
commit8a87b5e0bd2eda12f4e44512e3f8856c72e53b3e (patch)
tree75b10c56bd933e2cfdcf0c32492ce9d6b61b1533 /plugins/base/src/main/kotlin/translators/psi
parent8ef04b5d6bb46a5fbd9cea9b8d08048bc9f03879 (diff)
downloaddokka-8a87b5e0bd2eda12f4e44512e3f8856c72e53b3e.tar.gz
dokka-8a87b5e0bd2eda12f4e44512e3f8856c72e53b3e.tar.bz2
dokka-8a87b5e0bd2eda12f4e44512e3f8856c72e53b3e.zip
Changed modifier to PlatformDependent
Diffstat (limited to 'plugins/base/src/main/kotlin/translators/psi')
-rw-r--r--plugins/base/src/main/kotlin/translators/psi/DefaultPsiToDocumentableTranslator.kt7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/base/src/main/kotlin/translators/psi/DefaultPsiToDocumentableTranslator.kt b/plugins/base/src/main/kotlin/translators/psi/DefaultPsiToDocumentableTranslator.kt
index 218f8c82..ee862fb8 100644
--- a/plugins/base/src/main/kotlin/translators/psi/DefaultPsiToDocumentableTranslator.kt
+++ b/plugins/base/src/main/kotlin/translators/psi/DefaultPsiToDocumentableTranslator.kt
@@ -122,6 +122,7 @@ object DefaultPsiToDocumentableTranslator : PsiToDocumentableTranslator {
val classlikes = innerClasses.map { parseClasslike(it, dri) }
val visibility = getVisibility().toPlatformDependant()
val ancestors = ancestorsSet.toList().toPlatformDependant()
+ val modifiers = getModifier().toPlatformDependant()
return when {
isAnnotationType ->
DAnnotation(
@@ -193,7 +194,7 @@ object DefaultPsiToDocumentableTranslator : PsiToDocumentableTranslator {
mapTypeParameters(dri),
ancestors,
documentation,
- getModifier(),
+ modifiers,
listOf(platformData),
PropertyContainer.empty<DClass>() + annotations.toList().toExtra()
)
@@ -226,7 +227,7 @@ object DefaultPsiToDocumentableTranslator : PsiToDocumentableTranslator {
psi.returnType?.let { getBound(type = it) } ?: Void,
psi.mapTypeParameters(dri),
null,
- psi.getModifier(),
+ psi.getModifier().toPlatformDependant(),
listOf(platformData),
PropertyContainer.withAll(
InheritedFunction(isInherited),
@@ -339,7 +340,7 @@ object DefaultPsiToDocumentableTranslator : PsiToDocumentableTranslator {
null,
accessors.firstOrNull { it.hasParameters() }?.let { parseFunction(it, parent) },
accessors.firstOrNull { it.returnType == psi.type }?.let { parseFunction(it, parent) },
- psi.getModifier(),
+ psi.getModifier().toPlatformDependant(),
listOf(platformData),
PropertyContainer.empty<DProperty>() + psi.annotations.toList().toExtra()
)