luaur_ast/methods/
cst_expr_constant_integer_cst_expr_constant_integer.rs1use crate::records::ast_array::AstArray;
2use crate::records::cst_expr_constant_integer::CstExprConstantInteger;
3use crate::records::cst_node::CstNode;
4use crate::rtti::CstNodeClass;
5
6impl CstExprConstantInteger {
7 pub fn new(value: AstArray<core::ffi::c_char>) -> Self {
8 Self {
9 base: CstNode {
10 class_index: <Self as CstNodeClass>::CLASS_INDEX,
11 },
12 value,
13 }
14 }
15}
16
17#[allow(non_snake_case)]
18pub fn cst_expr_constant_integer_cst_expr_constant_integer(
19 value: AstArray<core::ffi::c_char>,
20) -> CstExprConstantInteger {
21 CstExprConstantInteger::new(value)
22}