aboutsummaryrefslogtreecommitdiff
path: root/src/Java
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-10-29 13:31:16 +0100
committerDmitry Jemerov <yole@jetbrains.com>2015-10-29 13:31:16 +0100
commit4e09ac20457e2c4398406a1c23bf1f435f31349e (patch)
tree87e074f00e3d31ac3c73a2b1d64ad7fc20375f8d /src/Java
parentc9d59e9ae85f76e021d53c77ef18bfce0ff7ec7c (diff)
parent8216501e9a07940ed0a0be3d204733df9a9d811c (diff)
downloaddokka-4e09ac20457e2c4398406a1c23bf1f435f31349e.tar.gz
dokka-4e09ac20457e2c4398406a1c23bf1f435f31349e.tar.bz2
dokka-4e09ac20457e2c4398406a1c23bf1f435f31349e.zip
Merge branch 'javadoc' of https://github.com/cy6erGn0m/dokka into cy6erGn0m-javadoc
# Conflicts: # dokka.iml # javadoc/javadoc.iml # javadoc/src/main/kotlin/docbase.kt # javadoc/src/main/kotlin/dokka-adapters.kt # javadoc/src/main/kotlin/reporter.kt # javadoc/src/main/kotlin/tags.kt # src/Analysis/AnalysisEnvironment.kt # src/Analysis/CompilerAPI.kt # src/Formats/KotlinWebsiteFormatService.kt # src/Formats/StructuredFormatService.kt # src/Java/JavaDocumentationBuilder.kt # src/Kotlin/ContentBuilder.kt # src/Kotlin/DocumentationBuilder.kt # src/Languages/JavaLanguageService.kt # src/Model/Content.kt # src/Model/PackageDocs.kt # src/Utilities/GuiceModule.kt # src/Utilities/Path.kt # src/Utilities/ServiceLocator.kt # test/src/markdown/MarkdownTestRunner.kt
Diffstat (limited to 'src/Java')
-rw-r--r--src/Java/JavaDocumentationBuilder.kt10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/Java/JavaDocumentationBuilder.kt b/src/Java/JavaDocumentationBuilder.kt
index 01ecb478..88c13d38 100644
--- a/src/Java/JavaDocumentationBuilder.kt
+++ b/src/Java/JavaDocumentationBuilder.kt
@@ -108,8 +108,11 @@ public class JavaDocumentationBuilder(private val options: DocumentationOptions,
}
private fun MutableContent.convertSeeTag(tag: PsiDocTag) {
- val linkElement = tag.linkElement() ?: return
- val seeSection = findSectionByTag("See Also") ?: addSection("See Also", null)
+ val linkElement = tag.linkElement()
+ if (linkElement == null) {
+ return
+ }
+ val seeSection = findSectionByTag(ContentTags.SeeAlso) ?: addSection(ContentTags.SeeAlso, null)
val linkSignature = resolveLink(linkElement)
val text = ContentText(linkElement.text)
if (linkSignature != null) {
@@ -189,7 +192,7 @@ public class JavaDocumentationBuilder(private val options: DocumentationOptions,
is PsiField -> element.containingClass!!.qualifiedName + "#" + element.name
is PsiMethod ->
element.containingClass!!.qualifiedName + "#" + element.name + "(" +
- element.parameterList.parameters.map { it.type.typeSignature() }.joinToString(",") + ")"
+ element.parameterList.parameters.map { it.type.typeSignature() }.join(",") + ")"
else -> null
}
@@ -339,6 +342,7 @@ public class JavaDocumentationBuilder(private val options: DocumentationOptions,
fun DocumentationNode.appendModifiers(element: PsiModifierListOwner) {
val modifierList = element.modifierList ?: return
+
PsiModifier.MODIFIERS.forEach {
if (it != "static" && modifierList.hasExplicitModifier(it)) {
appendTextNode(it, Kind.Modifier)