Skip to main content

luaur_ast/methods/
cst_node_cst_node.rs

1use crate::records::cst_node::CstNode;
2
3impl CstNode {
4    pub const fn new(class_index: i32) -> Self {
5        Self { class_index }
6    }
7}
8
9#[allow(non_snake_case)]
10pub fn cst_node_cst_node(class_index: i32) -> CstNode {
11    CstNode::new(class_index)
12}