diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-02-10 19:42:30 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-02-10 19:42:30 +0100 |
commit | c5e98b1481c48954b6336916eca3644adb5f9372 (patch) | |
tree | 026df0fbc1aaf1f0fe96143d32571e8374825d75 /src | |
parent | ebbf265dbe9d5fe37e56c9baa567edaf21dd16fa (diff) | |
download | dokka-c5e98b1481c48954b6336916eca3644adb5f9372.tar.gz dokka-c5e98b1481c48954b6336916eca3644adb5f9372.tar.bz2 dokka-c5e98b1481c48954b6336916eca3644adb5f9372.zip |
fix links to supertypes
Diffstat (limited to 'src')
-rw-r--r-- | src/Kotlin/KotlinLanguageService.kt | 2 | ||||
-rw-r--r-- | src/Model/Content.kt | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Kotlin/KotlinLanguageService.kt b/src/Kotlin/KotlinLanguageService.kt index 26eee435..526582e6 100644 --- a/src/Kotlin/KotlinLanguageService.kt +++ b/src/Kotlin/KotlinLanguageService.kt @@ -58,7 +58,7 @@ class KotlinLanguageService : LanguageService { } } - private fun ContentBlock.renderLinked(node: DocumentationNode, body: ContentNode.(DocumentationNode)->Unit) { + private fun ContentBlock.renderLinked(node: DocumentationNode, body: ContentBlock.(DocumentationNode)->Unit) { val to = node.links.firstOrNull() if (to == null) body(node) diff --git a/src/Model/Content.kt b/src/Model/Content.kt index 7a0f6c2e..f74a4461 100644 --- a/src/Model/Content.kt +++ b/src/Model/Content.kt @@ -76,7 +76,7 @@ fun ContentBlock.keyword(value: String) = append(ContentKeyword(value)) fun ContentBlock.symbol(value: String) = append(ContentSymbol(value)) fun ContentBlock.identifier(value: String) = append(ContentIdentifier(value)) -fun ContentBlock.link(to: DocumentationNode, body: ContentNode.() -> Unit) { +fun ContentBlock.link(to: DocumentationNode, body: ContentBlock.() -> Unit) { val block = ContentNodeLink(to) block.body() append(block) |