luaur-analysis 0.1.3

Luau type checker and type inference (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::enums::table_state::TableState;
use crate::records::reference_count_initializer::ReferenceCountInitializer;
use crate::records::table_type::TableType;
use crate::records::type_ids::TypeIds;
use crate::type_aliases::type_id::TypeId;

impl ReferenceCountInitializer {
    pub fn visit_type_id_table_type(&mut self, ty: TypeId, tt: &TableType) -> bool {
        if tt.state == TableState::Unsealed || tt.state == TableState::Free {
            unsafe {
                (*self.mutated_types).order.push(ty);
            }
        }

        true
    }
}