luaur_analysis/functions/is_normalized_error.rs
1use crate::functions::get_type_alt_j::get_type_id;
2use crate::records::never_type::NeverType;
3use crate::type_aliases::error_type::ErrorType;
4use crate::type_aliases::type_id::TypeId;
5
6pub fn is_normalized_error(ty: TypeId) -> bool {
7 unsafe { !get_type_id::<NeverType>(ty).is_null() || !get_type_id::<ErrorType>(ty).is_null() }
8}