luaur-analysis 0.1.3

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

impl Scope {
    pub fn scope_scope_ptr_i32(&mut self, parent: &ScopePtr, sub_level: i32) {
        self.parent = Some(parent.clone());
        self.return_type = parent.return_type.clone();
        self.level = parent.level.incr();
        self.level.subLevel = sub_level;
    }
}