IR: make DescriptorMetadataSource a subtype of MetadataSource
FirMetadataSource is a metadata source too.
This commit is contained in:
+2
-2
@@ -123,7 +123,7 @@ class ParcelableIrTransformer(private val context: IrPluginContext, private val
|
||||
irExprBody(irInt(flags))
|
||||
}
|
||||
|
||||
metadata = MetadataSource.Function(
|
||||
metadata = DescriptorMetadataSource.Function(
|
||||
declaration.descriptor.findFunction(ParcelableSyntheticComponent.ComponentKind.DESCRIBE_CONTENTS)!!
|
||||
)
|
||||
}
|
||||
@@ -178,7 +178,7 @@ class ParcelableIrTransformer(private val context: IrPluginContext, private val
|
||||
}
|
||||
}
|
||||
|
||||
metadata = MetadataSource.Function(
|
||||
metadata = DescriptorMetadataSource.Function(
|
||||
declaration.descriptor.findFunction(ParcelableSyntheticComponent.ComponentKind.WRITE_TO_PARCEL)!!
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user