Change deprecations annotation order on Ranges#endExclusive property
We have [Int|Long|Char]Range classes in 2 different places: - as separate class-files - serialized in the kotlin_builtins file For some reason our Kotlin compiler during the JVM compilation re-arranging the order of the annotations, so in class file they will be written in the following order: - Deprecated - SinceKotlin - ExperimentalStdlibApi But in the kotlin_builtins they will be stored the same way as in the sources. We need these 2 way to be synchronized, because stub's in IDE cares about order. After this commit IDE test BuiltInDecompilerConsistencyTest is fixed
This commit is contained in:
committed by
teamcity
parent
509ed69d28
commit
d788a927c4
@@ -71,7 +71,7 @@ public final class CharRange : R|kotlin/ranges/CharProgression|, R|kotlin/ranges
|
||||
|
||||
public open fun toString(): R|kotlin/String|
|
||||
|
||||
@PROPERTY:R|kotlin/SinceKotlin|(version = String(1.7)) @PROPERTY:R|kotlin/ExperimentalStdlibApi|() @PROPERTY:R|kotlin/Deprecated|(message = String(Can throw an exception when it's impossible to represent the value with Char type, for example, when the range includes MAX_VALUE. It's recommended to use 'endInclusive' property that doesn't throw.)) public open val endExclusive: R|kotlin/Char|
|
||||
@PROPERTY:R|kotlin/Deprecated|(message = String(Can throw an exception when it's impossible to represent the value with Char type, for example, when the range includes MAX_VALUE. It's recommended to use 'endInclusive' property that doesn't throw.)) @PROPERTY:R|kotlin/SinceKotlin|(version = String(1.7)) @PROPERTY:R|kotlin/ExperimentalStdlibApi|() public open val endExclusive: R|kotlin/Char|
|
||||
public get(): R|kotlin/Char|
|
||||
|
||||
public open val endInclusive: R|kotlin/Char|
|
||||
@@ -170,7 +170,7 @@ public final class IntRange : R|kotlin/ranges/IntProgression|, R|kotlin/ranges/C
|
||||
|
||||
public open fun toString(): R|kotlin/String|
|
||||
|
||||
@PROPERTY:R|kotlin/SinceKotlin|(version = String(1.7)) @PROPERTY:R|kotlin/ExperimentalStdlibApi|() @PROPERTY:R|kotlin/Deprecated|(message = String(Can throw an exception when it's impossible to represent the value with Int type, for example, when the range includes MAX_VALUE. It's recommended to use 'endInclusive' property that doesn't throw.)) public open val endExclusive: R|kotlin/Int|
|
||||
@PROPERTY:R|kotlin/Deprecated|(message = String(Can throw an exception when it's impossible to represent the value with Int type, for example, when the range includes MAX_VALUE. It's recommended to use 'endInclusive' property that doesn't throw.)) @PROPERTY:R|kotlin/SinceKotlin|(version = String(1.7)) @PROPERTY:R|kotlin/ExperimentalStdlibApi|() public open val endExclusive: R|kotlin/Int|
|
||||
public get(): R|kotlin/Int|
|
||||
|
||||
public open val endInclusive: R|kotlin/Int|
|
||||
@@ -256,7 +256,7 @@ public final class LongRange : R|kotlin/ranges/LongProgression|, R|kotlin/ranges
|
||||
|
||||
public open fun toString(): R|kotlin/String|
|
||||
|
||||
@PROPERTY:R|kotlin/SinceKotlin|(version = String(1.7)) @PROPERTY:R|kotlin/ExperimentalStdlibApi|() @PROPERTY:R|kotlin/Deprecated|(message = String(Can throw an exception when it's impossible to represent the value with Long type, for example, when the range includes MAX_VALUE. It's recommended to use 'endInclusive' property that doesn't throw.)) public open val endExclusive: R|kotlin/Long|
|
||||
@PROPERTY:R|kotlin/Deprecated|(message = String(Can throw an exception when it's impossible to represent the value with Long type, for example, when the range includes MAX_VALUE. It's recommended to use 'endInclusive' property that doesn't throw.)) @PROPERTY:R|kotlin/SinceKotlin|(version = String(1.7)) @PROPERTY:R|kotlin/ExperimentalStdlibApi|() public open val endExclusive: R|kotlin/Long|
|
||||
public get(): R|kotlin/Long|
|
||||
|
||||
public open val endInclusive: R|kotlin/Long|
|
||||
|
||||
@@ -36,7 +36,7 @@ internal final class CharProgressionIterator : kotlin.collections.CharIterator {
|
||||
|
||||
public final class CharRange : kotlin.ranges.CharProgression, kotlin.ranges.ClosedRange<kotlin.Char>, kotlin.ranges.OpenEndRange<kotlin.Char> {
|
||||
/*primary*/ public constructor CharRange(/*0*/ start: kotlin.Char, /*1*/ endInclusive: kotlin.Char)
|
||||
@kotlin.SinceKotlin(version = "1.7") @kotlin.ExperimentalStdlibApi @kotlin.Deprecated(message = "Can throw an exception when it's impossible to represent the value with Char type, for example, when the range includes MAX_VALUE. It's recommended to use 'endInclusive' property that doesn't throw.") public open override /*1*/ val endExclusive: kotlin.Char
|
||||
@kotlin.Deprecated(message = "Can throw an exception when it's impossible to represent the value with Char type, for example, when the range includes MAX_VALUE. It's recommended to use 'endInclusive' property that doesn't throw.") @kotlin.SinceKotlin(version = "1.7") @kotlin.ExperimentalStdlibApi public open override /*1*/ val endExclusive: kotlin.Char
|
||||
public open override /*1*/ fun `<get-endExclusive>`(): kotlin.Char
|
||||
public open override /*1*/ val endInclusive: kotlin.Char
|
||||
public open override /*1*/ fun `<get-endInclusive>`(): kotlin.Char
|
||||
@@ -104,7 +104,7 @@ internal final class IntProgressionIterator : kotlin.collections.IntIterator {
|
||||
|
||||
public final class IntRange : kotlin.ranges.IntProgression, kotlin.ranges.ClosedRange<kotlin.Int>, kotlin.ranges.OpenEndRange<kotlin.Int> {
|
||||
/*primary*/ public constructor IntRange(/*0*/ start: kotlin.Int, /*1*/ endInclusive: kotlin.Int)
|
||||
@kotlin.SinceKotlin(version = "1.7") @kotlin.ExperimentalStdlibApi @kotlin.Deprecated(message = "Can throw an exception when it's impossible to represent the value with Int type, for example, when the range includes MAX_VALUE. It's recommended to use 'endInclusive' property that doesn't throw.") public open override /*1*/ val endExclusive: kotlin.Int
|
||||
@kotlin.Deprecated(message = "Can throw an exception when it's impossible to represent the value with Int type, for example, when the range includes MAX_VALUE. It's recommended to use 'endInclusive' property that doesn't throw.") @kotlin.SinceKotlin(version = "1.7") @kotlin.ExperimentalStdlibApi public open override /*1*/ val endExclusive: kotlin.Int
|
||||
public open override /*1*/ fun `<get-endExclusive>`(): kotlin.Int
|
||||
public open override /*1*/ val endInclusive: kotlin.Int
|
||||
public open override /*1*/ fun `<get-endInclusive>`(): kotlin.Int
|
||||
@@ -163,7 +163,7 @@ internal final class LongProgressionIterator : kotlin.collections.LongIterator {
|
||||
|
||||
public final class LongRange : kotlin.ranges.LongProgression, kotlin.ranges.ClosedRange<kotlin.Long>, kotlin.ranges.OpenEndRange<kotlin.Long> {
|
||||
/*primary*/ public constructor LongRange(/*0*/ start: kotlin.Long, /*1*/ endInclusive: kotlin.Long)
|
||||
@kotlin.SinceKotlin(version = "1.7") @kotlin.ExperimentalStdlibApi @kotlin.Deprecated(message = "Can throw an exception when it's impossible to represent the value with Long type, for example, when the range includes MAX_VALUE. It's recommended to use 'endInclusive' property that doesn't throw.") public open override /*1*/ val endExclusive: kotlin.Long
|
||||
@kotlin.Deprecated(message = "Can throw an exception when it's impossible to represent the value with Long type, for example, when the range includes MAX_VALUE. It's recommended to use 'endInclusive' property that doesn't throw.") @kotlin.SinceKotlin(version = "1.7") @kotlin.ExperimentalStdlibApi public open override /*1*/ val endExclusive: kotlin.Long
|
||||
public open override /*1*/ fun `<get-endExclusive>`(): kotlin.Long
|
||||
public open override /*1*/ val endInclusive: kotlin.Long
|
||||
public open override /*1*/ fun `<get-endInclusive>`(): kotlin.Long
|
||||
|
||||
@@ -36,7 +36,7 @@ internal final class CharProgressionIterator : kotlin.collections.CharIterator {
|
||||
|
||||
public final class CharRange : kotlin.ranges.CharProgression, kotlin.ranges.ClosedRange<kotlin.Char>, kotlin.ranges.OpenEndRange<kotlin.Char> {
|
||||
/*primary*/ public constructor CharRange(/*0*/ start: kotlin.Char, /*1*/ endInclusive: kotlin.Char)
|
||||
@kotlin.SinceKotlin(version = "1.7") @kotlin.ExperimentalStdlibApi @kotlin.Deprecated(message = "Can throw an exception when it's impossible to represent the value with Char type, for example, when the range includes MAX_VALUE. It's recommended to use 'endInclusive' property that doesn't throw.") public open override /*1*/ val endExclusive: kotlin.Char
|
||||
@kotlin.Deprecated(message = "Can throw an exception when it's impossible to represent the value with Char type, for example, when the range includes MAX_VALUE. It's recommended to use 'endInclusive' property that doesn't throw.") @kotlin.SinceKotlin(version = "1.7") @kotlin.ExperimentalStdlibApi public open override /*1*/ val endExclusive: kotlin.Char
|
||||
public open override /*1*/ fun `<get-endExclusive>`(): kotlin.Char
|
||||
public open override /*1*/ val endInclusive: kotlin.Char
|
||||
public open override /*1*/ fun `<get-endInclusive>`(): kotlin.Char
|
||||
@@ -104,7 +104,7 @@ internal final class IntProgressionIterator : kotlin.collections.IntIterator {
|
||||
|
||||
public final class IntRange : kotlin.ranges.IntProgression, kotlin.ranges.ClosedRange<kotlin.Int>, kotlin.ranges.OpenEndRange<kotlin.Int> {
|
||||
/*primary*/ public constructor IntRange(/*0*/ start: kotlin.Int, /*1*/ endInclusive: kotlin.Int)
|
||||
@kotlin.SinceKotlin(version = "1.7") @kotlin.ExperimentalStdlibApi @kotlin.Deprecated(message = "Can throw an exception when it's impossible to represent the value with Int type, for example, when the range includes MAX_VALUE. It's recommended to use 'endInclusive' property that doesn't throw.") public open override /*1*/ val endExclusive: kotlin.Int
|
||||
@kotlin.Deprecated(message = "Can throw an exception when it's impossible to represent the value with Int type, for example, when the range includes MAX_VALUE. It's recommended to use 'endInclusive' property that doesn't throw.") @kotlin.SinceKotlin(version = "1.7") @kotlin.ExperimentalStdlibApi public open override /*1*/ val endExclusive: kotlin.Int
|
||||
public open override /*1*/ fun `<get-endExclusive>`(): kotlin.Int
|
||||
public open override /*1*/ val endInclusive: kotlin.Int
|
||||
public open override /*1*/ fun `<get-endInclusive>`(): kotlin.Int
|
||||
@@ -163,7 +163,7 @@ internal final class LongProgressionIterator : kotlin.collections.LongIterator {
|
||||
|
||||
public final class LongRange : kotlin.ranges.LongProgression, kotlin.ranges.ClosedRange<kotlin.Long>, kotlin.ranges.OpenEndRange<kotlin.Long> {
|
||||
/*primary*/ public constructor LongRange(/*0*/ start: kotlin.Long, /*1*/ endInclusive: kotlin.Long)
|
||||
@kotlin.SinceKotlin(version = "1.7") @kotlin.ExperimentalStdlibApi @kotlin.Deprecated(message = "Can throw an exception when it's impossible to represent the value with Long type, for example, when the range includes MAX_VALUE. It's recommended to use 'endInclusive' property that doesn't throw.") public open override /*1*/ val endExclusive: kotlin.Long
|
||||
@kotlin.Deprecated(message = "Can throw an exception when it's impossible to represent the value with Long type, for example, when the range includes MAX_VALUE. It's recommended to use 'endInclusive' property that doesn't throw.") @kotlin.SinceKotlin(version = "1.7") @kotlin.ExperimentalStdlibApi public open override /*1*/ val endExclusive: kotlin.Long
|
||||
public open override /*1*/ fun `<get-endExclusive>`(): kotlin.Long
|
||||
public open override /*1*/ val endInclusive: kotlin.Long
|
||||
public open override /*1*/ fun `<get-endInclusive>`(): kotlin.Long
|
||||
|
||||
@@ -39,7 +39,7 @@ internal final class CharProgressionIterator : kotlin.collections.CharIterator {
|
||||
|
||||
public final class CharRange : kotlin.ranges.CharProgression, kotlin.ranges.ClosedRange<kotlin.Char>, kotlin.ranges.OpenEndRange<kotlin.Char> {
|
||||
/*primary*/ public constructor CharRange(/*0*/ start: kotlin.Char, /*1*/ endInclusive: kotlin.Char)
|
||||
@kotlin.SinceKotlin(version = "1.7") @kotlin.ExperimentalStdlibApi @kotlin.Deprecated(message = "Can throw an exception when it's impossible to represent the value with Char type, for example, when the range includes MAX_VALUE. It's recommended to use 'endInclusive' property that doesn't throw.") public open override /*1*/ val endExclusive: kotlin.Char
|
||||
@kotlin.Deprecated(message = "Can throw an exception when it's impossible to represent the value with Char type, for example, when the range includes MAX_VALUE. It's recommended to use 'endInclusive' property that doesn't throw.") @kotlin.SinceKotlin(version = "1.7") @kotlin.ExperimentalStdlibApi public open override /*1*/ val endExclusive: kotlin.Char
|
||||
public open override /*1*/ fun `<get-endExclusive>`(): kotlin.Char
|
||||
public open override /*1*/ val endInclusive: kotlin.Char
|
||||
public open override /*1*/ fun `<get-endInclusive>`(): kotlin.Char
|
||||
@@ -112,7 +112,7 @@ internal final class IntProgressionIterator : kotlin.collections.IntIterator {
|
||||
|
||||
public final class IntRange : kotlin.ranges.IntProgression, kotlin.ranges.ClosedRange<kotlin.Int>, kotlin.ranges.OpenEndRange<kotlin.Int> {
|
||||
/*primary*/ public constructor IntRange(/*0*/ start: kotlin.Int, /*1*/ endInclusive: kotlin.Int)
|
||||
@kotlin.SinceKotlin(version = "1.7") @kotlin.ExperimentalStdlibApi @kotlin.Deprecated(message = "Can throw an exception when it's impossible to represent the value with Int type, for example, when the range includes MAX_VALUE. It's recommended to use 'endInclusive' property that doesn't throw.") public open override /*1*/ val endExclusive: kotlin.Int
|
||||
@kotlin.Deprecated(message = "Can throw an exception when it's impossible to represent the value with Int type, for example, when the range includes MAX_VALUE. It's recommended to use 'endInclusive' property that doesn't throw.") @kotlin.SinceKotlin(version = "1.7") @kotlin.ExperimentalStdlibApi public open override /*1*/ val endExclusive: kotlin.Int
|
||||
public open override /*1*/ fun `<get-endExclusive>`(): kotlin.Int
|
||||
public open override /*1*/ val endInclusive: kotlin.Int
|
||||
public open override /*1*/ fun `<get-endInclusive>`(): kotlin.Int
|
||||
@@ -176,7 +176,7 @@ internal final class LongProgressionIterator : kotlin.collections.LongIterator {
|
||||
|
||||
public final class LongRange : kotlin.ranges.LongProgression, kotlin.ranges.ClosedRange<kotlin.Long>, kotlin.ranges.OpenEndRange<kotlin.Long> {
|
||||
/*primary*/ public constructor LongRange(/*0*/ start: kotlin.Long, /*1*/ endInclusive: kotlin.Long)
|
||||
@kotlin.SinceKotlin(version = "1.7") @kotlin.ExperimentalStdlibApi @kotlin.Deprecated(message = "Can throw an exception when it's impossible to represent the value with Long type, for example, when the range includes MAX_VALUE. It's recommended to use 'endInclusive' property that doesn't throw.") public open override /*1*/ val endExclusive: kotlin.Long
|
||||
@kotlin.Deprecated(message = "Can throw an exception when it's impossible to represent the value with Long type, for example, when the range includes MAX_VALUE. It's recommended to use 'endInclusive' property that doesn't throw.") @kotlin.SinceKotlin(version = "1.7") @kotlin.ExperimentalStdlibApi public open override /*1*/ val endExclusive: kotlin.Long
|
||||
public open override /*1*/ fun `<get-endExclusive>`(): kotlin.Long
|
||||
public open override /*1*/ val endInclusive: kotlin.Long
|
||||
public open override /*1*/ fun `<get-endInclusive>`(): kotlin.Long
|
||||
|
||||
@@ -36,7 +36,7 @@ internal final class CharProgressionIterator : kotlin.collections.CharIterator {
|
||||
|
||||
public final class CharRange : kotlin.ranges.CharProgression, kotlin.ranges.ClosedRange<kotlin.Char>, kotlin.ranges.OpenEndRange<kotlin.Char> {
|
||||
/*primary*/ public constructor CharRange(/*0*/ start: kotlin.Char, /*1*/ endInclusive: kotlin.Char)
|
||||
@kotlin.SinceKotlin(version = "1.7") @kotlin.ExperimentalStdlibApi @kotlin.Deprecated(message = "Can throw an exception when it's impossible to represent the value with Char type, for example, when the range includes MAX_VALUE. It's recommended to use 'endInclusive' property that doesn't throw.") public open override /*1*/ val endExclusive: kotlin.Char
|
||||
@kotlin.Deprecated(message = "Can throw an exception when it's impossible to represent the value with Char type, for example, when the range includes MAX_VALUE. It's recommended to use 'endInclusive' property that doesn't throw.") @kotlin.SinceKotlin(version = "1.7") @kotlin.ExperimentalStdlibApi public open override /*1*/ val endExclusive: kotlin.Char
|
||||
public open override /*1*/ fun `<get-endExclusive>`(): kotlin.Char
|
||||
public open override /*1*/ val endInclusive: kotlin.Char
|
||||
public open override /*1*/ fun `<get-endInclusive>`(): kotlin.Char
|
||||
@@ -104,7 +104,7 @@ internal final class IntProgressionIterator : kotlin.collections.IntIterator {
|
||||
|
||||
public final class IntRange : kotlin.ranges.IntProgression, kotlin.ranges.ClosedRange<kotlin.Int>, kotlin.ranges.OpenEndRange<kotlin.Int> {
|
||||
/*primary*/ public constructor IntRange(/*0*/ start: kotlin.Int, /*1*/ endInclusive: kotlin.Int)
|
||||
@kotlin.SinceKotlin(version = "1.7") @kotlin.ExperimentalStdlibApi @kotlin.Deprecated(message = "Can throw an exception when it's impossible to represent the value with Int type, for example, when the range includes MAX_VALUE. It's recommended to use 'endInclusive' property that doesn't throw.") public open override /*1*/ val endExclusive: kotlin.Int
|
||||
@kotlin.Deprecated(message = "Can throw an exception when it's impossible to represent the value with Int type, for example, when the range includes MAX_VALUE. It's recommended to use 'endInclusive' property that doesn't throw.") @kotlin.SinceKotlin(version = "1.7") @kotlin.ExperimentalStdlibApi public open override /*1*/ val endExclusive: kotlin.Int
|
||||
public open override /*1*/ fun `<get-endExclusive>`(): kotlin.Int
|
||||
public open override /*1*/ val endInclusive: kotlin.Int
|
||||
public open override /*1*/ fun `<get-endInclusive>`(): kotlin.Int
|
||||
@@ -163,7 +163,7 @@ internal final class LongProgressionIterator : kotlin.collections.LongIterator {
|
||||
|
||||
public final class LongRange : kotlin.ranges.LongProgression, kotlin.ranges.ClosedRange<kotlin.Long>, kotlin.ranges.OpenEndRange<kotlin.Long> {
|
||||
/*primary*/ public constructor LongRange(/*0*/ start: kotlin.Long, /*1*/ endInclusive: kotlin.Long)
|
||||
@kotlin.SinceKotlin(version = "1.7") @kotlin.ExperimentalStdlibApi @kotlin.Deprecated(message = "Can throw an exception when it's impossible to represent the value with Long type, for example, when the range includes MAX_VALUE. It's recommended to use 'endInclusive' property that doesn't throw.") public open override /*1*/ val endExclusive: kotlin.Long
|
||||
@kotlin.Deprecated(message = "Can throw an exception when it's impossible to represent the value with Long type, for example, when the range includes MAX_VALUE. It's recommended to use 'endInclusive' property that doesn't throw.") @kotlin.SinceKotlin(version = "1.7") @kotlin.ExperimentalStdlibApi public open override /*1*/ val endExclusive: kotlin.Long
|
||||
public open override /*1*/ fun `<get-endExclusive>`(): kotlin.Long
|
||||
public open override /*1*/ val endInclusive: kotlin.Long
|
||||
public open override /*1*/ fun `<get-endInclusive>`(): kotlin.Long
|
||||
|
||||
@@ -16,9 +16,11 @@
|
||||
|
||||
package org.jetbrains.kotlin.generators.builtins.ranges
|
||||
|
||||
import org.jetbrains.kotlin.generators.builtins.*
|
||||
import org.jetbrains.kotlin.generators.builtins.generateBuiltIns.*
|
||||
import org.jetbrains.kotlin.generators.builtins.ProgressionKind
|
||||
import org.jetbrains.kotlin.generators.builtins.ProgressionKind.*
|
||||
import org.jetbrains.kotlin.generators.builtins.areEqualNumbers
|
||||
import org.jetbrains.kotlin.generators.builtins.generateBuiltIns.BuiltInsSourceGenerator
|
||||
import org.jetbrains.kotlin.generators.builtins.hashLong
|
||||
import java.io.PrintWriter
|
||||
|
||||
class GenerateRanges(out: PrintWriter) : BuiltInsSourceGenerator(out) {
|
||||
@@ -57,9 +59,9 @@ public class $range(start: $t, endInclusive: $t) : ${t}Progression(start, endInc
|
||||
override val start: $t get() = first
|
||||
override val endInclusive: $t get() = last
|
||||
|
||||
@Deprecated("Can throw an exception when it's impossible to represent the value with $t type, for example, when the range includes MAX_VALUE. It's recommended to use 'endInclusive' property that doesn't throw.")
|
||||
@SinceKotlin("1.7")
|
||||
@ExperimentalStdlibApi
|
||||
@Deprecated("Can throw an exception when it's impossible to represent the value with $t type, for example, when the range includes MAX_VALUE. It's recommended to use 'endInclusive' property that doesn't throw.")
|
||||
override val endExclusive: $t get() {
|
||||
if (last == $t.MAX_VALUE) error("Cannot return the exclusive upper bound of a range that includes MAX_VALUE.")
|
||||
return last + 1
|
||||
|
||||
@@ -809,9 +809,9 @@ public open class CharProgression : kotlin.collections.Iterable<kotlin.Char> {
|
||||
public final class CharRange : kotlin.ranges.CharProgression, kotlin.ranges.ClosedRange<kotlin.Char>, kotlin.ranges.OpenEndRange<kotlin.Char> {
|
||||
public constructor CharRange(start: kotlin.Char, endInclusive: kotlin.Char)
|
||||
|
||||
@kotlin.Deprecated(message = "Can throw an exception when it's impossible to represent the value with Char type, for example, when the range includes MAX_VALUE. It's recommended to use 'endInclusive' property that doesn't throw.")
|
||||
@kotlin.SinceKotlin(version = "1.7")
|
||||
@kotlin.ExperimentalStdlibApi
|
||||
@kotlin.Deprecated(message = "Can throw an exception when it's impossible to represent the value with Char type, for example, when the range includes MAX_VALUE. It's recommended to use 'endInclusive' property that doesn't throw.")
|
||||
public open override val endExclusive: kotlin.Char { get; }
|
||||
|
||||
public open override val endInclusive: kotlin.Char { get; }
|
||||
@@ -836,9 +836,9 @@ public final class CharRange : kotlin.ranges.CharProgression, kotlin.ranges.Clos
|
||||
/*∆*/ public final class CharRange : kotlin.ranges.CharProgression, kotlin.ranges.ClosedRange<kotlin.Char>, kotlin.ranges.OpenEndRange<kotlin.Char> {
|
||||
/*∆*/ public constructor CharRange(start: kotlin.Char, endInclusive: kotlin.Char)
|
||||
/*∆*/
|
||||
/*∆*/ @kotlin.Deprecated(message = "Can throw an exception when it's impossible to represent the value with Char type, for example, when the range includes MAX_VALUE. It's recommended to use 'endInclusive' property that doesn't throw.")
|
||||
/*∆*/ @kotlin.SinceKotlin(version = "1.7")
|
||||
/*∆*/ @kotlin.ExperimentalStdlibApi
|
||||
/*∆*/ @kotlin.Deprecated(message = "Can throw an exception when it's impossible to represent the value with Char type, for example, when the range includes MAX_VALUE. It's recommended to use 'endInclusive' property that doesn't throw.")
|
||||
/*∆*/ public open override val endExclusive: kotlin.Char { get; }
|
||||
/*∆*/
|
||||
/*∆*/ public open override val endInclusive: kotlin.Char { get; }
|
||||
@@ -936,9 +936,9 @@ public open class IntProgression : kotlin.collections.Iterable<kotlin.Int> {
|
||||
public final class IntRange : kotlin.ranges.IntProgression, kotlin.ranges.ClosedRange<kotlin.Int>, kotlin.ranges.OpenEndRange<kotlin.Int> {
|
||||
public constructor IntRange(start: kotlin.Int, endInclusive: kotlin.Int)
|
||||
|
||||
@kotlin.Deprecated(message = "Can throw an exception when it's impossible to represent the value with Int type, for example, when the range includes MAX_VALUE. It's recommended to use 'endInclusive' property that doesn't throw.")
|
||||
@kotlin.SinceKotlin(version = "1.7")
|
||||
@kotlin.ExperimentalStdlibApi
|
||||
@kotlin.Deprecated(message = "Can throw an exception when it's impossible to represent the value with Int type, for example, when the range includes MAX_VALUE. It's recommended to use 'endInclusive' property that doesn't throw.")
|
||||
public open override val endExclusive: kotlin.Int { get; }
|
||||
|
||||
public open override val endInclusive: kotlin.Int { get; }
|
||||
@@ -963,9 +963,9 @@ public final class IntRange : kotlin.ranges.IntProgression, kotlin.ranges.Closed
|
||||
/*∆*/ public final class IntRange : kotlin.ranges.IntProgression, kotlin.ranges.ClosedRange<kotlin.Int>, kotlin.ranges.OpenEndRange<kotlin.Int> {
|
||||
/*∆*/ public constructor IntRange(start: kotlin.Int, endInclusive: kotlin.Int)
|
||||
/*∆*/
|
||||
/*∆*/ @kotlin.Deprecated(message = "Can throw an exception when it's impossible to represent the value with Int type, for example, when the range includes MAX_VALUE. It's recommended to use 'endInclusive' property that doesn't throw.")
|
||||
/*∆*/ @kotlin.SinceKotlin(version = "1.7")
|
||||
/*∆*/ @kotlin.ExperimentalStdlibApi
|
||||
/*∆*/ @kotlin.Deprecated(message = "Can throw an exception when it's impossible to represent the value with Int type, for example, when the range includes MAX_VALUE. It's recommended to use 'endInclusive' property that doesn't throw.")
|
||||
/*∆*/ public open override val endExclusive: kotlin.Int { get; }
|
||||
/*∆*/
|
||||
/*∆*/ public open override val endInclusive: kotlin.Int { get; }
|
||||
@@ -1034,9 +1034,9 @@ public open class LongProgression : kotlin.collections.Iterable<kotlin.Long> {
|
||||
public final class LongRange : kotlin.ranges.LongProgression, kotlin.ranges.ClosedRange<kotlin.Long>, kotlin.ranges.OpenEndRange<kotlin.Long> {
|
||||
public constructor LongRange(start: kotlin.Long, endInclusive: kotlin.Long)
|
||||
|
||||
@kotlin.Deprecated(message = "Can throw an exception when it's impossible to represent the value with Long type, for example, when the range includes MAX_VALUE. It's recommended to use 'endInclusive' property that doesn't throw.")
|
||||
@kotlin.SinceKotlin(version = "1.7")
|
||||
@kotlin.ExperimentalStdlibApi
|
||||
@kotlin.Deprecated(message = "Can throw an exception when it's impossible to represent the value with Long type, for example, when the range includes MAX_VALUE. It's recommended to use 'endInclusive' property that doesn't throw.")
|
||||
public open override val endExclusive: kotlin.Long { get; }
|
||||
|
||||
public open override val endInclusive: kotlin.Long { get; }
|
||||
@@ -1061,9 +1061,9 @@ public final class LongRange : kotlin.ranges.LongProgression, kotlin.ranges.Clos
|
||||
/*∆*/ public final class LongRange : kotlin.ranges.LongProgression, kotlin.ranges.ClosedRange<kotlin.Long>, kotlin.ranges.OpenEndRange<kotlin.Long> {
|
||||
/*∆*/ public constructor LongRange(start: kotlin.Long, endInclusive: kotlin.Long)
|
||||
/*∆*/
|
||||
/*∆*/ @kotlin.Deprecated(message = "Can throw an exception when it's impossible to represent the value with Long type, for example, when the range includes MAX_VALUE. It's recommended to use 'endInclusive' property that doesn't throw.")
|
||||
/*∆*/ @kotlin.SinceKotlin(version = "1.7")
|
||||
/*∆*/ @kotlin.ExperimentalStdlibApi
|
||||
/*∆*/ @kotlin.Deprecated(message = "Can throw an exception when it's impossible to represent the value with Long type, for example, when the range includes MAX_VALUE. It's recommended to use 'endInclusive' property that doesn't throw.")
|
||||
/*∆*/ public open override val endExclusive: kotlin.Long { get; }
|
||||
/*∆*/
|
||||
/*∆*/ public open override val endInclusive: kotlin.Long { get; }
|
||||
|
||||
@@ -787,9 +787,9 @@ public open class CharProgression : kotlin.collections.Iterable<kotlin.Char> {
|
||||
public final class CharRange : kotlin.ranges.CharProgression, kotlin.ranges.ClosedRange<kotlin.Char>, kotlin.ranges.OpenEndRange<kotlin.Char> {
|
||||
public constructor CharRange(start: kotlin.Char, endInclusive: kotlin.Char)
|
||||
|
||||
@kotlin.Deprecated(message = "Can throw an exception when it's impossible to represent the value with Char type, for example, when the range includes MAX_VALUE. It's recommended to use 'endInclusive' property that doesn't throw.")
|
||||
@kotlin.SinceKotlin(version = "1.7")
|
||||
@kotlin.ExperimentalStdlibApi
|
||||
@kotlin.Deprecated(message = "Can throw an exception when it's impossible to represent the value with Char type, for example, when the range includes MAX_VALUE. It's recommended to use 'endInclusive' property that doesn't throw.")
|
||||
public open override val endExclusive: kotlin.Char { get; }
|
||||
|
||||
public open override val endInclusive: kotlin.Char { get; }
|
||||
@@ -855,9 +855,9 @@ public open class IntProgression : kotlin.collections.Iterable<kotlin.Int> {
|
||||
public final class IntRange : kotlin.ranges.IntProgression, kotlin.ranges.ClosedRange<kotlin.Int>, kotlin.ranges.OpenEndRange<kotlin.Int> {
|
||||
public constructor IntRange(start: kotlin.Int, endInclusive: kotlin.Int)
|
||||
|
||||
@kotlin.Deprecated(message = "Can throw an exception when it's impossible to represent the value with Int type, for example, when the range includes MAX_VALUE. It's recommended to use 'endInclusive' property that doesn't throw.")
|
||||
@kotlin.SinceKotlin(version = "1.7")
|
||||
@kotlin.ExperimentalStdlibApi
|
||||
@kotlin.Deprecated(message = "Can throw an exception when it's impossible to represent the value with Int type, for example, when the range includes MAX_VALUE. It's recommended to use 'endInclusive' property that doesn't throw.")
|
||||
public open override val endExclusive: kotlin.Int { get; }
|
||||
|
||||
public open override val endInclusive: kotlin.Int { get; }
|
||||
@@ -904,9 +904,9 @@ public open class LongProgression : kotlin.collections.Iterable<kotlin.Long> {
|
||||
public final class LongRange : kotlin.ranges.LongProgression, kotlin.ranges.ClosedRange<kotlin.Long>, kotlin.ranges.OpenEndRange<kotlin.Long> {
|
||||
public constructor LongRange(start: kotlin.Long, endInclusive: kotlin.Long)
|
||||
|
||||
@kotlin.Deprecated(message = "Can throw an exception when it's impossible to represent the value with Long type, for example, when the range includes MAX_VALUE. It's recommended to use 'endInclusive' property that doesn't throw.")
|
||||
@kotlin.SinceKotlin(version = "1.7")
|
||||
@kotlin.ExperimentalStdlibApi
|
||||
@kotlin.Deprecated(message = "Can throw an exception when it's impossible to represent the value with Long type, for example, when the range includes MAX_VALUE. It's recommended to use 'endInclusive' property that doesn't throw.")
|
||||
public open override val endExclusive: kotlin.Long { get; }
|
||||
|
||||
public open override val endInclusive: kotlin.Long { get; }
|
||||
|
||||
@@ -15,9 +15,9 @@ public class CharRange(start: Char, endInclusive: Char) : CharProgression(start,
|
||||
override val start: Char get() = first
|
||||
override val endInclusive: Char get() = last
|
||||
|
||||
@Deprecated("Can throw an exception when it's impossible to represent the value with Char type, for example, when the range includes MAX_VALUE. It's recommended to use 'endInclusive' property that doesn't throw.")
|
||||
@SinceKotlin("1.7")
|
||||
@ExperimentalStdlibApi
|
||||
@Deprecated("Can throw an exception when it's impossible to represent the value with Char type, for example, when the range includes MAX_VALUE. It's recommended to use 'endInclusive' property that doesn't throw.")
|
||||
override val endExclusive: Char get() {
|
||||
if (last == Char.MAX_VALUE) error("Cannot return the exclusive upper bound of a range that includes MAX_VALUE.")
|
||||
return last + 1
|
||||
@@ -55,9 +55,9 @@ public class IntRange(start: Int, endInclusive: Int) : IntProgression(start, end
|
||||
override val start: Int get() = first
|
||||
override val endInclusive: Int get() = last
|
||||
|
||||
@Deprecated("Can throw an exception when it's impossible to represent the value with Int type, for example, when the range includes MAX_VALUE. It's recommended to use 'endInclusive' property that doesn't throw.")
|
||||
@SinceKotlin("1.7")
|
||||
@ExperimentalStdlibApi
|
||||
@Deprecated("Can throw an exception when it's impossible to represent the value with Int type, for example, when the range includes MAX_VALUE. It's recommended to use 'endInclusive' property that doesn't throw.")
|
||||
override val endExclusive: Int get() {
|
||||
if (last == Int.MAX_VALUE) error("Cannot return the exclusive upper bound of a range that includes MAX_VALUE.")
|
||||
return last + 1
|
||||
@@ -95,9 +95,9 @@ public class LongRange(start: Long, endInclusive: Long) : LongProgression(start,
|
||||
override val start: Long get() = first
|
||||
override val endInclusive: Long get() = last
|
||||
|
||||
@Deprecated("Can throw an exception when it's impossible to represent the value with Long type, for example, when the range includes MAX_VALUE. It's recommended to use 'endInclusive' property that doesn't throw.")
|
||||
@SinceKotlin("1.7")
|
||||
@ExperimentalStdlibApi
|
||||
@Deprecated("Can throw an exception when it's impossible to represent the value with Long type, for example, when the range includes MAX_VALUE. It's recommended to use 'endInclusive' property that doesn't throw.")
|
||||
override val endExclusive: Long get() {
|
||||
if (last == Long.MAX_VALUE) error("Cannot return the exclusive upper bound of a range that includes MAX_VALUE.")
|
||||
return last + 1
|
||||
|
||||
Reference in New Issue
Block a user