Skip to main content

luaur_analysis/records/
declare.rs

1use crate::type_aliases::def_id_control_flow_graph::DefId;
2use luaur_ast::records::ast_stat_local::AstStatLocal;
3
4#[derive(Debug, Clone)]
5pub struct Declare {
6    pub def: DefId,
7    pub source: *mut AstStatLocal,
8}
9
10#[allow(non_snake_case)]
11impl Declare {
12    pub fn declare(def: DefId, source: *mut AstStatLocal) -> Self {
13        Self { def, source }
14    }
15}