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
11
12
13
14
use crate::records::ast_name::AstName;
use crate::records::location::Location;
use crate::records::name::Name;

impl Name {
    pub fn new(name: AstName, location: Location) -> Self {
        Self { name, location }
    }
}

#[allow(non_snake_case)]
pub fn parser_name_name(name: AstName, location: Location) -> Name {
    Name::new(name, location)
}