luaur-reduce-cli 0.1.3

Command-line Luau test-case reducer (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::records::reducer::Reducer;
use luaur_ast::records::ast_stat_block::AstStatBlock;

impl Reducer {
    pub fn try_promoting_child_statements_ast_stat_block(&mut self, b: *mut AstStatBlock) -> bool {
        let mut i: usize = 0;
        unsafe {
            while i < (*b).body.size {
                let promoted = self.try_promoting_child_statements_ast_stat_block_usize(b, i);
                if !promoted {
                    i += 1;
                }
            }
        }

        false
    }
}