luaur-analysis 0.1.2

Luau type checker and type inference (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::records::builtin_types::BuiltinTypes;
use crate::records::intersection_builder::IntersectionBuilder;
use crate::records::type_arena::TypeArena;
use crate::records::type_ids::TypeIds;

impl IntersectionBuilder {
    pub fn intersection_builder(arena: *mut TypeArena, builtin_types: *mut BuiltinTypes) -> Self {
        Self {
            arena,
            builtin_types,
            parts: TypeIds::type_ids(),
            is_bottom: false,
        }
    }
}