[FIR] FirVariable: add replace method for delegate

It is required to properly implement lazy expression calculation

^KT-59687
This commit is contained in:
Dmitrii Gridin
2023-07-01 17:46:35 +02:00
committed by Space Team
parent 4f859a634e
commit f8b2b4ac21
18 changed files with 42 additions and 1 deletions
@@ -440,7 +440,7 @@ object NodeConfigurator : AbstractFieldConfigurator<FirTreeBuilder>(FirTreeBuild
+name
+symbol("FirVariableSymbol", "out FirVariable")
+initializer.withTransform().withReplace()
+field("delegate", expression, nullable = true).withTransform()
+field("delegate", expression, nullable = true, withReplace = true).withTransform()
generateBooleanFields("var", "val")
+field("getter", propertyAccessor, nullable = true, withReplace = true).withTransform()
+field("setter", propertyAccessor, nullable = true, withReplace = true).withTransform()