aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Formats/StructuredFormatService.kt7
-rw-r--r--src/Kotlin/KotlinLanguageService.kt4
2 files changed, 4 insertions, 7 deletions
diff --git a/src/Formats/StructuredFormatService.kt b/src/Formats/StructuredFormatService.kt
index 5a8109dc..8473ccd5 100644
--- a/src/Formats/StructuredFormatService.kt
+++ b/src/Formats/StructuredFormatService.kt
@@ -259,10 +259,8 @@ public abstract class StructuredFormatService(locationService: LocationService,
private fun appendSummarySignatures(items: List<DocumentationNode>, location: Location, to: StringBuilder) {
val summarySignature = languageService.summarizeSignatures(items)
if (summarySignature != null) {
- val signatureAsCode = ContentCode()
- signatureAsCode.append(summarySignature)
- appendAsSignature(to, signatureAsCode) {
- appendLine(to, signatureAsCode.signatureToText(location))
+ appendAsSignature(to, summarySignature) {
+ appendLine(to, summarySignature.signatureToText(location))
}
return
}
@@ -271,7 +269,6 @@ public abstract class StructuredFormatService(locationService: LocationService,
appendAsSignature(to, it) {
appendLine(to, it.signatureToText(location))
}
- appendLine(to)
}
appendAsSignature(to, renderedSignatures.last()) {
to.append(renderedSignatures.last().signatureToText(location))
diff --git a/src/Kotlin/KotlinLanguageService.kt b/src/Kotlin/KotlinLanguageService.kt
index 038ade9c..513e1a58 100644
--- a/src/Kotlin/KotlinLanguageService.kt
+++ b/src/Kotlin/KotlinLanguageService.kt
@@ -6,7 +6,7 @@ import org.jetbrains.dokka.LanguageService.RenderMode
* Implements [LanguageService] and provides rendering of symbols in Kotlin language
*/
class KotlinLanguageService : LanguageService {
- private val visibilityModifiers = setOf("public", "protected", "private")
+ private val fullOnlyModifiers = setOf("public", "protected", "private", "inline", "noinline", "crossinline")
override fun render(node: DocumentationNode, renderMode: RenderMode): ContentNode {
return content {
@@ -258,7 +258,7 @@ class KotlinLanguageService : LanguageService {
for (it in modifiers) {
if (node.kind == org.jetbrains.dokka.DocumentationNode.Kind.Interface && it.name == "abstract")
continue
- if (renderMode == RenderMode.SUMMARY && it.name in visibilityModifiers) {
+ if (renderMode == RenderMode.SUMMARY && it.name in fullOnlyModifiers) {
continue
}
renderModifier(it)