mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[codegen impl] Use OptIn(WorkspaceEntityInternalApi::class) annotation
GitOrigin-RevId: f9c26f47b9a95ca21c6903a82d681077ec44f233
This commit is contained in:
committed by
intellij-monorepo-bot
parent
a85d010c15
commit
bab3d819b5
@@ -1,3 +1,3 @@
|
||||
codegenImplMinorVersion = 22
|
||||
codegenImplMinorVersion = 23
|
||||
codegenImplMajorVersion = 5
|
||||
codegenApiVersion = 3
|
||||
+2
-1
@@ -48,10 +48,11 @@ internal val MutableEntityStorage = fqn(workspaceStoragePackageName, "MutableEnt
|
||||
internal val EntityStorageInstrumentation = fqn(workspaceStorageInstrumentationPackageName, "EntityStorageInstrumentation")
|
||||
internal val MutableEntityStorageInstrumentation = fqn(workspaceStorageInstrumentationPackageName, "MutableEntityStorageInstrumentation")
|
||||
internal val EntityStorageInstrumentationApi = fqn(workspaceStorageInstrumentationPackageName, "EntityStorageInstrumentationApi")
|
||||
internal val WorkspaceEntityInternalApi = fqn(workspaceStoragePackageName, "WorkspaceEntityInternalApi")
|
||||
|
||||
|
||||
internal val EntityType = fqn(workspaceStoragePackageName, "EntityType")
|
||||
internal val ConnectionId = fqn(workspaceStorageImplPackageName, "ConnectionId")
|
||||
internal val ConnectionId = fqn(workspaceStoragePackageName, "ConnectionId")
|
||||
internal val EntityLink = fqn(workspaceStorageImplPackageName, "EntityLink")
|
||||
internal val WorkspaceEntityBase = fqn(workspaceStorageImplPackageName, "WorkspaceEntityBase")
|
||||
internal val SoftLinkable = fqn(workspaceStorageImplPackageName, "SoftLinkable")
|
||||
|
||||
+1
@@ -28,6 +28,7 @@ fun ObjClass<*>.implWsDataClassCode(): String {
|
||||
val hasSoftLinks = hasSoftLinks()
|
||||
val softLinkable = if (hasSoftLinks) SoftLinkable else null
|
||||
return lines {
|
||||
line("@OptIn($WorkspaceEntityInternalApi::class)")
|
||||
section("internal class $javaDataName : ${sups(entityDataBaseClass, softLinkable?.encodedString)}") label@{
|
||||
|
||||
listNl(allFields.noRefs().noEntitySource().noSymbolicId()) { implWsDataFieldCode }
|
||||
|
||||
+1
@@ -21,6 +21,7 @@ fun ObjClass<*>.implWsEntityCode(): String {
|
||||
package ${module.implPackage}
|
||||
|
||||
${implWsEntityAnnotations}
|
||||
@OptIn($WorkspaceEntityInternalApi::class)
|
||||
internal $inheritanceModifier class $javaImplName(private val dataSource: $javaDataName): $javaFullName, ${WorkspaceEntityBase}(dataSource) {
|
||||
${
|
||||
"""
|
||||
|
||||
+2
@@ -14,6 +14,7 @@ internal fun implWsMetadataStorageCode(module: CompiledObjModule, types: List<Ob
|
||||
abstractTypes: List<ValueType.AbstractClass<*>>): String = lines {
|
||||
line("package ${module.implPackage}")
|
||||
line()
|
||||
line("@OptIn($WorkspaceEntityInternalApi::class)")
|
||||
section("internal object ${MetadataStorage.IMPL_NAME}: ${MetadataStorage.base}()") {
|
||||
val builtTypes: MutableList<String> = arrayListOf()
|
||||
val builtPrimitiveTypes = linkedSetOf<BuiltPrimitiveType>()
|
||||
@@ -64,6 +65,7 @@ internal fun implWsMetadataStorageCode(module: CompiledObjModule, types: List<Ob
|
||||
internal fun CompiledObjModule.implWsMetadataStorageBridgeCode(metadataStorageImpl: QualifiedName): String = lines {
|
||||
line("package ${this@implWsMetadataStorageBridgeCode.implPackage}")
|
||||
line()
|
||||
line("@OptIn($WorkspaceEntityInternalApi::class)")
|
||||
line("internal object ${MetadataStorage.IMPL_NAME}: ${MetadataStorage.bridge}($metadataStorageImpl)")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user