Skip to main content

luaur_ast/records/
ast_stat_for_in.rs

1use crate::records::ast_array::AstArray;
2use crate::records::ast_expr::AstExpr;
3use crate::records::ast_local::AstLocal;
4use crate::records::ast_stat::AstStat;
5use crate::records::ast_stat_block::AstStatBlock;
6use crate::records::location::Location;
7
8#[repr(C)]
9#[derive(Debug)]
10pub struct AstStatForIn {
11    pub base: AstStat,
12    pub vars: AstArray<*mut AstLocal>,
13    pub values: AstArray<*mut AstExpr>,
14    pub body: *mut AstStatBlock,
15    pub has_in: bool,
16    pub in_location: Location,
17    pub has_do: bool,
18    pub do_location: Location,
19}
20
21impl crate::rtti::AstNodeClass for AstStatForIn {
22    const CLASS_INDEX: i32 = crate::rtti::ast_rtti_index("AstStatForIn");
23}
24
25#[allow(non_upper_case_globals)]
26pub const AstStatForIn_ClassIndex: i32 = <AstStatForIn as crate::rtti::AstNodeClass>::CLASS_INDEX;