luaur_analysis/methods/
scope_inherit_assignments.rs1use crate::records::scope::Scope;
2use crate::type_aliases::scope_ptr_scope::ScopePtr;
3
4impl Scope {
5 pub fn inherit_assignments(&mut self, child_scope: &ScopePtr) {
6 for (k, a) in unsafe { &(*child_scope).lvalue_types }.iter() {
7 self.lvalue_types.try_insert(*k, *a);
8 }
9 }
10}