reorder.nim: fixes the indentation

This commit is contained in:
Araq 2020-06-06 20:08:25 +02:00
commit 336f1e63d0

View file

@ -100,8 +100,7 @@ proc computeDeps(cache: IdentCache; n: PNode, declares, uses: var IntSet; topLev
for i in 0..<n.len: computeDeps(cache, n[i], declares, uses, topLevel)
of nkPragma:
let a = n[0]
if a.kind == nkExprColonExpr and a[0].kind == nkIdent and
a[0].ident.s == "pragma":
if a.kind == nkExprColonExpr and a[0].kind == nkIdent and a[0].ident.s == "pragma":
# user defined pragma
decl(a[1])
else:
@ -301,7 +300,7 @@ proc hasAccQuotedDef(n: PNode): bool =
result = n[0].hasAccQuoted
of nkStmtList, nkStmtListExpr, nkWhenStmt, nkElifBranch, nkElse, nkStaticStmt:
for a in n:
if a.hasAccQuotedDef:
if hasAccQuotedDef(a):
return true
else:
result = false