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::enums::block_kind::BlockKind;
use luaur_common::macros::luau_assert::LUAU_ASSERT;

pub fn block_kind_name(kind: BlockKind) -> &'static str {
    match kind {
        BlockKind::Entry => "entry",
        BlockKind::Linear => "linear",
        BlockKind::Condition => "condition",
        _ => {
            LUAU_ASSERT!(false);
            "?"
        }
    }
}