fix statement doubling when implicitly returning an export

This commit is contained in:
leaf corcoran 2013-07-02 09:15:00 -07:00
parent 04a1d8207c
commit e57b0c1126
2 changed files with 6 additions and 2 deletions

View File

@ -462,7 +462,10 @@ Statement = Transformer({
})
else
return build.group({
node,
{
"export",
node[2]
},
build.assign({
names = node[2],
values = node[3]

View File

@ -263,8 +263,9 @@ Statement = Transformer {
cls
}
else
-- pull out vawlues and assign them after the export
build.group {
node
{ "export", node[2] }
build.assign {
names: node[2]
values: node[3]