Skip to main content

luaur_ast/records/
binding.rs

1use crate::records::ast_type::AstType;
2use crate::records::name::Name;
3use crate::records::position::Position;
4
5#[derive(Debug, Clone)]
6pub struct Binding {
7    pub name: Name,
8    pub annotation: *mut AstType,
9    pub colon_position: Position,
10    pub is_const: bool,
11}
12
13impl Default for Binding {
14    fn default() -> Self {
15        Self {
16            name: unsafe { core::mem::zeroed() },
17            annotation: core::ptr::null_mut(),
18            colon_position: Position { line: 0, column: 0 },
19            is_const: false,
20        }
21    }
22}