luaur-ast 0.1.1

Lexer, parser, and AST for Luau (faithful Rust port).
Documentation
1
2
3
4
5
6
7
8
9
10
//! `ParseError::what` (`Ast/src/Parser.cpp:114`).
//! `const char* what() const noexcept { return message.c_str(); }`.

use crate::records::parse_error::ParseError;

impl ParseError {
    pub fn what(&self) -> &str {
        &self.message
    }
}