Skip to main content

luaur_ast/methods/
parse_error_parse_error.rs

1use crate::records::location::Location;
2use crate::records::parse_error::ParseError;
3
4impl ParseError {
5    pub fn new(location: Location, message: String) -> Self {
6        Self { location, message }
7    }
8}
9
10#[allow(non_snake_case)]
11pub fn parse_error_parse_error(location: Location, message: String) -> ParseError {
12    ParseError::new(location, message)
13}