From 45b0df8affe45ae68d8065a6d7a4780bb4f24c9a Mon Sep 17 00:00:00 2001 From: Gaith Hallak Date: Tue, 14 Mar 2023 11:10:49 +0300 Subject: [PATCH] Add dbg_loc in to_scode --- src/aeso_fcode_to_fate.erl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/aeso_fcode_to_fate.erl b/src/aeso_fcode_to_fate.erl index 4b3255a..a502c33 100644 --- a/src/aeso_fcode_to_fate.erl +++ b/src/aeso_fcode_to_fate.erl @@ -288,7 +288,9 @@ term_to_fate(_GlobEnv, _Env, _) -> to_scode(Env, T) -> try term_to_fate(Env, T) of - V -> [push(?i(V))] + V -> + FAnn = element(2, T), + [dbg_loc(Env, FAnn), push(?i(V))] catch throw:not_a_fate_value -> to_scode1(Env, T) end.