FIR CFA: remove modes

They are only used in one place that can just as well use kinds.

Especially considering that "the one place" used them incorrectly and
would not attach local functions in property accessors as subgraphs.
This commit is contained in:
pyos
2022-12-09 20:31:53 +01:00
committed by Dmitriy Novozhilov
parent cb8cb1f610
commit 7ff5ad1ad0
3 changed files with 167 additions and 202 deletions
@@ -73,13 +73,13 @@ class ControlFlowGraph(val declaration: FirDeclaration?, val name: String, val k
enum class Kind(val withBody: Boolean) {
Function(withBody = true),
AnonymousFunction(withBody = true),
ClassInitializer(withBody = true),
ClassInitializer(withBody = false),
PropertyInitializer(withBody = true),
FieldInitializer(withBody = true),
TopLevel(withBody = false),
AnnotationCall(withBody = true),
DefaultArgument(withBody = false),
Stub(withBody = true)
DefaultArgument(withBody = true),
Stub(withBody = false)
}
}