Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f3b92e7

Browse files
smowtonigfoo
authored andcommitted
Explain why there is no syntheticToRealPropertyMap
1 parent 110a2c7 commit f3b92e7

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

java/kotlin-extractor/src/main/kotlin/KotlinExtractorExtension.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ class KotlinExtractorExtension(
8080

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

0 commit comments

Comments
 (0)