aboutsummaryrefslogtreecommitdiff
path: root/core/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/main')
-rw-r--r--core/src/main/kotlin/Generation/FileGenerator.kt7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/src/main/kotlin/Generation/FileGenerator.kt b/core/src/main/kotlin/Generation/FileGenerator.kt
index eb6800b3..f9104110 100644
--- a/core/src/main/kotlin/Generation/FileGenerator.kt
+++ b/core/src/main/kotlin/Generation/FileGenerator.kt
@@ -30,6 +30,13 @@ class FileGenerator @Inject constructor(@Named("outputDir") override val root: F
for ((file, items) in nodes.groupBy { fileForNode(it, formatService.extension) }) {
+ if (items.size > 1) {
+ println("An attempt to generate ${root.toPath().relativize(file.toPath())} for: ")
+ for (item in items) {
+ println(" ${item.allReferences().map { "${it.to.kind} ${it.to.name }" } }")
+ }
+ }
+
file.parentFile?.mkdirsOrFail()
try {
FileOutputStream(file).use {