reorder.nim: fixes the indentation
This commit is contained in:
parent
ea761419ad
commit
336f1e63d0
1 changed files with 39 additions and 40 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue