luaur-analysis 0.1.1

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::records::clone_public_interface::ClonePublicInterface;
use crate::type_aliases::type_id::TypeId;

impl ClonePublicInterface {
    /// `bool ClonePublicInterface::ignoreChildrenVisit(TypeId ty)`.
    /// Reference: `Module.cpp:151-157`.
    pub fn ignore_children_visit_type_id(&mut self, ty: TypeId) -> bool {
        let module = unsafe { &*self.module };

        let owning_arena = unsafe { (*ty).owning_arena };
        if owning_arena != (&module.internal_types as *const _ as *mut _) {
            return true;
        }

        false
    }
}