Skip to main content

luaur_analysis/methods/
lint_unreachable_code_process.rs

1use crate::records::lint_context::LintContext;
2use crate::records::lint_unreachable_code::LintUnreachableCode;
3
4impl LintUnreachableCode {
5    pub fn process(context: &mut LintContext) {
6        let mut pass = LintUnreachableCode {
7            context: context as *mut LintContext,
8        };
9        pass.analyze(context.root);
10        unsafe {
11            luaur_ast::visit::ast_stat_visit(context.root, &mut pass);
12        }
13    }
14}