Do not lower SinceKotlin version for unsigned arrays extensions if they already has some
This commit is contained in:
@@ -16,7 +16,7 @@ object Aggregates : TemplateGroupBase() {
|
|||||||
sequenceClassification(terminal)
|
sequenceClassification(terminal)
|
||||||
}
|
}
|
||||||
specialFor(ArraysOfUnsigned) {
|
specialFor(ArraysOfUnsigned) {
|
||||||
since("1.3")
|
sinceAtLeast("1.3")
|
||||||
annotation("@ExperimentalUnsignedTypes")
|
annotation("@ExperimentalUnsignedTypes")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ object ArrayOps : TemplateGroupBase() {
|
|||||||
init {
|
init {
|
||||||
defaultBuilder {
|
defaultBuilder {
|
||||||
specialFor(ArraysOfUnsigned) {
|
specialFor(ArraysOfUnsigned) {
|
||||||
since("1.3")
|
sinceAtLeast("1.3")
|
||||||
annotation("@ExperimentalUnsignedTypes")
|
annotation("@ExperimentalUnsignedTypes")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ object Elements : TemplateGroupBase() {
|
|||||||
defaultBuilder {
|
defaultBuilder {
|
||||||
sequenceClassification(terminal)
|
sequenceClassification(terminal)
|
||||||
specialFor(ArraysOfUnsigned) {
|
specialFor(ArraysOfUnsigned) {
|
||||||
since("1.3")
|
sinceAtLeast("1.3")
|
||||||
annotation("@ExperimentalUnsignedTypes")
|
annotation("@ExperimentalUnsignedTypes")
|
||||||
}
|
}
|
||||||
specialFor(RangesOfPrimitives) {
|
specialFor(RangesOfPrimitives) {
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ object Filtering : TemplateGroupBase() {
|
|||||||
sequenceClassification(intermediate, stateless)
|
sequenceClassification(intermediate, stateless)
|
||||||
|
|
||||||
specialFor(ArraysOfUnsigned) {
|
specialFor(ArraysOfUnsigned) {
|
||||||
since("1.3")
|
sinceAtLeast("1.3")
|
||||||
annotation("@ExperimentalUnsignedTypes")
|
annotation("@ExperimentalUnsignedTypes")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ object Generators : TemplateGroupBase() {
|
|||||||
init {
|
init {
|
||||||
defaultBuilder {
|
defaultBuilder {
|
||||||
specialFor(ArraysOfUnsigned) {
|
specialFor(ArraysOfUnsigned) {
|
||||||
since("1.3")
|
sinceAtLeast("1.3")
|
||||||
annotation("@ExperimentalUnsignedTypes")
|
annotation("@ExperimentalUnsignedTypes")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ object Mapping : TemplateGroupBase() {
|
|||||||
sequenceClassification(intermediate, stateless)
|
sequenceClassification(intermediate, stateless)
|
||||||
}
|
}
|
||||||
specialFor(ArraysOfUnsigned) {
|
specialFor(ArraysOfUnsigned) {
|
||||||
since("1.3")
|
sinceAtLeast("1.3")
|
||||||
annotation("@ExperimentalUnsignedTypes")
|
annotation("@ExperimentalUnsignedTypes")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ object Numeric : TemplateGroupBase() {
|
|||||||
defaultBuilder {
|
defaultBuilder {
|
||||||
sequenceClassification(SequenceClass.terminal)
|
sequenceClassification(SequenceClass.terminal)
|
||||||
specialFor(ArraysOfUnsigned) {
|
specialFor(ArraysOfUnsigned) {
|
||||||
since("1.3")
|
sinceAtLeast("1.3")
|
||||||
annotation("@ExperimentalUnsignedTypes")
|
annotation("@ExperimentalUnsignedTypes")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ object Ordering : TemplateGroupBase() {
|
|||||||
init {
|
init {
|
||||||
defaultBuilder {
|
defaultBuilder {
|
||||||
specialFor(ArraysOfUnsigned) {
|
specialFor(ArraysOfUnsigned) {
|
||||||
since("1.3")
|
sinceAtLeast("1.3")
|
||||||
annotation("@ExperimentalUnsignedTypes")
|
annotation("@ExperimentalUnsignedTypes")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -74,6 +74,11 @@ class MemberBuilder(
|
|||||||
fun deprecate(value: Deprecation) { deprecate = value }
|
fun deprecate(value: Deprecation) { deprecate = value }
|
||||||
fun deprecate(value: String) { deprecate = Deprecation(value) }
|
fun deprecate(value: String) { deprecate = Deprecation(value) }
|
||||||
fun since(value: String) { since = value }
|
fun since(value: String) { since = value }
|
||||||
|
fun sinceAtLeast(value: String) {
|
||||||
|
// TODO: comparing versions as strings, will work only up until Kotlin 1.10 or Kotlin 10.0
|
||||||
|
since = maxOf(since, value, nullsFirst())
|
||||||
|
}
|
||||||
|
|
||||||
fun platformName(name: String) { platformName = name }
|
fun platformName(name: String) { platformName = name }
|
||||||
|
|
||||||
fun visibility(value: String) { visibility = value }
|
fun visibility(value: String) { visibility = value }
|
||||||
|
|||||||
Reference in New Issue
Block a user