Skip to main content

luaur_compiler/methods/
compiler_set_debug_line_compiler_alt_b.rs

1use crate::records::compiler::Compiler;
2use luaur_ast::records::location::Location;
3
4impl Compiler {
5    pub fn set_debug_line_location(&mut self, location: &Location) {
6        if self.options.debug_level >= 1 {
7            unsafe {
8                (*self.bytecode).set_debug_line((location.begin.line + 1) as i32);
9            }
10        }
11    }
12}