luaur-analysis 0.1.3

Luau type checker and type inference (Rust).
Documentation
1
2
3
4
5
6
7
8
9
use crate::records::builtin_types::BuiltinTypes;
use crate::records::normalized_extern_type::NormalizedExternType;
use crate::records::type_ids::TypeIds;

pub fn reset_to_top(builtin_types: &BuiltinTypes, extern_types: &mut NormalizedExternType) {
    extern_types.ordering.clear();
    extern_types.extern_types.clear();
    extern_types.push_pair(builtin_types.externType, TypeIds::type_ids());
}