[FIR] Add FirControlFloGraph owner supertype to FirField

FirField, just like FirProperty, can have control flow graph of it's
  intializer
This commit is contained in:
Dmitriy Novozhilov
2021-11-22 15:28:55 +03:00
committed by teamcityserver
parent 3bef04cf5e
commit 5778cb440f
7 changed files with 19 additions and 7 deletions
@@ -39,7 +39,7 @@ object FirTreeBuilder : AbstractFirTreeBuilder() {
val variable by sealedElement(Declaration, callableDeclaration, statement)
val valueParameter by element(Declaration, variable, controlFlowGraphOwner)
val property by element(Declaration, variable, typeParametersOwner, controlFlowGraphOwner)
val field by element(Declaration, variable)
val field by element(Declaration, variable, controlFlowGraphOwner)
val enumEntry by element(Declaration, variable)
val classLikeDeclaration by sealedElement(Declaration, memberDeclaration, statement)