'nimrod pretty' usable

This commit is contained in:
Araq 2013-07-31 20:35:04 +02:00
commit 731c6f9083
5 changed files with 55 additions and 63 deletions

View file

@ -431,7 +431,7 @@ proc semConst(c: PContext, n: PNode): PNode =
var b = newNodeI(nkConstDef, a.info)
if importantComments(): b.comment = a.comment
addSon(b, newSymNode(v))
addSon(b, ast.emptyNode) # no type description
addSon(b, a.sons[1])
addSon(b, copyTree(def))
addSon(result, b)