[FIR] Add transformations for delegated constructor call

This commit is contained in:
Dmitriy Novozhilov
2020-04-15 12:57:29 +03:00
parent 30ac024011
commit fa1e5f9593
7 changed files with 26 additions and 4 deletions
@@ -338,13 +338,13 @@ object NodeConfigurator : AbstractFieldConfigurator<FirTreeBuilder>(FirTreeBuild
parentArg(callableMemberDeclaration, "F", constructor)
+annotations
+symbol("FirConstructorSymbol")
+field("delegatedConstructor", delegatedConstructorCall, nullable = true)
+field("delegatedConstructor", delegatedConstructorCall, nullable = true).withTransform()
+body(nullable = true)
+booleanField("isPrimary")
}
delegatedConstructorCall.configure {
+field("constructedTypeRef", typeRef)
+field("constructedTypeRef", typeRef, withReplace = true)
generateBooleanFields("this", "super")
}