aboutsummaryrefslogtreecommitdiff
path: root/src/Java/JavaDocumentationBuilder.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/Java/JavaDocumentationBuilder.kt')
-rw-r--r--src/Java/JavaDocumentationBuilder.kt9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/Java/JavaDocumentationBuilder.kt b/src/Java/JavaDocumentationBuilder.kt
index 4b554584..f6e01a75 100644
--- a/src/Java/JavaDocumentationBuilder.kt
+++ b/src/Java/JavaDocumentationBuilder.kt
@@ -123,7 +123,7 @@ public class JavaDocumentationBuilder(private val options: DocumentationOptions)
fun PsiField.build(): DocumentationNode {
val node = DocumentationNode(this, nodeKind())
if (!hasModifierProperty(PsiModifier.FINAL)) {
- node.append(DocumentationNode("var", Content.Empty, Kind.Modifier), DocumentationReference.Kind.Detail)
+ node.appendTextNode("var", Kind.Modifier)
}
node.appendType(getType())
return node
@@ -157,7 +157,7 @@ public class JavaDocumentationBuilder(private val options: DocumentationOptions)
val node = DocumentationNode(this, Kind.Parameter)
node.appendType(getType())
if (getType() is PsiEllipsisType) {
- node.append(DocumentationNode("vararg", Content.Empty, Kind.Annotation), DocumentationReference.Kind.Annotation)
+ node.appendTextNode("vararg", Kind.Annotation, DocumentationReference.Kind.Annotation)
}
return node
}
@@ -176,12 +176,11 @@ public class JavaDocumentationBuilder(private val options: DocumentationOptions)
}
PsiModifier.MODIFIERS.forEach {
if (it != "static" && modifierList.hasExplicitModifier(it)) {
- val modifierNode = DocumentationNode(it, Content.Empty, Kind.Modifier)
- append(modifierNode, DocumentationReference.Kind.Detail)
+ appendTextNode(it, Kind.Modifier)
}
}
if ((element is PsiClass || element is PsiMethod) && !element.hasModifierProperty(PsiModifier.FINAL)) {
- append(DocumentationNode("open", Content.Empty, Kind.Modifier), DocumentationReference.Kind.Detail)
+ appendTextNode("open", Kind.Modifier)
}
}