[FIR] Add FirCodeFragment

This commit is contained in:
Vasily Levchenko
2023-06-13 15:48:27 +09:00
committed by Yan Zhulanow
parent 2760a25e2c
commit 33abe75a74
23 changed files with 320 additions and 5 deletions
@@ -64,6 +64,7 @@ object FirTreeBuilder : AbstractFirTreeBuilder() {
val constructor by element(Declaration, function, typeParameterRefsOwner, contractDescriptionOwner)
val file by element(Declaration, declaration)
val script by element(Declaration, declaration)
val codeFragment by element(Declaration, declaration)
val packageDirective by element(Other)
val anonymousFunction by element(Declaration, function, typeParametersOwner, contractDescriptionOwner)
@@ -495,6 +495,11 @@ object NodeConfigurator : AbstractFieldConfigurator<FirTreeBuilder>(FirTreeBuild
+fieldList(contextReceiver, useMutableOrEmpty = true)
}
codeFragment.configure {
+symbol("FirCodeFragmentSymbol")
+field(block).withTransform()
}
packageDirective.configure {
+field("packageFqName", fqNameType)
}