luaur_compiler/methods/
compiler_undefined_local_visitor_check.rs1use crate::records::undefined_local_visitor::UndefinedLocalVisitor;
2use luaur_ast::records::ast_local::AstLocal;
3
4impl UndefinedLocalVisitor {
5 pub fn check(&mut self, local: *mut AstLocal) {
6 if self.undef.is_null() && self.locals.contains(&local) {
7 self.undef = local;
8 }
9 }
10}