luaur-analysis 0.1.2

Luau type checker and type inference (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::functions::get_type_alt_j::get_type_id;
use crate::records::anyification::Anyification;
use crate::records::extern_type::ExternType;
use crate::type_aliases::type_id::TypeId;

impl Anyification {
    pub fn ignore_children_type_id(&mut self, ty: TypeId) -> bool {
        let et = unsafe { get_type_id::<ExternType>(ty) };
        if !et.is_null() {
            return true;
        }

        unsafe { (*ty).persistent }
    }
}