aboutsummaryrefslogtreecommitdiff
path: root/plugins/base
diff options
context:
space:
mode:
authorMarcin Aman <maman@virtuslab.com>2020-07-08 11:33:28 +0200
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-07-13 14:47:37 +0200
commitd180633e91afd76de788a0bd1bfe75fe09f19aea (patch)
tree90ebfb5b5cc90f912e3b2c1a312a9b82becc2c0b /plugins/base
parentb67f44943bc80dedd70c4a9e120b9c6aec78ca72 (diff)
downloaddokka-d180633e91afd76de788a0bd1bfe75fe09f19aea.tar.gz
dokka-d180633e91afd76de788a0bd1bfe75fe09f19aea.tar.bz2
dokka-d180633e91afd76de788a0bd1bfe75fe09f19aea.zip
Rename processSuperClasses to buildInheritanceInformation
Diffstat (limited to 'plugins/base')
-rw-r--r--plugins/base/src/main/kotlin/translators/descriptors/DefaultDescriptorToDocumentableTranslator.kt14
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/base/src/main/kotlin/translators/descriptors/DefaultDescriptorToDocumentableTranslator.kt b/plugins/base/src/main/kotlin/translators/descriptors/DefaultDescriptorToDocumentableTranslator.kt
index 9ca8cdde..54bd793c 100644
--- a/plugins/base/src/main/kotlin/translators/descriptors/DefaultDescriptorToDocumentableTranslator.kt
+++ b/plugins/base/src/main/kotlin/translators/descriptors/DefaultDescriptorToDocumentableTranslator.kt
@@ -554,28 +554,28 @@ private class DokkaDescriptorVisitor(
getDocumentation()?.toSourceSetDependent() ?: emptyMap()
private fun ClassDescriptor.resolveClassDescriptionData(): ClassInfo {
- tailrec fun processSuperClasses(
+ tailrec fun buildInheritanceInformation(
inheritorClass: ClassDescriptor?,
interfaces: List<ClassDescriptor>,
level: Int = 0,
- inheritanceTree: Set<InheritanceLevel> = emptySet()
+ inheritanceInformation: Set<InheritanceLevel> = emptySet()
): Set<InheritanceLevel> {
- if (inheritorClass == null && interfaces.isEmpty()) return inheritanceTree
+ if (inheritorClass == null && interfaces.isEmpty()) return inheritanceInformation
- val updatedTree = inheritanceTree + InheritanceLevel(
+ val updated = inheritanceInformation + InheritanceLevel(
level,
inheritorClass?.let { DRI.from(it) },
interfaces.map { DRI.from(it) })
val superInterfacesFromClass = inheritorClass?.getSuperInterfaces().orEmpty()
- return processSuperClasses(
+ return buildInheritanceInformation(
inheritorClass = inheritorClass?.getSuperClassNotAny(),
interfaces = interfaces.flatMap { it.getSuperInterfaces() } + superInterfacesFromClass,
level = level + 1,
- inheritanceTree = updatedTree
+ inheritanceInformation = updated
)
}
return ClassInfo(
- processSuperClasses(getSuperClassNotAny(), getSuperInterfaces()).sortedBy { it.level },
+ buildInheritanceInformation(getSuperClassNotAny(), getSuperInterfaces()).sortedBy { it.level },
resolveDescriptorData()
)
}