Remove dbg prints

This commit is contained in:
Sofia 2026-03-20 22:43:58 +02:00
parent 6937c76a86
commit 21300b71cf
3 changed files with 0 additions and 9 deletions

View File

@ -889,7 +889,6 @@ impl Parse for TableConstructorEntry {
(stream.peek(), stream.peek2())
{
let key = stream.parse::<Node<String>>()?;
dbg!(&key);
let key = key.with(Expression::Literal(Literal::String(key.kind.clone())));
if let Some(Token::Symbol('=')) = stream.peek() {
stream.next();

View File

@ -523,8 +523,6 @@ impl Statement {
expr_regs.extend(regs);
}
dbg!(&expr_regs);
let mut inner_scope = scope.clone();
let iterator_reg = *expr_regs.get(0).unwrap();
@ -987,15 +985,11 @@ impl Expression {
scope.highest_upvalue + scope.register_counter.0 as i32;
inner_scope.upvalues = scope.upvalues.clone();
dbg!(&scope.highest_upvalue, &scope.register_counter.0);
for (name, reg) in &scope.locals {
let upvalue_reg = *reg + (scope.highest_upvalue + 1) as u16;
inner_scope.upvalues.insert(name.clone(), upvalue_reg);
}
dbg!(&inner_scope.upvalues);
let instructions = block.compile(state, &mut inner_scope);
state.prototypes.push(Prototype {
instructions: process_pre_instrs(instructions),

View File

@ -110,8 +110,6 @@ pub fn compile(
let chunk = stream.parse::<Block>()?;
stream.expect(Token::Eof)?;
dbg!(&chunk);
let constants = chunk
.find_constants(
&mut Default::default(),