Skip to main content

luaur_ast/records/
ast_stat_declare_global.rs

1use crate::records::ast_name::AstName;
2use crate::records::ast_stat::AstStat;
3use crate::records::ast_type::AstType;
4use crate::records::location::Location;
5
6#[repr(C)]
7#[derive(Debug, Clone)]
8pub struct AstStatDeclareGlobal {
9    pub base: AstStat,
10    pub name: AstName,
11    pub name_location: Location,
12    pub type_: *mut AstType,
13}
14
15impl crate::rtti::AstNodeClass for AstStatDeclareGlobal {
16    const CLASS_INDEX: i32 = crate::rtti::ast_rtti_index("AstStatDeclareGlobal");
17}
18
19#[allow(non_snake_case)]
20impl AstStatDeclareGlobal {
21    pub const ClassIndex: i32 = <Self as crate::rtti::AstNodeClass>::CLASS_INDEX;
22}