v2.18.0
Features:
getControlFlowEndaccepts BlockLike as argument
Bugfixes:
getControlFlowEndandendsControlFlow: correctly handle nested LabeledStatementsendsControlFlowremoved erroneous special case when an IterationStatement is passed as argument whose parent is a LabeledStatement.- if you want labels of an IterationStatement (or SwitchStatement) to be handled, you need to pass the LabeledStatement as argument.
⚠️ this fix may change the returned value if you relied on the buggy behavior
Deprecations:
- deprecated overload of
getControlFlowEndthat contains thelabelparameter. This parameter is no longer used and should no longer be passed to the function.