Skip to content

Commit

Permalink
hold on to context when entering subtrees
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperthunk committed Dec 24, 2011
1 parent e631c85 commit b8b2259
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/parse_trans.erl
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,8 @@ do_transform(F, Acc, Forms, Context) ->
this_form_rec(F, Form, Context, Acc0),
if Recurse ->
{NewForm, NewAcc} =
enter_subtrees(Form1, F, Context, Acc1, Rec),
enter_subtrees(Form1, F,
update_context(Form1, Context), Acc1, Rec),
{Before1, NewForm, After1, NewAcc};
true ->
{Before1, Form1, After1, Acc1}
Expand Down

0 comments on commit b8b2259

Please sign in to comment.