diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-10-12 13:02:59 +0200 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-10-12 13:02:59 +0200 |
commit | 75834b6ae1a719be0298cefe7420ee3f9b7cd2a1 (patch) | |
tree | f7a859cf48ef1bdd28285e6b8ce18e9802772806 /src/Java | |
parent | 0a0710043b939faf75cce527e81253d46bf4f4fa (diff) | |
download | dokka-75834b6ae1a719be0298cefe7420ee3f9b7cd2a1.tar.gz dokka-75834b6ae1a719be0298cefe7420ee3f9b7cd2a1.tar.bz2 dokka-75834b6ae1a719be0298cefe7420ee3f9b7cd2a1.zip |
update to Kotlin 0.15.439
Diffstat (limited to 'src/Java')
-rw-r--r-- | src/Java/JavaDocumentationBuilder.kt | 10 |
1 files changed, 5 insertions, 5 deletions
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<T : Any>(elements: Array<T>, - kind: DocumentationReference.Kind = DocumentationReference.Kind.Member, - buildFn: T.() -> DocumentationNode) { + fun <T : Any> DocumentationNode.appendChildren(elements: Array<T>, + 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<T : Any>(elements: Array<T>, buildFn: T.() -> DocumentationNode) = + fun <T : Any> DocumentationNode.appendMembers(elements: Array<T>, buildFn: T.() -> DocumentationNode) = appendChildren(elements, DocumentationReference.Kind.Member, buildFn) - fun DocumentationNode.appendDetails<T : Any>(elements: Array<T>, buildFn: T.() -> DocumentationNode) = + fun <T : Any> DocumentationNode.appendDetails(elements: Array<T>, buildFn: T.() -> DocumentationNode) = appendChildren(elements, DocumentationReference.Kind.Detail, buildFn) fun PsiClass.build(): DocumentationNode { |