luaur-compiler 0.1.2

Luau source-to-bytecode compiler (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::records::compiler::Compiler;
use luaur_ast::records::location::Location;

impl Compiler {
    pub fn set_debug_line_location(&mut self, location: &Location) {
        if self.options.debug_level >= 1 {
            unsafe {
                (*self.bytecode).set_debug_line((location.begin.line + 1) as i32);
            }
        }
    }
}