mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 17:20:55 +07:00
IJPL-201747 Mark DataContextId as @ApiStatus.Experimental
GitOrigin-RevId: 9dc369c72f9b673f9e20152c4f8aec049de7383c
This commit is contained in:
committed by
intellij-monorepo-bot
parent
d71396c4a9
commit
13f11f8661
@@ -10,7 +10,7 @@ import org.jetbrains.annotations.ApiStatus
|
|||||||
/**
|
/**
|
||||||
* Converts an [DataContext] instance into a [DataContextId] which can be used in RPC calls and stored in Rhizome.
|
* Converts an [DataContext] instance into a [DataContextId] which can be used in RPC calls and stored in Rhizome.
|
||||||
*/
|
*/
|
||||||
@ApiStatus.Internal
|
@ApiStatus.Experimental
|
||||||
fun DataContext.rpcId(): DataContextId {
|
fun DataContext.rpcId(): DataContextId {
|
||||||
val context = this
|
val context = this
|
||||||
val serializedContext = serializeToRpc(context)
|
val serializedContext = serializeToRpc(context)
|
||||||
@@ -21,7 +21,7 @@ fun DataContext.rpcId(): DataContextId {
|
|||||||
/**
|
/**
|
||||||
* Retrieves the [DataContext] associated with the given [DataContextId].
|
* Retrieves the [DataContext] associated with the given [DataContextId].
|
||||||
*/
|
*/
|
||||||
@ApiStatus.Internal
|
@ApiStatus.Experimental
|
||||||
fun DataContextId.dataContext(): DataContext? {
|
fun DataContextId.dataContext(): DataContext? {
|
||||||
if (localContext != null) {
|
if (localContext != null) {
|
||||||
return localContext
|
return localContext
|
||||||
@@ -30,7 +30,7 @@ fun DataContextId.dataContext(): DataContext? {
|
|||||||
return deserializeFromRpc<DataContext>(serializedValue)
|
return deserializeFromRpc<DataContext>(serializedValue)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiStatus.Internal
|
@ApiStatus.Experimental
|
||||||
@Serializable
|
@Serializable
|
||||||
class DataContextId internal constructor(
|
class DataContextId internal constructor(
|
||||||
@Serializable @JvmField internal val serializedValue: SerializedValue? = null,
|
@Serializable @JvmField internal val serializedValue: SerializedValue? = null,
|
||||||
|
|||||||
Reference in New Issue
Block a user