Skip to main content

luaur_analysis/methods/
reference_count_initializer_visit_constraint_alt_d.rs

1use crate::enums::table_state::TableState;
2use crate::records::reference_count_initializer::ReferenceCountInitializer;
3use crate::records::table_type::TableType;
4use crate::records::type_ids::TypeIds;
5use crate::type_aliases::type_id::TypeId;
6
7impl ReferenceCountInitializer {
8    pub fn visit_type_id_table_type(&mut self, ty: TypeId, tt: &TableType) -> bool {
9        if tt.state == TableState::Unsealed || tt.state == TableState::Free {
10            unsafe {
11                (*self.mutated_types).order.push(ty);
12            }
13        }
14
15        true
16    }
17}