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::module::Module;
use crate::type_aliases::scope_ptr_type::ScopePtr;
use luaur_ast::records::ast_name::AstName;
use luaur_ast::records::ast_stat::AstStat;
use luaur_common::records::dense_hash_map::DenseHashMap;
use luaur_config::records::lint_options::LintOptions;
use luaur_config::records::lint_warning::LintWarning;

#[derive(Debug, Clone)]
pub struct LintContext {
    pub result: alloc::vec::Vec<LintWarning>,
    pub options: LintOptions,
    pub root: *mut AstStat,
    pub placeholder: AstName,
    pub builtin_globals: DenseHashMap<AstName, crate::records::global_linter::Global>,
    pub scope: ScopePtr,
    pub module: *const Module,
}