luaur_analysis/functions/make_intersection.rs
1use crate::records::intersection_type::IntersectionType;
2use crate::records::type_arena::TypeArena;
3use crate::type_aliases::type_id::TypeId;
4use alloc::vec::Vec;
5
6pub fn make_intersection(arena: &mut TypeArena, types: Vec<TypeId>) -> TypeId {
7 arena.add_type(IntersectionType { parts: types })
8}