diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-09-02 21:12:34 +0200 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-09-02 21:12:34 +0200 |
commit | 3d4cda549bdde68935cb0053dceddb8e64e1e20c (patch) | |
tree | 0efc80c1f7f33b72b003c080d7f45bddb7c6e65f /src | |
parent | befbe69c3863b1048b585e795ec2f99d5a10390e (diff) | |
download | dokka-3d4cda549bdde68935cb0053dceddb8e64e1e20c.tar.gz dokka-3d4cda549bdde68935cb0053dceddb8e64e1e20c.tar.bz2 dokka-3d4cda549bdde68935cb0053dceddb8e64e1e20c.zip |
update to latest Kotlin
Diffstat (limited to 'src')
-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 fdd385fb..13bed113 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>(elements: Array<T>, - kind: DocumentationReference.Kind = DocumentationReference.Kind.Member, - buildFn: T.() -> DocumentationNode) { + fun DocumentationNode.appendChildren<T : Any>(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.getDocComment()?.let { it.findTagByName("suppress") != null } ?: false - fun DocumentationNode.appendMembers<T>(elements: Array<T>, buildFn: T.() -> DocumentationNode) = + fun DocumentationNode.appendMembers<T : Any>(elements: Array<T>, buildFn: T.() -> DocumentationNode) = appendChildren(elements, DocumentationReference.Kind.Member, buildFn) - fun DocumentationNode.appendDetails<T>(elements: Array<T>, buildFn: T.() -> DocumentationNode) = + fun DocumentationNode.appendDetails<T : Any>(elements: Array<T>, buildFn: T.() -> DocumentationNode) = appendChildren(elements, DocumentationReference.Kind.Detail, buildFn) fun PsiClass.build(): DocumentationNode { |