luaur_analysis/methods/
lint_multi_line_statement_visit_linter_alt_d.rs1use crate::records::lint_multi_line_statement::LintMultiLineStatement;
2
3use luaur_ast::records::ast_stat_block::AstStatBlock;
4
5impl LintMultiLineStatement {
6 pub fn visit_ast_stat_block(&mut self, node: *mut AstStatBlock) -> bool {
7 let node_body = unsafe { (*node).body };
8 for i in 0..node_body.size {
9 let stmt = unsafe { *node_body.data.add(i) };
10
11 let s = crate::records::statement::Statement {
12 start: unsafe { (*stmt).base.location },
13 lastLine: unsafe { (*stmt).base.location.begin.line },
14 flagged: false,
15 };
16
17 self.stack.push(s);
18
19 unsafe {
20 luaur_ast::visit::ast_stat_visit(stmt, self);
21 }
22
23 self.stack.pop();
24 }
25
26 false
27 }
28}