luaur-analysis 0.1.3

Luau type checker and type inference (Rust).
Documentation
1
2
3
4
5
6
7
8
use crate::records::intersection_type::IntersectionType;
use crate::records::type_arena::TypeArena;
use crate::type_aliases::type_id::TypeId;
use alloc::vec::Vec;

pub fn make_intersection(arena: &mut TypeArena, types: Vec<TypeId>) -> TypeId {
    arena.add_type(IntersectionType { parts: types })
}