From b8b2259a62eeffe5de42235c985afc647cedc644 Mon Sep 17 00:00:00 2001 From: Tim Watson Date: Sat, 24 Dec 2011 19:56:56 +0000 Subject: [PATCH] hold on to context when entering subtrees --- src/parse_trans.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/parse_trans.erl b/src/parse_trans.erl index 1d0f2bd..3e07765 100644 --- a/src/parse_trans.erl +++ b/src/parse_trans.erl @@ -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}