Skip to content

Commit 1a30591

Browse files
committed
refs #17292 fix repr with (discard)
1 parent 231dcbe commit 1a30591

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

compiler/renderer.nim

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,6 @@ proc infixArgument(g: var TSrcGen, n: PNode, i: int) =
977977
put(g, tkParRi, ")")
978978

979979
proc gsub(g: var TSrcGen, n: PNode, c: TContext) =
980-
dbg n.kind, n
981980
if isNil(n): return
982981
var
983982
a: TContext
@@ -1172,7 +1171,6 @@ proc gsub(g: var TSrcGen, n: PNode, c: TContext) =
11721171
else:
11731172
gsub(g, n, 0)
11741173
of nkPar, nkClosure:
1175-
dbg "D20210322T025150"
11761174
put(g, tkParLe, "(")
11771175
gcomma(g, n, c)
11781176
put(g, tkParRi, ")")
@@ -1411,14 +1409,10 @@ proc gsub(g: var TSrcGen, n: PNode, c: TContext) =
14111409
putWithSpace(g, tkEquals, "=")
14121410
gsub(g, n, 1)
14131411
of nkStmtList, nkStmtListExpr, nkStmtListType:
1414-
dbg n.kind, n.len
1415-
for i in 0..<n.len:
1416-
dbg n[i].kind
14171412
if n.len == 1 and n[0].kind == nkDiscardStmt:
14181413
put(g, tkParLe, "(")
14191414
gsub(g, n[0])
14201415
put(g, tkParRi, ")")
1421-
# gstmts(g, n, emptyContext)
14221416
else:
14231417
gstmts(g, n, emptyContext)
14241418
of nkIfStmt:

0 commit comments

Comments
 (0)