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
use crate::records::blocked_type::BlockedType;
use crate::records::reference_count_initializer::ReferenceCountInitializer;
use crate::type_aliases::type_id::TypeId;

impl ReferenceCountInitializer {
    /// C++ `bool ReferenceCountInitializer::visit(TypeId ty, const BlockedType&)`
    /// (Constraint.cpp:32-36).
    pub fn visit_type_id_blocked_type(&mut self, ty: TypeId, _blocked_type: &BlockedType) -> bool {
        unsafe {
            (*self.mutated_types).insert_type_id(ty);
        }
        false
    }
}