[FIR] Handle expect declarations in JVM backend

1. Do not generate bytecode for expect declarations

2. Serialize @OptionalExpectation annotations into .kotlin_module file

^KT-62931: Fixed
This commit is contained in:
vladislav.grechko
2024-02-08 18:01:11 +01:00
committed by Space Team
parent b74501ee93
commit d753a22fc6
24 changed files with 352 additions and 113 deletions
@@ -46,6 +46,14 @@ open class SerializableStringTable : StringTable {
private val strings = Interner<String>()
private val qualifiedNames = Interner<FqNameProto>()
fun addString(string: String) {
strings.intern(string)
}
fun addQualifiedName(qualifiedName: ProtoBuf.QualifiedNameTable.QualifiedName) {
qualifiedNames.intern(FqNameProto(qualifiedName.toBuilder()))
}
override fun getStringIndex(string: String): Int = strings.intern(string)
override fun getQualifiedClassNameIndex(className: String, isLocal: Boolean): Int =