luaur-analysis 0.1.1

Luau type checker and type inference (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::type_aliases::def_id_control_flow_graph::DefId;
use luaur_ast::records::ast_stat_local::AstStatLocal;

#[derive(Debug, Clone)]
pub struct Declare {
    pub def: DefId,
    pub source: *mut AstStatLocal,
}

#[allow(non_snake_case)]
impl Declare {
    pub fn declare(def: DefId, source: *mut AstStatLocal) -> Self {
        Self { def, source }
    }
}