Skip to main content

luaur_analysis/methods/
lint_unbalanced_assignment_visit_linter.rs

1use crate::records::lint_unbalanced_assignment::LintUnbalancedAssignment;
2use luaur_ast::records::ast_stat_local::AstStatLocal;
3
4impl LintUnbalancedAssignment {
5    pub fn visit_ast_stat_local(&mut self, node: *mut core::ffi::c_void) -> bool {
6        let node = node as *mut AstStatLocal;
7        unsafe {
8            self.assign(
9                (*node).vars.size,
10                &(*node).values,
11                (*node).base.base.location,
12            );
13        }
14        true
15    }
16}