[FIR] Allow FirElementSerializer.packagePartProto accept multiple files

This is needed for cases when there are multiple files with same name
 and `@JvmMultifileClass` annotation
This commit is contained in:
Dmitriy Novozhilov
2022-09-14 17:44:06 +03:00
committed by Space Team
parent 22ab43838b
commit bc93556dbb
6 changed files with 18 additions and 17 deletions
@@ -70,7 +70,7 @@ internal fun collectNewDirtySources(
}
override fun visitFile(file: FirFile, data: MutableList<MetadataSerializer>) {
val metadata = FirMetadataSource.File(file)
val metadata = FirMetadataSource.File(listOf(file))
withMetadataSerializer(metadata, data) {
file.acceptChildren(this, data)
// TODO: compare package fragments?