Do not use JVM-specific annotations in pure-JS generated sources
This commit is contained in:
@@ -3,9 +3,6 @@
|
|||||||
* that can be found in the license/LICENSE.txt file.
|
* that can be found in the license/LICENSE.txt file.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@file:kotlin.jvm.JvmMultifileClass
|
|
||||||
@file:kotlin.jvm.JvmName("ArraysKt")
|
|
||||||
|
|
||||||
package kotlin.collections
|
package kotlin.collections
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -3,9 +3,6 @@
|
|||||||
* that can be found in the license/LICENSE.txt file.
|
* that can be found in the license/LICENSE.txt file.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@file:kotlin.jvm.JvmMultifileClass
|
|
||||||
@file:kotlin.jvm.JvmName("CollectionsKt")
|
|
||||||
|
|
||||||
package kotlin.collections
|
package kotlin.collections
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -3,9 +3,6 @@
|
|||||||
* that can be found in the license/LICENSE.txt file.
|
* that can be found in the license/LICENSE.txt file.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@file:kotlin.jvm.JvmMultifileClass
|
|
||||||
@file:kotlin.jvm.JvmName("ComparisonsKt")
|
|
||||||
|
|
||||||
package kotlin.comparisons
|
package kotlin.comparisons
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -73,12 +73,17 @@ fun List<MemberBuilder>.writeTo(file: File, platformSource: PlatformSourceFile)
|
|||||||
file.parentFile.mkdirs()
|
file.parentFile.mkdirs()
|
||||||
FileWriter(file).use { writer ->
|
FileWriter(file).use { writer ->
|
||||||
writer.appendln(COPYRIGHT_NOTICE)
|
writer.appendln(COPYRIGHT_NOTICE)
|
||||||
if (sourceFile.multifile) {
|
|
||||||
writer.appendln("@file:kotlin.jvm.JvmMultifileClass")
|
|
||||||
}
|
|
||||||
|
|
||||||
writer.appendln("@file:kotlin.jvm.JvmName(\"${sourceFile.jvmClassName}\")")
|
when (platform) {
|
||||||
writer.appendln()
|
Platform.Common, Platform.JVM -> {
|
||||||
|
if (sourceFile.multifile) {
|
||||||
|
writer.appendln("@file:kotlin.jvm.JvmMultifileClass")
|
||||||
|
}
|
||||||
|
|
||||||
|
writer.appendln("@file:kotlin.jvm.JvmName(\"${sourceFile.jvmClassName}\")")
|
||||||
|
writer.appendln()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
writer.append("package ${sourceFile.packageName ?: "kotlin"}\n\n")
|
writer.append("package ${sourceFile.packageName ?: "kotlin"}\n\n")
|
||||||
writer.append("${COMMON_AUTOGENERATED_WARNING}\n\n")
|
writer.append("${COMMON_AUTOGENERATED_WARNING}\n\n")
|
||||||
|
|||||||
Reference in New Issue
Block a user