luaur-analysis 0.1.1

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::def::Def;
use crate::records::symbol::Symbol;
use crate::records::typed_allocator::TypedAllocator;
use crate::type_aliases::def_id_refinement::DefId;
use luaur_ast::records::location::Location;

#[derive(Debug)]
pub struct DefArena {
    pub allocator: TypedAllocator<Def>,
}

impl Default for DefArena {
    fn default() -> Self {
        Self {
            allocator: TypedAllocator::typed_allocator(),
        }
    }
}