luaur-analysis 0.1.3

Luau type checker and type inference (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::records::builtin_types::BuiltinTypes;
use crate::records::internal_error_reporter::InternalErrorReporter;
use crate::records::subtyping_unifier::SubtypingUnifier;
use crate::records::type_arena::TypeArena;

impl SubtypingUnifier {
    pub fn subtyping_unifier(
        arena: *mut TypeArena,
        builtin_types: *mut BuiltinTypes,
        reporter: *mut InternalErrorReporter,
    ) -> Self {
        Self {
            arena,
            builtin_types,
            reporter,
        }
    }
}