[K/JS] Add warning for ES-modules on the klibgen stage on the uniqueness of the exported names from the module

This commit is contained in:
Artem Kobzar
2023-08-08 15:45:02 +00:00
committed by Space Team
parent 734a3e5716
commit a29fa428b3
15 changed files with 199 additions and 29 deletions
@@ -50,7 +50,8 @@ interface IncrementalResultsConsumer {
declarations: ByteArray,
bodies: ByteArray,
fqn: ByteArray,
debugInfo: ByteArray?
fileMetadata: ByteArray,
debugInfo: ByteArray?,
)
}
@@ -136,9 +137,10 @@ open class IncrementalResultsConsumerImpl : IncrementalResultsConsumer {
declarations: ByteArray,
bodies: ByteArray,
fqn: ByteArray,
debugInfo: ByteArray?
fileMetadata: ByteArray,
debugInfo: ByteArray?,
) {
_irFileData[sourceFile] = IrTranslationResultValue(fileData, types, signatures, strings, declarations, bodies, fqn, debugInfo)
_irFileData[sourceFile] = IrTranslationResultValue(fileData, types, signatures, strings, declarations, bodies, fqn, fileMetadata, debugInfo)
}
}
@@ -18,7 +18,6 @@ package org.jetbrains.kotlin.incremental.js
data class TranslationResultValue(val metadata: ByteArray, val binaryAst: ByteArray, val inlineData: ByteArray)
data class IrTranslationResultValue(
val fileData: ByteArray,
val types: ByteArray,
@@ -27,5 +26,6 @@ data class IrTranslationResultValue(
val declarations: ByteArray,
val bodies: ByteArray,
val fqn: ByteArray,
val debugInfo: ByteArray?
)
val fileMetadata: ByteArray,
val debugInfo: ByteArray?,
)