luaur-ast 0.1.0

Lexer, parser, and AST for Luau (faithful Rust port).
Documentation
1
2
3
4
5
6
7
use crate::records::location::Location;

impl Location {
    pub fn encloses(&self, l: &Location) -> bool {
        self.begin <= l.begin && self.end >= l.end
    }
}