aboutsummaryrefslogtreecommitdiff
path: root/src/Kotlin
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-03-19 09:30:40 +0100
committerDmitry Jemerov <yole@jetbrains.com>2015-03-19 09:30:40 +0100
commit2e0d47c37aefc9073f5b8fda893c200d5724fdbf (patch)
tree650d2a3d05e60c8f399f5b356e4aa82a887bc213 /src/Kotlin
parent262755da97e7baacfe45bff889e08b0be76921c4 (diff)
downloaddokka-2e0d47c37aefc9073f5b8fda893c200d5724fdbf.tar.gz
dokka-2e0d47c37aefc9073f5b8fda893c200d5724fdbf.tar.bz2
dokka-2e0d47c37aefc9073f5b8fda893c200d5724fdbf.zip
fix deprecated lambda syntax
Diffstat (limited to 'src/Kotlin')
-rw-r--r--src/Kotlin/ContentBuilder.kt2
-rw-r--r--src/Kotlin/DocumentationBuilder.kt2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Kotlin/ContentBuilder.kt b/src/Kotlin/ContentBuilder.kt
index cc519ee6..ec276a00 100644
--- a/src/Kotlin/ContentBuilder.kt
+++ b/src/Kotlin/ContentBuilder.kt
@@ -21,7 +21,7 @@ public fun buildContentTo(tree: MarkdownNode, target: ContentBlock, linkResolver
val nodeStack = ArrayDeque<ContentBlock>()
nodeStack.push(target)
- tree.visit {(node, processChildren) ->
+ tree.visit {node, processChildren ->
val parent = nodeStack.peek()!!
when (node.type) {
MarkdownElementTypes.UNORDERED_LIST -> {
diff --git a/src/Kotlin/DocumentationBuilder.kt b/src/Kotlin/DocumentationBuilder.kt
index 0e0767d3..c31c3735 100644
--- a/src/Kotlin/DocumentationBuilder.kt
+++ b/src/Kotlin/DocumentationBuilder.kt
@@ -176,7 +176,7 @@ class DocumentationBuilder(val session: ResolveSession,
// don't include unresolved links in generated doc
// assume that if an href doesn't contain '/', it's not an attempt to reference an external file
if (symbol != null) {
- return ContentNodeLazyLink(href, {() -> refGraph.lookup(symbol.signature()) })
+ return ContentNodeLazyLink(href, { -> refGraph.lookup(symbol.signature()) })
}
if ("/" in href) {
return ContentExternalLink(href)