aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main/kotlin
diff options
context:
space:
mode:
authorMarcin Aman <maman@virtuslab.com>2020-07-24 12:51:06 +0200
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-08-03 13:47:51 +0200
commit460cdf8bc9c54efd736b10ca58a865f034bf2e84 (patch)
treee7711e55c85a0dcd82c12d8a0f0ce9589a0e9387 /plugins/base/src/main/kotlin
parent1e7d234dcc958e65d8b4a24714b33430b02739a2 (diff)
downloaddokka-460cdf8bc9c54efd736b10ca58a865f034bf2e84.tar.gz
dokka-460cdf8bc9c54efd736b10ca58a865f034bf2e84.tar.bz2
dokka-460cdf8bc9c54efd736b10ca58a865f034bf2e84.zip
Update callable name to include classname not <init>
Diffstat (limited to 'plugins/base/src/main/kotlin')
-rw-r--r--plugins/base/src/main/kotlin/translators/descriptors/DefaultDescriptorToDocumentableTranslator.kt5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/base/src/main/kotlin/translators/descriptors/DefaultDescriptorToDocumentableTranslator.kt b/plugins/base/src/main/kotlin/translators/descriptors/DefaultDescriptorToDocumentableTranslator.kt
index 526db8e7..84cd3793 100644
--- a/plugins/base/src/main/kotlin/translators/descriptors/DefaultDescriptorToDocumentableTranslator.kt
+++ b/plugins/base/src/main/kotlin/translators/descriptors/DefaultDescriptorToDocumentableTranslator.kt
@@ -369,13 +369,14 @@ private class DokkaDescriptorVisitor(
}
override fun visitConstructorDescriptor(descriptor: ConstructorDescriptor, parent: DRIWithPlatformInfo): DFunction {
- val dri = parent.dri.copy(callable = Callable.from(descriptor))
+ val name = descriptor.constructedClass.name.toString()
+ val dri = parent.dri.copy(callable = Callable.from(descriptor, name))
val actual = descriptor.createSources()
val isExpect = descriptor.isExpect
return DFunction(
dri = dri,
- name = descriptor.constructedClass.name.toString(),
+ name = name,
isConstructor = true,
receiver = descriptor.extensionReceiverParameter?.let {
visitReceiverParameterDescriptor(it, DRIWithPlatformInfo(dri, actual))