[refactoring] closureiters.nim: style change
This commit is contained in:
parent
50afafdb38
commit
c83914b435
1 changed files with 129 additions and 131 deletions
|
|
@ -854,9 +854,8 @@ proc transformReturnsInTry(ctx: var Ctx, n: PNode): PNode =
|
|||
|
||||
proc transformClosureIteratorBody(ctx: var Ctx, n: PNode, gotoOut: PNode): PNode =
|
||||
result = n
|
||||
case n.kind:
|
||||
of nkSkip:
|
||||
discard
|
||||
case n.kind
|
||||
of nkSkip: discard
|
||||
|
||||
of nkStmtList, nkStmtListExpr:
|
||||
result = addGotoOut(result, gotoOut)
|
||||
|
|
@ -1149,7 +1148,6 @@ proc newCatchBody(ctx: var Ctx, info: TLineInfo): PNode {.inline.} =
|
|||
|
||||
# :state = exceptionTable[:state]
|
||||
block:
|
||||
|
||||
# exceptionTable[:state]
|
||||
let getNextState = newTree(nkBracketExpr,
|
||||
ctx.createExceptionTable(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue