diff options
author | Kamil Doległo <kamilok1965@interia.pl> | 2020-03-13 12:08:29 +0100 |
---|---|---|
committer | Paweł Marks <pmarks@virtuslab.com> | 2020-03-17 16:31:44 +0100 |
commit | 0b6b990d286e22bd86aef3a7e73fbfb38ffa04ef (patch) | |
tree | 0dd378bddc635d2fae2a1f91839235a144f530fe /plugins/base/src/main/kotlin/translators | |
parent | a01554561ca8d18a1cf3c94df47e4b38fae1c538 (diff) | |
download | dokka-0b6b990d286e22bd86aef3a7e73fbfb38ffa04ef.tar.gz dokka-0b6b990d286e22bd86aef3a7e73fbfb38ffa04ef.tar.bz2 dokka-0b6b990d286e22bd86aef3a7e73fbfb38ffa04ef.zip |
Add a rough draft of deprecated signatures formatting
Diffstat (limited to 'plugins/base/src/main/kotlin/translators')
-rw-r--r-- | plugins/base/src/main/kotlin/translators/psi/DefaultPsiToDocumentableTranslator.kt | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/base/src/main/kotlin/translators/psi/DefaultPsiToDocumentableTranslator.kt b/plugins/base/src/main/kotlin/translators/psi/DefaultPsiToDocumentableTranslator.kt index 0e1e0a18..549e765f 100644 --- a/plugins/base/src/main/kotlin/translators/psi/DefaultPsiToDocumentableTranslator.kt +++ b/plugins/base/src/main/kotlin/translators/psi/DefaultPsiToDocumentableTranslator.kt @@ -145,7 +145,7 @@ object DefaultPsiToDocumentableTranslator : PsiToDocumentableTranslator { null, constructors.map { parseFunction(it, dri, true) }, listOf(platformData), - PropertyContainer.empty<Annotation>() + annotations.toList().toExtra() + PropertyContainer.empty<DAnnotation>() + annotations.toList().toExtra() ) isEnum -> DEnum( dri, @@ -159,7 +159,7 @@ object DefaultPsiToDocumentableTranslator : PsiToDocumentableTranslator { emptyList(), emptyList(), listOf(platformData), - PropertyContainer.empty<EnumEntry>() + entry.annotations.toList().toExtra() + PropertyContainer.empty<DEnumEntry>() + entry.annotations.toList().toExtra() ) }, documentation, @@ -172,7 +172,7 @@ object DefaultPsiToDocumentableTranslator : PsiToDocumentableTranslator { constructors.map { parseFunction(it, dri, true) }, ancestors, listOf(platformData), - PropertyContainer.empty<Enum>() + annotations.toList().toExtra() + PropertyContainer.empty<DEnum>() + annotations.toList().toExtra() ) isInterface -> DInterface( dri, @@ -187,7 +187,7 @@ object DefaultPsiToDocumentableTranslator : PsiToDocumentableTranslator { mapTypeParameters(dri), ancestors, listOf(platformData), - PropertyContainer.empty<Interface>() + annotations.toList().toExtra() + PropertyContainer.empty<DInterface>() + annotations.toList().toExtra() ) else -> DClass( dri, @@ -204,7 +204,7 @@ object DefaultPsiToDocumentableTranslator : PsiToDocumentableTranslator { documentation, getModifier(), listOf(platformData), - PropertyContainer.empty<Class>() + annotations.toList().toExtra() + PropertyContainer.empty<DClass>() + annotations.toList().toExtra() ) } } @@ -351,7 +351,7 @@ object DefaultPsiToDocumentableTranslator : PsiToDocumentableTranslator { accessors.firstOrNull { it.returnType == psi.type }?.let { parseFunction(it, parent) }, psi.getModifier(), listOf(platformData), - PropertyContainer.empty<Property>() + psi.annotations.toList().toExtra() + PropertyContainer.empty<DProperty>() + psi.annotations.toList().toExtra() ) } |