luaur_analysis/methods/
normalizer_union_tables_with_table.rs1use crate::functions::get_type_alt_j::get_type_id;
2use crate::records::never_type::NeverType;
3use crate::records::normalizer::Normalizer;
4use crate::records::type_ids::TypeIds;
5use crate::type_aliases::type_id::TypeId;
6
7impl Normalizer {
8 pub fn union_tables_with_table(&mut self, heres: &mut TypeIds, there: TypeId) {
9 let never_ptr = unsafe { get_type_id::<NeverType>(there) };
11 if !never_ptr.is_null() {
12 return;
13 }
14
15 heres.insert_type_id(there);
16 }
17}