[stdlib] Explicit visibility and return types: builtins

This commit is contained in:
Ilya Gorbunov
2023-09-19 14:24:45 +02:00
committed by Space Team
parent df190b1265
commit ab7c2f2196
15 changed files with 30 additions and 30 deletions
@@ -16,7 +16,7 @@ import kotlin.jvm.*
@JvmInline
public value class UByte @kotlin.internal.IntrinsicConstEvaluation @PublishedApi internal constructor(@PublishedApi internal val data: Byte) : Comparable<UByte> {
companion object {
public companion object {
/**
* A constant holding the minimum value an instance of UByte can have.
*/
+1 -1
View File
@@ -16,7 +16,7 @@ import kotlin.jvm.*
@JvmInline
public value class UInt @kotlin.internal.IntrinsicConstEvaluation @PublishedApi internal constructor(@PublishedApi internal val data: Int) : Comparable<UInt> {
companion object {
public companion object {
/**
* A constant holding the minimum value an instance of UInt can have.
*/
@@ -47,7 +47,7 @@ public class UIntRange(start: UInt, endInclusive: UInt) : UIntProgression(start,
override fun toString(): String = "$first..$last"
companion object {
public companion object {
/** An empty range of values of type UInt. */
public val EMPTY: UIntRange = UIntRange(UInt.MAX_VALUE, UInt.MIN_VALUE)
}
@@ -103,7 +103,7 @@ internal constructor(
override fun toString(): String = if (step > 0) "$first..$last step $step" else "$first downTo $last step ${-step}"
companion object {
public companion object {
/**
* Creates UIntProgression within the specified bounds of a closed range.
@@ -16,7 +16,7 @@ import kotlin.jvm.*
@JvmInline
public value class ULong @kotlin.internal.IntrinsicConstEvaluation @PublishedApi internal constructor(@PublishedApi internal val data: Long) : Comparable<ULong> {
companion object {
public companion object {
/**
* A constant holding the minimum value an instance of ULong can have.
*/
@@ -47,7 +47,7 @@ public class ULongRange(start: ULong, endInclusive: ULong) : ULongProgression(st
override fun toString(): String = "$first..$last"
companion object {
public companion object {
/** An empty range of values of type ULong. */
public val EMPTY: ULongRange = ULongRange(ULong.MAX_VALUE, ULong.MIN_VALUE)
}
@@ -103,7 +103,7 @@ internal constructor(
override fun toString(): String = if (step > 0) "$first..$last step $step" else "$first downTo $last step ${-step}"
companion object {
public companion object {
/**
* Creates ULongProgression within the specified bounds of a closed range.
@@ -16,7 +16,7 @@ import kotlin.jvm.*
@JvmInline
public value class UShort @kotlin.internal.IntrinsicConstEvaluation @PublishedApi internal constructor(@PublishedApi internal val data: Short) : Comparable<UShort> {
companion object {
public companion object {
/**
* A constant holding the minimum value an instance of UShort can have.
*/