Skip to main content

luaur_compiler/methods/
table_mutation_tracker_visit_constant_folding_alt_g.rs

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