Fixed line info
This commit is contained in:
parent
d99c82bc3b
commit
c1dde282d6
1 changed files with 1 additions and 0 deletions
|
|
@ -1181,6 +1181,7 @@ proc wrapIntoStateLoop(ctx: var Ctx, n: PNode): PNode =
|
|||
# body # Might get wrapped in try-except
|
||||
let loopBody = newNodeI(nkStmtList, n.info)
|
||||
result = newTree(nkWhileStmt, newSymNode(getSysSym("true")), loopBody)
|
||||
result.info = n.info
|
||||
|
||||
if not ctx.stateVarSym.isNil:
|
||||
let varSect = newNodeI(nkVarSection, n.info)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue