From fa6c0c68f53435185fae57385b602affe6232880 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 20 Nov 2020 22:46:06 +0000 Subject: [PATCH] wip lowering, debugging Signed-off-by: Ian Jackson --- templates/script.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/script.ts b/templates/script.ts index e3db1f89..5d672a77 100644 --- a/templates/script.ts +++ b/templates/script.ts @@ -513,6 +513,8 @@ function lower_pieces(targets_todo: LowerTodoList): }); } + console.log('LOWER PLAN', plan); + for (const pe of plan) { for (const e of pe.content) { if (e.p.held != null && e.p.held != us) { @@ -530,6 +532,8 @@ function lower_pieces(targets_todo: LowerTodoList): if (pe.z_top != null) z_top = pe.z_top; let z_bot = pe.z_bot; let zrange = wasm_bindgen.range(z_bot, z_top, pe.content.length); + console.log('LOQER PLAN PE', + pe, z_bot, z_top, pe.content.length, zrange); for (const e of pe.content) { let z = zrange.next(); api_piece(api, "setz", e.piece, e.p, { z }); -- 2.30.2