641fa374ed
10309: use `ControlFlow` in "extract function" assist r=Veykril a=dzvon Fixes #10272 Co-authored-by: Dezhi Wu <wu543065657@163.com>