luaur-analysis 0.1.3

Luau type checker and type inference (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::records::lint_context::LintContext;
use crate::records::lint_table_operations::LintTableOperations;

impl LintTableOperations {
    pub fn process(context: &mut LintContext) {
        if context.module.is_null() {
            return;
        }

        let mut pass = LintTableOperations {
            context: context as *mut LintContext,
        };

        unsafe {
            luaur_ast::visit::ast_stat_visit(context.root, &mut pass);
        }
    }
}