fixes #1025; don't know what this breaks

This commit is contained in:
Araq 2014-03-26 20:31:18 +01:00
commit 78cc4de9a1
3 changed files with 3 additions and 6 deletions

View file

@ -1043,7 +1043,7 @@ proc discardSons(father: PNode) =
father.sons = nil father.sons = nil
when defined(useNodeIds): when defined(useNodeIds):
const nodeIdToDebug = 612777 # 612794 const nodeIdToDebug* = 482228 # 612794
#612840 # 612905 # 614635 # 614637 # 614641 #612840 # 612905 # 614635 # 614637 # 614641
# 423408 # 423408
#429107 # 430443 # 441048 # 441090 # 441153 #429107 # 430443 # 441048 # 441090 # 441153

View file

@ -1481,9 +1481,8 @@ proc processQuotations(n: var PNode, op: string,
elif n.kind == nkAccQuoted and op == "``": elif n.kind == nkAccQuoted and op == "``":
returnQuote n[0] returnQuote n[0]
if not n.isAtom: for i in 0 .. <n.safeLen:
for i in 0 .. <n.len: processQuotations(n.sons[i], op, quotes, ids)
processQuotations(n.sons[i], op, quotes, ids)
proc semQuoteAst(c: PContext, n: PNode): PNode = proc semQuoteAst(c: PContext, n: PNode): PNode =
internalAssert n.len == 2 or n.len == 3 internalAssert n.len == 2 or n.len == 3

View file

@ -365,8 +365,6 @@ proc semTemplBody(c: var TemplCtx, n: PNode): PNode =
result.sons[0] = semTemplBody(c, n.sons[0]) result.sons[0] = semTemplBody(c, n.sons[0])
of nkPostfix: of nkPostfix:
result.sons[1] = semTemplBody(c, n.sons[1]) result.sons[1] = semTemplBody(c, n.sons[1])
of nkPragma:
discard
else: else:
# dotExpr is ambiguous: note that we explicitely allow 'x.TemplateParam', # dotExpr is ambiguous: note that we explicitely allow 'x.TemplateParam',
# so we use the generic code for nkDotExpr too # so we use the generic code for nkDotExpr too