luaur-analysis 0.1.1

Luau type checker and type inference (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::records::scope::Scope;
use crate::type_aliases::scope_ptr_scope::ScopePtr;

impl Scope {
    pub fn inherit_assignments(&mut self, child_scope: &ScopePtr) {
        for (k, a) in unsafe { &(*child_scope).lvalue_types }.iter() {
            self.lvalue_types.try_insert(*k, *a);
        }
    }
}