Skip to main content

luaur_compiler/methods/
table_mutation_tracker_visit_constant_folding_alt_h.rs

1use crate::records::table_mutation_tracker::TableMutationTracker;
2use luaur_ast::records::ast_stat_return::AstStatReturn;
3
4impl<'a> TableMutationTracker<'a> {
5    pub fn visit_ast_stat_return(&mut self, node: *mut AstStatReturn) -> bool {
6        if node.is_null() {
7            return false;
8        }
9
10        unsafe {
11            let node_ref = &*node;
12
13            for expr_ptr in node_ref.list.as_slice() {
14                self.mark_escaped_impl(*expr_ptr);
15            }
16        }
17
18        true
19    }
20}