diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Java/JavaDocumentationBuilder.kt | 4 | ||||
-rw-r--r-- | src/Kotlin/ContentBuilder.kt | 2 | ||||
-rw-r--r-- | src/Kotlin/DocumentationBuilder.kt | 2 | ||||
-rw-r--r-- | src/Markdown/MarkdownProcessor.kt | 2 | ||||
-rw-r--r-- | src/Model/DocumentationReference.kt | 6 |
5 files changed, 8 insertions, 8 deletions
diff --git a/src/Java/JavaDocumentationBuilder.kt b/src/Java/JavaDocumentationBuilder.kt index 7987a416..6c83fd61 100644 --- a/src/Java/JavaDocumentationBuilder.kt +++ b/src/Java/JavaDocumentationBuilder.kt @@ -94,7 +94,7 @@ public class JavaDocumentationBuilder(private val options: DocumentationOptions, private fun createLink(element: Element): ContentBlock { val docref = element.attr("docref") if (docref != null) { - return ContentNodeLazyLink(docref, {() -> refGraph.lookup(docref)}) + return ContentNodeLazyLink(docref, { -> refGraph.lookup(docref)}) } val href = element.attr("href") if (href != null) { @@ -113,7 +113,7 @@ public class JavaDocumentationBuilder(private val options: DocumentationOptions, val linkSignature = resolveLink(linkElement) val text = ContentText(linkElement.getText()) if (linkSignature != null) { - val linkNode = ContentNodeLazyLink(tag.getValueElement()!!.getText(), {() -> refGraph.lookup(linkSignature)}) + val linkNode = ContentNodeLazyLink(tag.getValueElement()!!.getText(), { -> refGraph.lookup(linkSignature)}) linkNode.append(text) seeSection.append(linkNode) } else { 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) diff --git a/src/Markdown/MarkdownProcessor.kt b/src/Markdown/MarkdownProcessor.kt index 80c726c9..ca5799e2 100644 --- a/src/Markdown/MarkdownProcessor.kt +++ b/src/Markdown/MarkdownProcessor.kt @@ -27,7 +27,7 @@ fun MarkdownNode.visit(action: (MarkdownNode, () -> Unit) -> Unit) { public fun MarkdownNode.toTestString(): String { val sb = StringBuilder() var level = 0 - visit {(node, visitChildren) -> + visit { node, visitChildren -> sb.append(" ".repeat(level * 2)) node.presentTo(sb) level++ diff --git a/src/Model/DocumentationReference.kt b/src/Model/DocumentationReference.kt index 73d883e6..b563b058 100644 --- a/src/Model/DocumentationReference.kt +++ b/src/Model/DocumentationReference.kt @@ -36,15 +36,15 @@ class NodeReferenceGraph() { } fun link(fromNode: DocumentationNode, toSignature: String, kind: DocumentationReference.Kind) { - references.add(PendingDocumentationReference({() -> fromNode}, {() -> nodeMap[toSignature]}, kind)) + references.add(PendingDocumentationReference({ -> fromNode}, { -> nodeMap[toSignature]}, kind)) } fun link(fromSignature: String, toNode: DocumentationNode, kind: DocumentationReference.Kind) { - references.add(PendingDocumentationReference({() -> nodeMap[fromSignature]}, {() -> toNode}, kind)) + references.add(PendingDocumentationReference({ -> nodeMap[fromSignature]}, { -> toNode}, kind)) } fun link(fromSignature: String, toSignature: String, kind: DocumentationReference.Kind) { - references.add(PendingDocumentationReference({() -> nodeMap[fromSignature]}, {() -> nodeMap[toSignature]}, kind)) + references.add(PendingDocumentationReference({ -> nodeMap[fromSignature]}, { -> nodeMap[toSignature]}, kind)) } fun lookup(signature: String): DocumentationNode? = nodeMap[signature] |