From 8a2e8f8ddc37a8c548a18714f2ad87fb511bcb82 Mon Sep 17 00:00:00 2001 From: Simon Ogorodnik Date: Thu, 18 Oct 2018 21:44:30 +0300 Subject: Add non-single documentation reporting --- core/src/main/kotlin/Formats/StructuredFormatService.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'core/src') 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) { -- cgit