Skip to main content

luaur_analysis/methods/
clone_public_interface_ignore_children_visit_module.rs

1use crate::records::clone_public_interface::ClonePublicInterface;
2use crate::type_aliases::type_id::TypeId;
3
4impl ClonePublicInterface {
5    /// `bool ClonePublicInterface::ignoreChildrenVisit(TypeId ty)`.
6    /// Reference: `Module.cpp:151-157`.
7    pub fn ignore_children_visit_type_id(&mut self, ty: TypeId) -> bool {
8        let module = unsafe { &*self.module };
9
10        let owning_arena = unsafe { (*ty).owning_arena };
11        if owning_arena != (&module.internal_types as *const _ as *mut _) {
12            return true;
13        }
14
15        false
16    }
17}