From 75834b6ae1a719be0298cefe7420ee3f9b7cd2a1 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Mon, 12 Oct 2015 13:02:59 +0200 Subject: update to Kotlin 0.15.439 --- src/Java/JavaDocumentationBuilder.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/Java/JavaDocumentationBuilder.kt') diff --git a/src/Java/JavaDocumentationBuilder.kt b/src/Java/JavaDocumentationBuilder.kt index 217a6a41..1cd8d819 100644 --- a/src/Java/JavaDocumentationBuilder.kt +++ b/src/Java/JavaDocumentationBuilder.kt @@ -229,9 +229,9 @@ public class JavaDocumentationBuilder(private val options: DocumentationOptions, else -> false } - fun DocumentationNode.appendChildren(elements: Array, - kind: DocumentationReference.Kind = DocumentationReference.Kind.Member, - buildFn: T.() -> DocumentationNode) { + fun DocumentationNode.appendChildren(elements: Array, + kind: DocumentationReference.Kind = DocumentationReference.Kind.Member, + buildFn: T.() -> DocumentationNode) { elements.forEach { if (!skipElement(it)) { append(it.buildFn(), kind) @@ -248,10 +248,10 @@ public class JavaDocumentationBuilder(private val options: DocumentationOptions, private fun hasSuppressTag(element: Any) = element is PsiDocCommentOwner && element.docComment?.let { it.findTagByName("suppress") != null } ?: false - fun DocumentationNode.appendMembers(elements: Array, buildFn: T.() -> DocumentationNode) = + fun DocumentationNode.appendMembers(elements: Array, buildFn: T.() -> DocumentationNode) = appendChildren(elements, DocumentationReference.Kind.Member, buildFn) - fun DocumentationNode.appendDetails(elements: Array, buildFn: T.() -> DocumentationNode) = + fun DocumentationNode.appendDetails(elements: Array, buildFn: T.() -> DocumentationNode) = appendChildren(elements, DocumentationReference.Kind.Detail, buildFn) fun PsiClass.build(): DocumentationNode { -- cgit