[stdlib] Explicit visibility and return types: JVM internal
This commit is contained in:
committed by
Space Team
parent
2e030f213b
commit
df190b1265
+6
-6
@@ -17,7 +17,7 @@ FILE: [ResolvedTo(RAW_FIR)] TypeReference.kt
|
||||
@SinceKotlin[Unresolved](LAZY_EXPRESSION) internal final? [ResolvedTo(RAW_FIR)] [IsFromPrimaryConstructor=true] val flags: Int = R|<local>/flags|
|
||||
internal [ResolvedTo(RAW_FIR)] [ContainingClassKey=TypeReference] get(): Int
|
||||
|
||||
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=TypeReference] constructor([ResolvedTo(RAW_FIR)] classifier: KClassifier, [ResolvedTo(RAW_FIR)] arguments: List<KTypeProjection>, [ResolvedTo(RAW_FIR)] isMarkedNullable: Boolean): R|kotlin/jvm/internal/TypeReference| {
|
||||
public [ResolvedTo(RAW_FIR)] [ContainingClassKey=TypeReference] constructor([ResolvedTo(RAW_FIR)] classifier: KClassifier, [ResolvedTo(RAW_FIR)] arguments: List<KTypeProjection>, [ResolvedTo(RAW_FIR)] isMarkedNullable: Boolean): R|kotlin/jvm/internal/TypeReference| {
|
||||
LAZY_this<R|kotlin/jvm/internal/TypeReference|>
|
||||
}
|
||||
|
||||
@@ -77,7 +77,7 @@ FILE: [ResolvedTo(IMPORTS)] TypeReference.kt
|
||||
@SinceKotlin[Unresolved](LAZY_EXPRESSION) internal final? [ResolvedTo(RAW_FIR)] [IsFromPrimaryConstructor=true] val flags: Int = R|<local>/flags|
|
||||
internal [ResolvedTo(RAW_FIR)] [ContainingClassKey=TypeReference] get(): Int
|
||||
|
||||
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=TypeReference] constructor([ResolvedTo(RAW_FIR)] classifier: KClassifier, [ResolvedTo(RAW_FIR)] arguments: List<KTypeProjection>, [ResolvedTo(RAW_FIR)] isMarkedNullable: Boolean): R|kotlin/jvm/internal/TypeReference| {
|
||||
public [ResolvedTo(RAW_FIR)] [ContainingClassKey=TypeReference] constructor([ResolvedTo(RAW_FIR)] classifier: KClassifier, [ResolvedTo(RAW_FIR)] arguments: List<KTypeProjection>, [ResolvedTo(RAW_FIR)] isMarkedNullable: Boolean): R|kotlin/jvm/internal/TypeReference| {
|
||||
LAZY_this<R|kotlin/jvm/internal/TypeReference|>
|
||||
}
|
||||
|
||||
@@ -137,7 +137,7 @@ FILE: [ResolvedTo(IMPORTS)] TypeReference.kt
|
||||
@SinceKotlin[Unresolved](LAZY_EXPRESSION) internal final? [ResolvedTo(RAW_FIR)] [IsFromPrimaryConstructor=true] val flags: Int = R|<local>/flags|
|
||||
internal [ResolvedTo(RAW_FIR)] [ContainingClassKey=TypeReference] get(): Int
|
||||
|
||||
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=TypeReference] constructor([ResolvedTo(RAW_FIR)] classifier: KClassifier, [ResolvedTo(RAW_FIR)] arguments: List<KTypeProjection>, [ResolvedTo(RAW_FIR)] isMarkedNullable: Boolean): R|kotlin/jvm/internal/TypeReference| {
|
||||
public [ResolvedTo(RAW_FIR)] [ContainingClassKey=TypeReference] constructor([ResolvedTo(RAW_FIR)] classifier: KClassifier, [ResolvedTo(RAW_FIR)] arguments: List<KTypeProjection>, [ResolvedTo(RAW_FIR)] isMarkedNullable: Boolean): R|kotlin/jvm/internal/TypeReference| {
|
||||
LAZY_this<R|kotlin/jvm/internal/TypeReference|>
|
||||
}
|
||||
|
||||
@@ -197,7 +197,7 @@ FILE: [ResolvedTo(IMPORTS)] TypeReference.kt
|
||||
@SinceKotlin[Unresolved](LAZY_EXPRESSION) internal final? [ResolvedTo(RAW_FIR)] [IsFromPrimaryConstructor=true] val flags: Int = R|<local>/flags|
|
||||
internal [ResolvedTo(RAW_FIR)] [ContainingClassKey=TypeReference] get(): Int
|
||||
|
||||
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=TypeReference] constructor([ResolvedTo(RAW_FIR)] classifier: KClassifier, [ResolvedTo(RAW_FIR)] arguments: List<KTypeProjection>, [ResolvedTo(RAW_FIR)] isMarkedNullable: Boolean): R|kotlin/jvm/internal/TypeReference| {
|
||||
public [ResolvedTo(RAW_FIR)] [ContainingClassKey=TypeReference] constructor([ResolvedTo(RAW_FIR)] classifier: KClassifier, [ResolvedTo(RAW_FIR)] arguments: List<KTypeProjection>, [ResolvedTo(RAW_FIR)] isMarkedNullable: Boolean): R|kotlin/jvm/internal/TypeReference| {
|
||||
LAZY_this<R|kotlin/jvm/internal/TypeReference|>
|
||||
}
|
||||
|
||||
@@ -257,7 +257,7 @@ FILE: [ResolvedTo(IMPORTS)] TypeReference.kt
|
||||
@SinceKotlin[Unresolved](LAZY_EXPRESSION) internal final? [ResolvedTo(RAW_FIR)] [IsFromPrimaryConstructor=true] val flags: Int = R|<local>/flags|
|
||||
internal [ResolvedTo(RAW_FIR)] [ContainingClassKey=TypeReference] get(): Int
|
||||
|
||||
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=TypeReference] constructor([ResolvedTo(RAW_FIR)] classifier: KClassifier, [ResolvedTo(RAW_FIR)] arguments: List<KTypeProjection>, [ResolvedTo(RAW_FIR)] isMarkedNullable: Boolean): R|kotlin/jvm/internal/TypeReference| {
|
||||
public [ResolvedTo(RAW_FIR)] [ContainingClassKey=TypeReference] constructor([ResolvedTo(RAW_FIR)] classifier: KClassifier, [ResolvedTo(RAW_FIR)] arguments: List<KTypeProjection>, [ResolvedTo(RAW_FIR)] isMarkedNullable: Boolean): R|kotlin/jvm/internal/TypeReference| {
|
||||
LAZY_this<R|kotlin/jvm/internal/TypeReference|>
|
||||
}
|
||||
|
||||
@@ -317,7 +317,7 @@ FILE: [ResolvedTo(IMPORTS)] TypeReference.kt
|
||||
@SinceKotlin[Unresolved](LAZY_EXPRESSION) internal final? [ResolvedTo(RAW_FIR)] [IsFromPrimaryConstructor=true] val flags: Int = R|<local>/flags|
|
||||
internal [ResolvedTo(RAW_FIR)] [ContainingClassKey=TypeReference] get(): Int
|
||||
|
||||
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=TypeReference] constructor([ResolvedTo(RAW_FIR)] classifier: KClassifier, [ResolvedTo(RAW_FIR)] arguments: List<KTypeProjection>, [ResolvedTo(RAW_FIR)] isMarkedNullable: Boolean): R|kotlin/jvm/internal/TypeReference| {
|
||||
public [ResolvedTo(RAW_FIR)] [ContainingClassKey=TypeReference] constructor([ResolvedTo(RAW_FIR)] classifier: KClassifier, [ResolvedTo(RAW_FIR)] arguments: List<KTypeProjection>, [ResolvedTo(RAW_FIR)] isMarkedNullable: Boolean): R|kotlin/jvm/internal/TypeReference| {
|
||||
LAZY_this<R|kotlin/jvm/internal/TypeReference|>
|
||||
}
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ import kotlin.jvm.internal.FunctionBase
|
||||
* This interface must only be used in Java sources to reference a Kotlin function type with more than 22 arguments.
|
||||
*/
|
||||
@SinceKotlin("1.3")
|
||||
interface FunctionN<out R> : Function<R>, FunctionBase<R> {
|
||||
public interface FunctionN<out R> : Function<R>, FunctionBase<R> {
|
||||
/**
|
||||
* Invokes the function with the specified arguments.
|
||||
*
|
||||
@@ -21,7 +21,7 @@ interface FunctionN<out R> : Function<R>, FunctionBase<R> {
|
||||
*
|
||||
* @param args arguments to the function
|
||||
*/
|
||||
operator fun invoke(vararg args: Any?): R
|
||||
public operator fun invoke(vararg args: Any?): R
|
||||
|
||||
/**
|
||||
* Returns the number of arguments that must be passed to this function.
|
||||
|
||||
@@ -87,16 +87,16 @@ public class ClassReference(override val jClass: Class<*>) : KClass<Any>, ClassB
|
||||
|
||||
private fun error(): Nothing = throw KotlinReflectionNotSupportedError()
|
||||
|
||||
override fun equals(other: Any?) =
|
||||
override fun equals(other: Any?): Boolean =
|
||||
other is ClassReference && javaObjectType == other.javaObjectType
|
||||
|
||||
override fun hashCode() =
|
||||
override fun hashCode(): Int =
|
||||
javaObjectType.hashCode()
|
||||
|
||||
override fun toString() =
|
||||
override fun toString(): String =
|
||||
jClass.toString() + Reflection.REFLECTION_NOT_AVAILABLE
|
||||
|
||||
companion object {
|
||||
public companion object {
|
||||
private val FUNCTION_CLASSES =
|
||||
listOf(
|
||||
Function0::class.java, Function1::class.java, Function2::class.java, Function3::class.java, Function4::class.java,
|
||||
|
||||
@@ -5,6 +5,6 @@
|
||||
|
||||
package kotlin.jvm.internal
|
||||
|
||||
interface FunctionBase<out R> : Function<R> {
|
||||
val arity: Int
|
||||
public interface FunctionBase<out R> : Function<R> {
|
||||
public val arity: Int
|
||||
}
|
||||
|
||||
@@ -10,5 +10,5 @@ import kotlin.reflect.KType
|
||||
|
||||
@SinceKotlin("1.4")
|
||||
public interface KTypeBase : KType {
|
||||
val javaType: Type?
|
||||
public val javaType: Type?
|
||||
}
|
||||
|
||||
@@ -7,6 +7,6 @@ package kotlin.jvm.internal
|
||||
|
||||
import java.io.Serializable
|
||||
|
||||
abstract class Lambda<out R>(override val arity: Int) : FunctionBase<R>, Serializable {
|
||||
public abstract class Lambda<out R>(override val arity: Int) : FunctionBase<R>, Serializable {
|
||||
override fun toString(): String = Reflection.renderLambdaToString(this)
|
||||
}
|
||||
|
||||
@@ -15,12 +15,12 @@ public class PackageReference(
|
||||
override val members: Collection<KCallable<*>>
|
||||
get() = throw KotlinReflectionNotSupportedError()
|
||||
|
||||
override fun equals(other: Any?) =
|
||||
override fun equals(other: Any?): Boolean =
|
||||
other is PackageReference && jClass == other.jClass
|
||||
|
||||
override fun hashCode() =
|
||||
override fun hashCode(): Int =
|
||||
jClass.hashCode()
|
||||
|
||||
override fun toString() =
|
||||
override fun toString(): String =
|
||||
jClass.toString() + Reflection.REFLECTION_NOT_AVAILABLE
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ package kotlin.jvm.internal
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
@Target(AnnotationTarget.CLASS)
|
||||
@SinceKotlin("1.6")
|
||||
annotation class SerializedIr(
|
||||
public annotation class SerializedIr(
|
||||
@get:JvmName("b")
|
||||
val bytes: Array<String> = []
|
||||
)
|
||||
|
||||
@@ -15,4 +15,4 @@ package kotlin.jvm.internal
|
||||
@Target(AnnotationTarget.CLASS)
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
@SinceKotlin("1.8")
|
||||
annotation class SourceDebugExtension(val value: Array<String>)
|
||||
public annotation class SourceDebugExtension(val value: Array<String>)
|
||||
|
||||
@@ -11,7 +11,7 @@ import kotlin.reflect.KVariance
|
||||
import kotlin.reflect.typeOf
|
||||
|
||||
@SinceKotlin("1.4")
|
||||
class TypeParameterReference(
|
||||
public class TypeParameterReference(
|
||||
private val container: Any?, // Either ClassReference or CallableReference
|
||||
override val name: String,
|
||||
override val variance: KVariance,
|
||||
@@ -24,7 +24,7 @@ class TypeParameterReference(
|
||||
override val upperBounds: List<KType>
|
||||
get() = bounds ?: listOf(typeOf<Any?>()).also { bounds = it }
|
||||
|
||||
fun setUpperBounds(upperBounds: List<KType>) {
|
||||
public fun setUpperBounds(upperBounds: List<KType>) {
|
||||
// This assertion is only checking that the typeOf compiler implementation didn't generate some nonsense in bytecode.
|
||||
// Since this class is not used anywhere else, we don't use any locks to prevent double initialization here intentionally.
|
||||
if (bounds != null) {
|
||||
@@ -41,8 +41,8 @@ class TypeParameterReference(
|
||||
|
||||
override fun toString(): String = toString(this)
|
||||
|
||||
companion object {
|
||||
fun toString(typeParameter: KTypeParameter): String =
|
||||
public companion object {
|
||||
public fun toString(typeParameter: KTypeParameter): String =
|
||||
buildString {
|
||||
when (typeParameter.variance) {
|
||||
KVariance.INVARIANT -> {
|
||||
|
||||
@@ -14,7 +14,7 @@ public class TypeReference @SinceKotlin("1.6") constructor(
|
||||
@SinceKotlin("1.6") internal val platformTypeUpperBound: KType?,
|
||||
@SinceKotlin("1.6") internal val flags: Int,
|
||||
) : KType {
|
||||
constructor(
|
||||
public constructor(
|
||||
classifier: KClassifier,
|
||||
arguments: List<KTypeProjection>,
|
||||
isMarkedNullable: Boolean,
|
||||
|
||||
@@ -14,7 +14,7 @@ private fun notSupportedError(): Nothing {
|
||||
}
|
||||
|
||||
@SinceKotlin("1.1")
|
||||
open class LocalVariableReference : PropertyReference0() {
|
||||
public open class LocalVariableReference : PropertyReference0() {
|
||||
override fun getOwner(): KDeclarationContainer = notSupportedError()
|
||||
|
||||
override fun get(): Any? = notSupportedError()
|
||||
@@ -22,7 +22,7 @@ open class LocalVariableReference : PropertyReference0() {
|
||||
}
|
||||
|
||||
@SinceKotlin("1.1")
|
||||
open class MutableLocalVariableReference : MutablePropertyReference0() {
|
||||
public open class MutableLocalVariableReference : MutablePropertyReference0() {
|
||||
override fun getOwner(): KDeclarationContainer = notSupportedError()
|
||||
|
||||
override fun get(): Any? = notSupportedError()
|
||||
|
||||
@@ -5,20 +5,20 @@
|
||||
|
||||
package kotlin.jvm.internal.markers
|
||||
|
||||
interface KMappedMarker
|
||||
public interface KMappedMarker
|
||||
|
||||
interface KMutableIterable : KMappedMarker
|
||||
public interface KMutableIterable : KMappedMarker
|
||||
|
||||
interface KMutableCollection : KMutableIterable
|
||||
public interface KMutableCollection : KMutableIterable
|
||||
|
||||
interface KMutableList : KMutableCollection
|
||||
public interface KMutableList : KMutableCollection
|
||||
|
||||
interface KMutableIterator : KMappedMarker
|
||||
public interface KMutableIterator : KMappedMarker
|
||||
|
||||
interface KMutableListIterator : KMutableIterator
|
||||
public interface KMutableListIterator : KMutableIterator
|
||||
|
||||
interface KMutableMap : KMappedMarker {
|
||||
interface Entry : KMappedMarker
|
||||
public interface KMutableMap : KMappedMarker {
|
||||
public interface Entry : KMappedMarker
|
||||
}
|
||||
|
||||
interface KMutableSet : KMutableCollection
|
||||
public interface KMutableSet : KMutableCollection
|
||||
Reference in New Issue
Block a user