From c5e98b1481c48954b6336916eca3644adb5f9372 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Tue, 10 Feb 2015 19:42:30 +0100 Subject: fix links to supertypes --- src/Kotlin/KotlinLanguageService.kt | 2 +- src/Model/Content.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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) -- cgit