luaur_analysis/methods/find_expr_or_local_visit_local.rs
1use crate::records::find_expr_or_local::FindExprOrLocal;
2use luaur_ast::records::ast_local::AstLocal;
3
4impl FindExprOrLocal {
5 pub fn visit_ast_local(&mut self, local: *mut AstLocal) -> bool {
6 if self.is_closer_match(unsafe { (*local).location }) {
7 self.result.set_local(local);
8 return true;
9 }
10 false
11 }
12}