luaur_analysis/records/syntax_error.rs
1use alloc::string::String;
2
3#[derive(Debug, Clone, PartialEq, Eq, Hash)]
4pub struct SyntaxError {
5 pub(crate) message: String,
6}
7
8impl SyntaxError {
9 pub const fn new(message: String) -> Self {
10 Self { message }
11 }
12}
13
14#[allow(non_snake_case)]
15impl SyntaxError {
16 pub fn message(&self) -> &str {
17 &self.message
18 }
19}