luaur-analysis 0.1.1

Luau type checker and type inference (Rust).
Documentation
use alloc::string::String;

#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub struct SyntaxError {
    pub(crate) message: String,
}

impl SyntaxError {
    pub const fn new(message: String) -> Self {
        Self { message }
    }
}

#[allow(non_snake_case)]
impl SyntaxError {
    pub fn message(&self) -> &str {
        &self.message
    }
}