Move UArraysKt into kotlin.collections.unsigned package

Provide UArraysKt class in kotlin.collections for binary compatibility
instead of removed multipart facade class. It contains only non-inline
functions of the latter.
This commit is contained in:
Ilya Gorbunov
2019-03-05 21:52:16 +03:00
parent db4c4132f6
commit 6ae5e91930
7 changed files with 216 additions and 45 deletions
@@ -5,10 +5,10 @@
package templates
enum class SourceFile(jvmClassName: String? = null, val multifile: Boolean = true, val packageName: String? = null) {
enum class SourceFile(jvmClassName: String? = null, val multifile: Boolean = true, val packageName: String? = null, val jvmPackageName: String? = null) {
Arrays(packageName = "kotlin.collections"),
UArrays(packageName = "kotlin.collections"),
UArrays(packageName = "kotlin.collections", jvmPackageName = "kotlin.collections.unsigned"),
Collections(packageName = "kotlin.collections"),
UCollections(packageName = "kotlin.collections"),
Sets(packageName = "kotlin.collections"),
@@ -84,6 +84,9 @@ fun List<MemberBuilder>.writeTo(file: File, targetedSource: TargetedSourceFile)
}
writer.appendln("@file:kotlin.jvm.JvmName(\"${sourceFile.jvmClassName}\")")
sourceFile.jvmPackageName?.let {
writer.appendln("@file:kotlin.jvm.JvmPackageName(\"$it\")")
}
writer.appendln()
}
}