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
//! `const Location& Lexer::previous_location() const` — Ast/include/Luau/Lexer.h:171.

use crate::records::lexer::Lexer;
use crate::records::location::Location;

impl Lexer {
    pub fn previous_location(&self) -> &Location {
        &self.prev_location
    }
}