|
1 | 1 | use emmylua_parser::{ |
2 | | - LuaAssignStat, LuaAst, LuaAstNode, LuaBreakStat, LuaCallExprStat, LuaDoStat, LuaForRangeStat, LuaFuncStat, LuaGotoStat, LuaIfStat, LuaLabelStat, LuaLocalStat, LuaRepeatStat, LuaReturnStat, LuaVarExpr, LuaWhileStat, PathTrait |
| 2 | + LuaAssignStat, LuaAst, LuaAstNode, LuaBreakStat, LuaCallExprStat, LuaDoStat, LuaForRangeStat, |
| 3 | + LuaFuncStat, LuaGotoStat, LuaIfStat, LuaLabelStat, LuaLocalStat, LuaRepeatStat, LuaReturnStat, |
| 4 | + LuaVarExpr, LuaWhileStat, PathTrait, |
3 | 5 | }; |
4 | 6 |
|
5 | 7 | use crate::{ |
@@ -219,7 +221,11 @@ pub fn bind_while_stat( |
219 | 221 | current |
220 | 222 | } |
221 | 223 |
|
222 | | -pub fn bind_repeat_stat(binder: &mut FlowBinder, repeat_stat: LuaRepeatStat, current: FlowId) -> FlowId { |
| 224 | +pub fn bind_repeat_stat( |
| 225 | + binder: &mut FlowBinder, |
| 226 | + repeat_stat: LuaRepeatStat, |
| 227 | + current: FlowId, |
| 228 | +) -> FlowId { |
223 | 229 | let old_loop_label = binder.loop_label; |
224 | 230 |
|
225 | 231 | // Create a loop label for the repeat statement |
@@ -306,11 +312,7 @@ pub fn bind_if_stat(binder: &mut FlowBinder, if_stat: LuaIfStat, current: FlowId |
306 | 312 | current |
307 | 313 | } |
308 | 314 |
|
309 | | -pub fn bind_func_stat( |
310 | | - binder: &mut FlowBinder, |
311 | | - func_stat: LuaFuncStat, |
312 | | - current: FlowId, |
313 | | -) -> FlowId { |
| 315 | +pub fn bind_func_stat(binder: &mut FlowBinder, func_stat: LuaFuncStat, current: FlowId) -> FlowId { |
314 | 316 | bind_each_child(binder, LuaAst::LuaFuncStat(func_stat), current); |
315 | 317 | current |
316 | 318 | } |
|
0 commit comments