[FIR] Save info that when was used as expression

This commit is contained in:
Dmitriy Novozhilov
2021-02-04 12:49:24 +03:00
parent 490ef210ac
commit 11ab37160e
12 changed files with 81 additions and 2 deletions
@@ -588,6 +588,7 @@ object NodeConfigurator : AbstractFieldConfigurator<FirTreeBuilder>(FirTreeBuild
+field("subjectVariable", variable.withArgs("F" to "*"), nullable = true)
+fieldList("branches", whenBranch).withTransform()
+booleanField("isExhaustive", withReplace = true)
+booleanField("usedAsExpression")
needTransformOtherChildren()
}