luaur-analysis 0.1.3

Luau type checker and type inference (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::functions::get_level_type::get_level;
use crate::records::type_level::TypeLevel;
use crate::type_aliases::type_id::TypeId;

pub fn get_mutable_level(ty: TypeId) -> *mut TypeLevel {
    if let Some(level) = get_level(ty) {
        level as *const TypeLevel as *mut TypeLevel
    } else {
        core::ptr::null_mut()
    }
}