luaur-compiler 0.1.3

Luau source-to-bytecode compiler (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::records::undefined_local_visitor::UndefinedLocalVisitor;
use luaur_ast::records::ast_local::AstLocal;

impl UndefinedLocalVisitor {
    pub fn check(&mut self, local: *mut AstLocal) {
        if self.undef.is_null() && self.locals.contains(&local) {
            self.undef = local;
        }
    }
}