[FIR] Create CFG for files to track top-level property initialization
In order to properly analyze top-level property initialization, a control-flow graph must be created for FirFiles. This change adds the foundation for the file CFG and updates body resolve to create the CFG. Checking the CFG for proper initialization is separated into a following change to ease code review. KT-56683
This commit is contained in:
+1
-1
@@ -64,7 +64,7 @@ object FirTreeBuilder : AbstractFirTreeBuilder() {
|
||||
val propertyAccessor by element(Declaration, function, contractDescriptionOwner, typeParametersOwner)
|
||||
val backingField by element(Declaration, variable, typeParametersOwner, statement)
|
||||
val constructor by element(Declaration, function, typeParameterRefsOwner, contractDescriptionOwner)
|
||||
val file by element(Declaration, declaration)
|
||||
val file by element(Declaration, declaration, controlFlowGraphOwner)
|
||||
val script by element(Declaration, declaration)
|
||||
val codeFragment by element(Declaration, declaration)
|
||||
val packageDirective by element(Other)
|
||||
|
||||
Reference in New Issue
Block a user