luaur_analysis/functions/
make_union.rs1use crate::records::type_arena::TypeArena;
2use crate::records::union_type::UnionType;
3use crate::type_aliases::type_id::TypeId;
4use alloc::vec::Vec;
5
6pub fn make_union(arena: &mut TypeArena, types: Vec<TypeId>) -> TypeId {
7 arena.add_type(UnionType { options: types })
8}