mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-14 18:05:27 +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.
|
||||
*/
|
||||
@ApiStatus.Internal
|
||||
@ApiStatus.Experimental
|
||||
fun DataContext.rpcId(): DataContextId {
|
||||
val context = this
|
||||
val serializedContext = serializeToRpc(context)
|
||||
@@ -21,7 +21,7 @@ fun DataContext.rpcId(): DataContextId {
|
||||
/**
|
||||
* Retrieves the [DataContext] associated with the given [DataContextId].
|
||||
*/
|
||||
@ApiStatus.Internal
|
||||
@ApiStatus.Experimental
|
||||
fun DataContextId.dataContext(): DataContext? {
|
||||
if (localContext != null) {
|
||||
return localContext
|
||||
@@ -30,7 +30,7 @@ fun DataContextId.dataContext(): DataContext? {
|
||||
return deserializeFromRpc<DataContext>(serializedValue)
|
||||
}
|
||||
|
||||
@ApiStatus.Internal
|
||||
@ApiStatus.Experimental
|
||||
@Serializable
|
||||
class DataContextId internal constructor(
|
||||
@Serializable @JvmField internal val serializedValue: SerializedValue? = null,
|
||||
|
||||
Reference in New Issue
Block a user