FIR CFA: remove top-level graph

It should never have contained any nodes because it was not attached
to anything.
This commit is contained in:
pyos
2022-12-11 20:23:06 +01:00
committed by Dmitriy Novozhilov
parent b548473544
commit 377b7bdf5e
3 changed files with 31 additions and 29 deletions
@@ -33,15 +33,14 @@ class ControlFlowGraph(val declaration: FirDeclaration?, val name: String, val k
nodes = orderNodes()
}
enum class Kind(val withBody: Boolean) {
Function(withBody = true),
AnonymousFunction(withBody = true),
ClassInitializer(withBody = false),
PropertyInitializer(withBody = true),
FieldInitializer(withBody = true),
TopLevel(withBody = false),
FakeCall(withBody = true),
DefaultArgument(withBody = true),
enum class Kind {
Class,
Function,
AnonymousFunction,
PropertyInitializer,
FieldInitializer,
FakeCall,
DefaultArgument,
}
}