Skip to main content

luaur_ast/records/
ast_stat_if.rs

1use crate::records::ast_expr::AstExpr;
2use crate::records::ast_stat::AstStat;
3use crate::records::ast_stat_block::AstStatBlock;
4use crate::records::location::Location;
5
6#[repr(C)]
7#[derive(Debug)]
8pub struct AstStatIf {
9    pub base: AstStat,
10    pub condition: *mut AstExpr,
11    pub thenbody: *mut AstStatBlock,
12    pub elsebody: *mut AstStat,
13    pub then_location: Option<Location>,
14    pub else_location: Option<Location>,
15}
16
17impl crate::rtti::AstNodeClass for AstStatIf {
18    const CLASS_INDEX: i32 = crate::rtti::ast_rtti_index("AstStatIf");
19}