make more tests green

This commit is contained in:
Araq 2017-02-16 01:43:12 +01:00
commit aebe9d7d13
3 changed files with 11 additions and 6 deletions

View file

@ -869,10 +869,12 @@ proc transform(c: PTransf, n: PNode): PTransNode =
else:
result = transformSons(c, n)
of nkIdentDefs, nkConstDef:
result = n.PTransNode
#transformSons(c, n)
let L = n.len-1
result[L] = transform(c, n.sons[L])
when true:
result = transformSons(c, n)
else:
result = n.PTransNode
let L = n.len-1
result[L] = transform(c, n.sons[L])
# XXX comment handling really sucks:
if importantComments():
PNode(result).comment = n.comment