aboutsummaryrefslogtreecommitdiff
path: root/kotlin-analysis/src/main/kotlin/org/jetbrains/dokka/analysis
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 /kotlin-analysis/src/main/kotlin/org/jetbrains/dokka/analysis
parent1e7d234dcc958e65d8b4a24714b33430b02739a2 (diff)
downloaddokka-460cdf8bc9c54efd736b10ca58a865f034bf2e84.tar.gz
dokka-460cdf8bc9c54efd736b10ca58a865f034bf2e84.tar.bz2
dokka-460cdf8bc9c54efd736b10ca58a865f034bf2e84.zip
Update callable name to include classname not <init>
Diffstat (limited to 'kotlin-analysis/src/main/kotlin/org/jetbrains/dokka/analysis')
-rw-r--r--kotlin-analysis/src/main/kotlin/org/jetbrains/dokka/analysis/CallableFactory.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/kotlin-analysis/src/main/kotlin/org/jetbrains/dokka/analysis/CallableFactory.kt b/kotlin-analysis/src/main/kotlin/org/jetbrains/dokka/analysis/CallableFactory.kt
index ebfe20a5..de48cfae 100644
--- a/kotlin-analysis/src/main/kotlin/org/jetbrains/dokka/analysis/CallableFactory.kt
+++ b/kotlin-analysis/src/main/kotlin/org/jetbrains/dokka/analysis/CallableFactory.kt
@@ -7,9 +7,9 @@ import org.jetbrains.dokka.links.JavaClassReference
import org.jetbrains.dokka.links.TypeReference
import org.jetbrains.kotlin.descriptors.CallableDescriptor
-fun Callable.Companion.from(descriptor: CallableDescriptor) = with(descriptor) {
+fun Callable.Companion.from(descriptor: CallableDescriptor, name: String? = null) = with(descriptor) {
Callable(
- name.asString(),
+ name ?: descriptor.name.asString(),
extensionReceiverParameter?.let { TypeReference.from(it) },
valueParameters.mapNotNull { TypeReference.from(it) }
)