aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin
diff options
context:
space:
mode:
authorSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2018-10-18 21:44:30 +0300
committerSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2018-10-18 21:44:30 +0300
commit8a2e8f8ddc37a8c548a18714f2ad87fb511bcb82 (patch)
tree6e22b88d9e639d0d03e0f84eda7e0dbb2ffc40d3 /core/src/main/kotlin
parenta6ca887f1813777e7751f435b947095a20aafb58 (diff)
downloaddokka-8a2e8f8ddc37a8c548a18714f2ad87fb511bcb82.tar.gz
dokka-8a2e8f8ddc37a8c548a18714f2ad87fb511bcb82.tar.bz2
dokka-8a2e8f8ddc37a8c548a18714f2ad87fb511bcb82.zip
Add non-single documentation reporting
Diffstat (limited to 'core/src/main/kotlin')
-rw-r--r--core/src/main/kotlin/Formats/StructuredFormatService.kt5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/src/main/kotlin/Formats/StructuredFormatService.kt b/core/src/main/kotlin/Formats/StructuredFormatService.kt
index 7b18fcb4..46c7f1af 100644
--- a/core/src/main/kotlin/Formats/StructuredFormatService.kt
+++ b/core/src/main/kotlin/Formats/StructuredFormatService.kt
@@ -404,6 +404,9 @@ abstract class StructuredOutputBuilder(val to: StringBuilder,
if (item.kind == NodeKind.GroupNode) {
val groupByContent = item.origins.groupBy { it.content }
+ if (groupByContent.count { !it.key.isEmpty() } > 1) {
+ if (groupByContent.size > 1) println("[mult] Found ov diff: ${generator.location(item).path}")
+ }
for ((content, origins) in groupByContent) {
if (content.isEmpty()) continue
appendAsPlatformDependentBlock(effectivePlatformsForMembers(origins)) { platforms ->
@@ -617,7 +620,7 @@ abstract class StructuredOutputBuilder(val to: StringBuilder,
.toList()
.sortedByDescending { it.second.size }
-
+ if (groupByContent.size > 1) println("[mult] Found diff: ${generator.location(node).path}")
for ((content, platforms) in groupByContent) {
appendAsPlatformDependentBlock(platforms) {
if (groupByContent.size > 1) {