Skip to main content

luaur_ast/records/
ast_expr_call.rs

1use crate::records::ast_array::AstArray;
2use crate::records::ast_expr::AstExpr;
3use crate::records::ast_type_or_pack::AstTypeOrPack;
4use crate::records::location::Location;
5
6#[repr(C)]
7#[derive(Debug)]
8pub struct AstExprCall {
9    pub base: AstExpr,
10    pub func: *mut AstExpr,
11    pub type_arguments: AstArray<AstTypeOrPack>,
12    pub args: AstArray<*mut AstExpr>,
13    pub self_: bool,
14    pub arg_location: Location,
15}
16
17impl crate::rtti::AstNodeClass for AstExprCall {
18    const CLASS_INDEX: i32 = crate::rtti::ast_rtti_index("AstExprCall");
19}
20
21#[allow(non_snake_case)]
22impl AstExprCall {
23    pub const fn LUAU_RTTI(&self) {
24        crate::macros::luau_rtti::LUAU_RTTI::<Self>()
25    }
26}