luaur-ast 0.1.3

Lexer, parser, and AST for Luau (faithful Rust port).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::records::ast_expr::AstExpr;
use crate::records::ast_stat::AstStat;
use crate::records::ast_stat_block::AstStatBlock;
use crate::records::location::Location;

#[repr(C)]
#[derive(Debug)]
pub struct AstStatWhile {
    pub base: AstStat,
    pub condition: *mut AstExpr,
    pub body: *mut AstStatBlock,
    pub has_do: bool,
    pub do_location: Location,
}

impl crate::rtti::AstNodeClass for AstStatWhile {
    const CLASS_INDEX: i32 = crate::rtti::ast_rtti_index("AstStatWhile");
}