[FIR] Add FirCodeFragment
This commit is contained in:
committed by
Yan Zhulanow
parent
2760a25e2c
commit
33abe75a74
+1
@@ -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)
|
||||
|
||||
+5
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user