luaur-ast 0.1.0

Lexer, parser, and AST for Luau (faithful Rust port).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! `Location::Location(const Location& begin, const Location& end)` — Location.h:86.

use crate::records::location::Location;

impl Location {
    /// Spans from one location's start to another's end.
    pub fn between(begin: Location, end: Location) -> Location {
        Location {
            begin: begin.begin,
            end: end.end,
        }
    }
}