Represent raw types in IR using a special type annotation
This commit is contained in:
@@ -38,6 +38,9 @@ open class StubGeneratorExtensions {
|
||||
open val enhancedNullabilityAnnotationConstructor: IrConstructor?
|
||||
get() = null
|
||||
|
||||
open val rawTypeAnnotationConstructor: IrConstructor?
|
||||
get() = null
|
||||
|
||||
companion object {
|
||||
@JvmField
|
||||
val EMPTY = StubGeneratorExtensions()
|
||||
|
||||
@@ -208,6 +208,10 @@ class TypeTranslator(
|
||||
irAnnotations.addSpecialAnnotation(extensions.flexibleNullabilityAnnotationConstructor)
|
||||
}
|
||||
|
||||
if (flexibleType is RawType) {
|
||||
irAnnotations.addSpecialAnnotation(extensions.rawTypeAnnotationConstructor)
|
||||
}
|
||||
|
||||
return irAnnotations
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user