Skip to main content

luaur_analysis/methods/
anyification_ignore_children_anyification.rs

1use crate::functions::get_type_alt_j::get_type_id;
2use crate::records::anyification::Anyification;
3use crate::records::extern_type::ExternType;
4use crate::type_aliases::type_id::TypeId;
5
6impl Anyification {
7    pub fn ignore_children_type_id(&mut self, ty: TypeId) -> bool {
8        let et = unsafe { get_type_id::<ExternType>(ty) };
9        if !et.is_null() {
10            return true;
11        }
12
13        unsafe { (*ty).persistent }
14    }
15}