luaur_analysis/functions/block_kind_name.rs
1use crate::enums::block_kind::BlockKind;
2use luaur_common::macros::luau_assert::LUAU_ASSERT;
3
4pub fn block_kind_name(kind: BlockKind) -> &'static str {
5 match kind {
6 BlockKind::Entry => "entry",
7 BlockKind::Linear => "linear",
8 BlockKind::Condition => "condition",
9 _ => {
10 LUAU_ASSERT!(false);
11 "?"
12 }
13 }
14}