[K2] Pass FirFile to metadata serialization
This is needed to extract correct const value from `ConstValueProvider`. #KT-57812
This commit is contained in:
+2
-1
@@ -46,6 +46,7 @@ internal fun collectNewDirtySources(
|
||||
body: (MetadataSerializer) -> Unit
|
||||
) {
|
||||
val serializer = makeLocalFirMetadataSerializerForMetadataSource(
|
||||
it,
|
||||
metadata,
|
||||
analyzedOutput.session,
|
||||
analyzedOutput.scopeSession,
|
||||
@@ -73,7 +74,7 @@ internal fun collectNewDirtySources(
|
||||
}
|
||||
|
||||
override fun visitFile(file: FirFile, data: MutableList<MetadataSerializer>) {
|
||||
val metadata = FirMetadataSource.File(listOf(file))
|
||||
val metadata = FirMetadataSource.File(file)
|
||||
withMetadataSerializer(metadata, data) {
|
||||
file.acceptChildren(this, data)
|
||||
// TODO: compare package fragments?
|
||||
|
||||
Reference in New Issue
Block a user