luaur_ast/methods/ast_stat_ast_stat.rs
1use crate::records::ast_node::AstNode;
2use crate::records::ast_stat::AstStat;
3use crate::records::location::Location;
4
5impl AstStat {
6 pub fn new(class_index: i32, location: Location) -> Self {
7 Self {
8 base: AstNode {
9 class_index,
10 location,
11 },
12 has_semicolon: false,
13 }
14 }
15}
16
17#[allow(non_snake_case)]
18pub fn ast_stat_ast_stat(class_index: i32, location: Location) -> AstStat {
19 AstStat::new(class_index, location)
20}