Explain why there is no syntheticToRealPropertyMap

This commit is contained in:
Chris Smowton
2022-02-28 14:48:41 +00:00
committed by Ian Lynagh
parent 110a2c7b87
commit f3b92e7549

View File

@@ -80,6 +80,10 @@ class KotlinExtractorExtension(
class KotlinExtractorGlobalState {
val genericSpecialisationsExtracted = HashSet<String>()
// These three record mappings of classes, functions and fields that should be replaced wherever they are found.
// As of now these are only used to fix IR generated by the Gradle Android Extensions plugin, hence e.g. IrProperty
// doesn't have a map as that plugin doesn't generate them. If and when these are used more widely additional maps
// should be added here.
val syntheticToRealClassMap = HashMap<IrClass, IrClass?>()
val syntheticToRealFunctionMap = HashMap<IrSimpleFunction, IrSimpleFunction?>()
val syntheticToRealFieldMap = HashMap<IrField, IrField?>()