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)
|
for i in 0..<n.len: computeDeps(cache, n[i], declares, uses, topLevel)
|
||||||
of nkPragma:
|
of nkPragma:
|
||||||
let a = n[0]
|
let a = n[0]
|
||||||
if a.kind == nkExprColonExpr and a[0].kind == nkIdent and
|
if a.kind == nkExprColonExpr and a[0].kind == nkIdent and a[0].ident.s == "pragma":
|
||||||
a[0].ident.s == "pragma":
|
|
||||||
# user defined pragma
|
# user defined pragma
|
||||||
decl(a[1])
|
decl(a[1])
|
||||||
else:
|
else:
|
||||||
|
|
@ -301,7 +300,7 @@ proc hasAccQuotedDef(n: PNode): bool =
|
||||||
result = n[0].hasAccQuoted
|
result = n[0].hasAccQuoted
|
||||||
of nkStmtList, nkStmtListExpr, nkWhenStmt, nkElifBranch, nkElse, nkStaticStmt:
|
of nkStmtList, nkStmtListExpr, nkWhenStmt, nkElifBranch, nkElse, nkStaticStmt:
|
||||||
for a in n:
|
for a in n:
|
||||||
if a.hasAccQuotedDef:
|
if hasAccQuotedDef(a):
|
||||||
return true
|
return true
|
||||||
else:
|
else:
|
||||||
result = false
|
result = false
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue