JVM IR: generate file annotations on file facade classes

This commit is contained in:
Alexander Udalov
2019-09-16 12:31:56 +02:00
parent 565099d941
commit c69997491f
3 changed files with 3 additions and 5 deletions
@@ -101,6 +101,9 @@ private class FileClassLowering(val context: JvmBackendContext) : FileLoweringPa
it.backingField?.let { it.parent = this }
}
}
annotations += irFile.annotations
metadata = irFile.metadata
val partClassType = AsmUtil.asmTypeByFqNameWithoutInnerClasses(fileClassInfo.fileClassFqName)
@@ -114,6 +117,5 @@ private class FileClassLowering(val context: JvmBackendContext) : FileLoweringPa
context.multifileFacadesToAdd.getOrPut(jvmClassName) { ArrayList() }.add(this)
}
}
// TODO file annotations
}
}
@@ -1,6 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// TARGET_BACKEND: JVM
// WITH_RUNTIME
@file:StringHolder("OK")
@@ -1,6 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// FILE: StringHolder.java