aboutsummaryrefslogtreecommitdiff
path: root/plugins/javadoc/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/javadoc/src/main')
-rw-r--r--plugins/javadoc/src/main/kotlin/javadoc/location/JavadocLocationProvider.kt8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/javadoc/src/main/kotlin/javadoc/location/JavadocLocationProvider.kt b/plugins/javadoc/src/main/kotlin/javadoc/location/JavadocLocationProvider.kt
index 3a48261c..49278b06 100644
--- a/plugins/javadoc/src/main/kotlin/javadoc/location/JavadocLocationProvider.kt
+++ b/plugins/javadoc/src/main/kotlin/javadoc/location/JavadocLocationProvider.kt
@@ -76,7 +76,7 @@ class JavadocLocationProvider(pageRoot: RootPageNode, dokkaContext: DokkaContext
}
private fun JavadocFunctionNode.getAnchor(): String =
- "$name-${parameters.joinToString("-") {
+ "$name(${parameters.joinToString(",") {
when (val bound = if (it.typeBound is org.jetbrains.dokka.model.Nullable) it.typeBound.inner else it.typeBound) {
is TypeConstructor -> bound.dri.classNames.orEmpty()
is OtherParameter -> bound.name
@@ -85,15 +85,15 @@ class JavadocLocationProvider(pageRoot: RootPageNode, dokkaContext: DokkaContext
is JavaObject -> "Object"
else -> bound.toString()
}
- }}-"
+ }})"
fun anchorForFunctionNode(node: JavadocFunctionNode) = node.getAnchor()
private fun anchorForDri(dri: DRI): String =
dri.callable?.let { callable ->
- "${callable.name}-${callable.params.joinToString("-") {
+ "${callable.name}(${callable.params.joinToString(",") {
((it as? Nullable)?.wrapped ?: it).toString()
- }}-"
+ }})"
} ?: dri.classNames.orEmpty()
override fun resolve(node: PageNode, context: PageNode?, skipExtension: Boolean): String =