aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main/kotlin/translators/psi
diff options
context:
space:
mode:
authorKamil Doległo <kamilok1965@interia.pl>2020-06-12 09:51:31 +0200
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-06-15 13:15:30 +0200
commit0ff8ebe97f540fff0d6fac962749f73b1db689ef (patch)
tree6f249cae6c17e6d6098b33ce6d177a230396f2ac /plugins/base/src/main/kotlin/translators/psi
parentf3baf10b4c882230d382bfcdd94163d070bd0e25 (diff)
downloaddokka-0ff8ebe97f540fff0d6fac962749f73b1db689ef.tar.gz
dokka-0ff8ebe97f540fff0d6fac962749f73b1db689ef.tar.bz2
dokka-0ff8ebe97f540fff0d6fac962749f73b1db689ef.zip
Change sourceSet collection from List to Set
Diffstat (limited to 'plugins/base/src/main/kotlin/translators/psi')
-rw-r--r--plugins/base/src/main/kotlin/translators/psi/DefaultPsiToDocumentableTranslator.kt22
1 files changed, 11 insertions, 11 deletions
diff --git a/plugins/base/src/main/kotlin/translators/psi/DefaultPsiToDocumentableTranslator.kt b/plugins/base/src/main/kotlin/translators/psi/DefaultPsiToDocumentableTranslator.kt
index d68f0e01..a5fa4189 100644
--- a/plugins/base/src/main/kotlin/translators/psi/DefaultPsiToDocumentableTranslator.kt
+++ b/plugins/base/src/main/kotlin/translators/psi/DefaultPsiToDocumentableTranslator.kt
@@ -74,12 +74,12 @@ object DefaultPsiToDocumentableTranslator : SourceToDocumentableTranslator {
emptyList(),
emptyMap(),
null,
- listOf(sourceSetData)
+ setOf(sourceSetData)
)
},
emptyMap(),
null,
- listOf(sourceSetData)
+ setOf(sourceSetData)
)
}
@@ -166,7 +166,7 @@ object DefaultPsiToDocumentableTranslator : SourceToDocumentableTranslator {
null,
constructors.map { parseFunction(it, true) },
mapTypeParameters(dri),
- listOf(sourceSetData),
+ setOf(sourceSetData),
PropertyContainer.empty<DAnnotation>() + annotations.toList().getAnnotations()
.toSourceSetDependent().toAnnotations()
)
@@ -182,7 +182,7 @@ object DefaultPsiToDocumentableTranslator : SourceToDocumentableTranslator {
emptyList(),
emptyList(),
emptyList(),
- listOf(sourceSetData),
+ setOf(sourceSetData),
PropertyContainer.empty<DEnumEntry>() + entry.annotations.toList().getAnnotations()
.toSourceSetDependent().toAnnotations()
)
@@ -197,7 +197,7 @@ object DefaultPsiToDocumentableTranslator : SourceToDocumentableTranslator {
null,
constructors.map { parseFunction(it, true) },
ancestors,
- listOf(sourceSetData),
+ setOf(sourceSetData),
PropertyContainer.empty<DEnum>() + annotations.toList().getAnnotations().toSourceSetDependent()
.toAnnotations()
)
@@ -214,7 +214,7 @@ object DefaultPsiToDocumentableTranslator : SourceToDocumentableTranslator {
null,
mapTypeParameters(dri),
ancestors,
- listOf(sourceSetData),
+ setOf(sourceSetData),
PropertyContainer.empty<DInterface>() + annotations.toList().getAnnotations().toSourceSetDependent()
.toAnnotations()
)
@@ -233,7 +233,7 @@ object DefaultPsiToDocumentableTranslator : SourceToDocumentableTranslator {
documentation,
null,
modifiers,
- listOf(sourceSetData),
+ setOf(sourceSetData),
PropertyContainer.empty<DClass>() + annotations.toList().getAnnotations().toSourceSetDependent()
.toAnnotations()
)
@@ -257,7 +257,7 @@ object DefaultPsiToDocumentableTranslator : SourceToDocumentableTranslator {
javadocParser.parseDocumentation(psiParameter).toSourceSetDependent(),
null,
getBound(psiParameter.type),
- listOf(sourceSetData)
+ setOf(sourceSetData)
)
},
javadocParser.parseDocumentation(psi).toSourceSetDependent(),
@@ -268,7 +268,7 @@ object DefaultPsiToDocumentableTranslator : SourceToDocumentableTranslator {
psi.mapTypeParameters(dri),
null,
psi.getModifier().toSourceSetDependent(),
- listOf(sourceSetData),
+ setOf(sourceSetData),
psi.additionalExtras().let {
PropertyContainer.withAll(
InheritedFunction(isInherited),
@@ -350,7 +350,7 @@ object DefaultPsiToDocumentableTranslator : SourceToDocumentableTranslator {
javadocParser.parseDocumentation(type).toSourceSetDependent(),
null,
mapBounds(type.bounds),
- listOf(sourceSetData)
+ setOf(sourceSetData)
)
}
}
@@ -393,7 +393,7 @@ object DefaultPsiToDocumentableTranslator : SourceToDocumentableTranslator {
accessors.firstOrNull { it.hasParameters() }?.let { parseFunction(it) },
accessors.firstOrNull { it.returnType == psi.type }?.let { parseFunction(it) },
psi.getModifier().toSourceSetDependent(),
- listOf(sourceSetData),
+ setOf(sourceSetData),
emptyList(),
psi.additionalExtras().let {
PropertyContainer.withAll<DProperty>(