Implement metadata handling for IR scripts

This commit is contained in:
Ilya Chernikov
2020-12-07 20:02:52 +01:00
parent 4c6b5ff0b8
commit 32d0c99289
8 changed files with 21 additions and 2 deletions
@@ -116,6 +116,12 @@ object AbstractTypeMapper {
return asmType
}
typeConstructor.isScript() -> {
val asmType = AsmTypes.JAVA_CLASS_TYPE
with(context) { sw?.writeGenericType(type, asmType, mode) }
return asmType
}
typeConstructor.isTypeParameter() -> {
val typeParameter = typeConstructor as TypeParameterMarker
return mapType(context, typeParameter.representativeUpperBound(), mode, null).also { asmType ->