luaur_analysis/functions/
are_normalized_functions.rs1use crate::functions::get_type_alt_j::get_type_id;
2use crate::records::function_type::FunctionType;
3use crate::records::normalized_function_type::NormalizedFunctionType;
4use crate::type_aliases::error_type::ErrorType;
5
6pub fn are_normalized_functions(tys: &NormalizedFunctionType) -> bool {
8 for &ty in &tys.parts.order {
9 unsafe {
10 if get_type_id::<FunctionType>(ty).is_null() && get_type_id::<ErrorType>(ty).is_null() {
11 return false;
12 }
13 }
14 }
15
16 true
17}