luaur_compiler/methods/
table_mutation_tracker_visit_constant_folding_alt_d.rs1use crate::records::table_mutation_tracker::TableMutationTracker;
2use luaur_ast::records::ast_stat_assign::AstStatAssign;
3use luaur_ast::records::ast_visitor::AstVisitor;
4
5impl<'a> TableMutationTracker<'a> {
6 pub fn visit_ast_stat_assign(&mut self, node: *mut AstStatAssign) -> bool {
7 if node.is_null() {
8 return false;
9 }
10
11 unsafe {
12 let node_ref = &*node;
13
14 for rhs in node_ref.values.as_slice() {
15 self.mark_escaped_impl(*rhs);
16 }
17
18 for lhs in node_ref.vars.as_slice() {
19 self.mark_escaped_table_index(*lhs, true);
20 }
21 }
22
23 true
24 }
25}