Add dbg_loc in to_scode
This commit is contained in:
parent
7e8db136b2
commit
45b0df8aff
@ -288,7 +288,9 @@ term_to_fate(_GlobEnv, _Env, _) ->
|
|||||||
|
|
||||||
to_scode(Env, T) ->
|
to_scode(Env, T) ->
|
||||||
try term_to_fate(Env, T) of
|
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 ->
|
catch throw:not_a_fate_value ->
|
||||||
to_scode1(Env, T)
|
to_scode1(Env, T)
|
||||||
end.
|
end.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user