Skip to main content

luaur_ast/records/
ast_expr_if_else.rs

1use crate::records::ast_expr::AstExpr;
2
3#[repr(C)]
4#[derive(Debug)]
5pub struct AstExprIfElse {
6    pub base: AstExpr,
7    pub condition: *mut AstExpr,
8    pub has_then: bool,
9    pub true_expr: *mut AstExpr,
10    pub has_else: bool,
11    pub false_expr: *mut AstExpr,
12}
13
14impl crate::rtti::AstNodeClass for AstExprIfElse {
15    const CLASS_INDEX: i32 = crate::rtti::ast_rtti_index("AstExprIfElse");
16}