introduce nkTupleConstr AST node for unary tuple construction; breaking change

This commit is contained in:
Andreas Rumpf 2018-04-13 17:06:46 +02:00
commit 47335aab41
26 changed files with 91 additions and 56 deletions

View file

@ -186,7 +186,7 @@ proc mapTypeToAstX(t: PType; info: TLineInfo;
if inst:
# only named tuples have a node, unnamed tuples don't
if t.n.isNil:
result = newNodeX(nkPar)
result = newNodeX(nkTupleConstr)
for subType in t.sons:
result.add mapTypeToAst(subType, info)
else: