luaur-analysis 0.1.0

Luau type checker and type inference (Rust).
Documentation
1
2
3
4
5
6
7
8
use crate::records::type_function_cloner::TypeFunctionCloner;
use crate::records::type_function_runtime::TypeFunctionRuntime;
use crate::type_aliases::type_function_type_id::TypeFunctionTypeId;

pub fn deep_clone(runtime: *mut TypeFunctionRuntime, ty: TypeFunctionTypeId) -> TypeFunctionTypeId {
    let mut cloner = TypeFunctionCloner::new(runtime);
    cloner.clone_type_function_type_id(ty)
}