[Commonizer] Refactor CIR to avoid strong refs on descriptors
This is necessary to reduce memory consumption in commonizer while processing sets of massive libraries. Ex: ios_x64 (127 libraries) vs ios_arm64 (127 libraries).
This commit is contained in:
+10
-10
@@ -16,13 +16,13 @@ annotation class JvmAnnotationForAnnotationClassesOnly(val text: String)
|
||||
@CommonAnnotationForAnnotationClassesOnly("annotation-class")
|
||||
annotation class JvmAnnotation(val text: String)
|
||||
|
||||
@Target(AnnotationTarget.CLASS)
|
||||
actual annotation class CommonOuterAnnotation(actual val inner: CommonInnerAnnotation)
|
||||
actual annotation class CommonInnerAnnotation(actual val text: String)
|
||||
|
||||
@Target(AnnotationTarget.CLASS)
|
||||
annotation class JvmOuterAnnotation(val inner: JvmInnerAnnotation)
|
||||
annotation class JvmInnerAnnotation(val text: String)
|
||||
//@Target(AnnotationTarget.CLASS)
|
||||
//actual annotation class CommonOuterAnnotation(actual val inner: CommonInnerAnnotation)
|
||||
//actual annotation class CommonInnerAnnotation(actual val text: String)
|
||||
//
|
||||
//@Target(AnnotationTarget.CLASS)
|
||||
//annotation class JvmOuterAnnotation(val inner: JvmInnerAnnotation)
|
||||
//annotation class JvmInnerAnnotation(val text: String)
|
||||
|
||||
@JvmAnnotation("property")
|
||||
@CommonAnnotation("property")
|
||||
@@ -57,6 +57,6 @@ actual class AnnotatedClass @JvmAnnotation("constructor") @CommonAnnotation("con
|
||||
@CommonAnnotation("type-alias")
|
||||
actual typealias AnnotatedTypeAlias = AnnotatedClass
|
||||
|
||||
@JvmOuterAnnotation(inner = JvmInnerAnnotation("nested-annotations"))
|
||||
@CommonOuterAnnotation(inner = CommonInnerAnnotation("nested-annotations"))
|
||||
actual object ObjectWithNestedAnnotations
|
||||
//@JvmOuterAnnotation(inner = JvmInnerAnnotation("nested-annotations"))
|
||||
//@CommonOuterAnnotation(inner = CommonInnerAnnotation("nested-annotations"))
|
||||
//actual object ObjectWithNestedAnnotations
|
||||
|
||||
Reference in New Issue
Block a user