Skip to main content

luaur_compiler/methods/
compiler_undefined_local_visitor_visit_compiler.rs

1use crate::records::undefined_local_visitor::UndefinedLocalVisitor;
2use luaur_ast::records::ast_expr_local::AstExprLocal;
3
4impl UndefinedLocalVisitor {
5    pub fn visit_ast_expr_local(&mut self, node: *mut AstExprLocal) -> bool {
6        unsafe {
7            if !(*node).upvalue {
8                self.check((*node).local);
9            }
10        }
11        false
12    }
13}