reorder.nim: fixed typos
This commit is contained in:
parent
e30a08103d
commit
5a26c3799b
1 changed files with 3 additions and 3 deletions
|
|
@ -290,13 +290,13 @@ proc hasAccQuoted(n: PNode): bool =
|
||||||
if hasAccQuoted(a):
|
if hasAccQuoted(a):
|
||||||
return true
|
return true
|
||||||
|
|
||||||
const extandedProcDefs = procDefs + {nkMacroDef, nkTemplateDef}
|
const extendedProcDefs = procDefs + {nkMacroDef, nkTemplateDef}
|
||||||
|
|
||||||
proc hasAccQuotedDef(n: PNode): bool =
|
proc hasAccQuotedDef(n: PNode): bool =
|
||||||
# Checks if the node is a function, macro, template ...
|
# Checks if the node is a function, macro, template ...
|
||||||
# with a quoted name or if it contains one
|
# with a quoted name or if it contains one
|
||||||
case n.kind
|
case n.kind
|
||||||
of extandedProcDefs:
|
of extendedProcDefs:
|
||||||
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:
|
||||||
|
|
@ -316,7 +316,7 @@ proc hasBody(n: PNode): bool =
|
||||||
case n.kind
|
case n.kind
|
||||||
of nkCommand, nkCall:
|
of nkCommand, nkCall:
|
||||||
result = true
|
result = true
|
||||||
of extandedProcDefs:
|
of extendedProcDefs:
|
||||||
result = n[^1].kind == nkStmtList
|
result = n[^1].kind == nkStmtList
|
||||||
of nkStmtList, nkStmtListExpr, nkWhenStmt, nkElifBranch, nkElse, nkStaticStmt:
|
of nkStmtList, nkStmtListExpr, nkWhenStmt, nkElifBranch, nkElse, nkStaticStmt:
|
||||||
for a in n:
|
for a in n:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue