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
use crate::functions::add_global_binding_builtin_definitions_alt_c::add_global_binding_builtin_definitions_alt_c;
use crate::records::global_types::GlobalTypes;
use crate::type_aliases::type_id::TypeId;

pub fn add_global_binding_builtin_definitions(
    globals: &mut GlobalTypes,
    name: &str,
    ty: TypeId,
    package_name: &str,
) {
    let scope = globals.global_scope.clone();
    add_global_binding_builtin_definitions_alt_c(globals, &scope, name, ty, package_name);
}