luaur-analysis 0.1.0

Luau type checker and type inference (Rust).
Documentation
1
2
3
4
5
6
7
8
use crate::records::blocked_type_pack::BlockedTypePack;
use crate::records::txn_log::TxnLog;
use crate::type_aliases::type_pack_id::TypePackId;

pub fn is_blocked_txn_log_type_pack_id(log: &TxnLog, tp: TypePackId) -> bool {
    let tp = log.follow_type_pack_id(tp);
    !unsafe { crate::functions::get_type_pack::get::<BlockedTypePack>(tp) }.is_null()
}