From fccced61741e19c200665f6266d301d61ede1363 Mon Sep 17 00:00:00 2001 From: SimonFJ20 Date: Fri, 13 Dec 2024 11:14:05 +0100 Subject: [PATCH] add maybe not source maps on block entry --- compiler/lowerer.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/compiler/lowerer.ts b/compiler/lowerer.ts index 685558b..f2b8f7c 100644 --- a/compiler/lowerer.ts +++ b/compiler/lowerer.ts @@ -419,11 +419,9 @@ export class Lowerer { this.program.add(Ops.PushPtr, contineLabel); this.program.add(Ops.Jump); this.program.setLabel(breakLabel); - this.addSourceMap({ index: 0, line: 1, col: 1 }); if (expr.vtype!.type === "null") { this.program.add(Ops.PushNull); } - this.breakStack.pop(); } @@ -438,7 +436,6 @@ export class Lowerer { this.lowerStmt(stmt); } if (expr.kind.expr) { - this.addSourceMap(expr.kind.expr.pos); this.lowerExpr(expr.kind.expr); } else { this.program.add(Ops.PushNull);