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
use crate::records::binding_snapshot::BindingSnapshot;
use crate::records::type_binding_snapshot::TypeBindingSnapshot;
use alloc::string::String;
use alloc::vec::Vec;
use std::collections::HashMap;

#[derive(Debug, Clone, Default)]
pub struct ScopeSnapshot {
    pub bindings: HashMap<String, BindingSnapshot>,
    pub type_bindings: HashMap<String, TypeBindingSnapshot>,
    pub type_pack_bindings: HashMap<String, TypeBindingSnapshot>,
    pub children: Vec<ScopeSnapshot>,
}