diff options
author | Araq <rumpf_a@web.de> | 2020-06-12 11:57:10 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2020-06-12 11:57:29 +0200 |
commit | 5a26c3799b77e68c6e9d1c90e0dcb614de25206f (patch) | |
tree | acb4af7f8eb61b892018dddd1baca0e0f10f6e46 | |
parent | e30a08103da14d5b1e02d6c04dc2d5afb5b9368d (diff) | |
download | Nim-5a26c3799b77e68c6e9d1c90e0dcb614de25206f.tar.gz |
reorder.nim: fixed typos
-rw-r--r-- | compiler/reorder.nim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/reorder.nim b/compiler/reorder.nim index 5e380a199..28e12ca2a 100644 --- a/compiler/reorder.nim +++ b/compiler/reorder.nim @@ -290,13 +290,13 @@ proc hasAccQuoted(n: PNode): bool = if hasAccQuoted(a): return true -const extandedProcDefs = procDefs + {nkMacroDef, nkTemplateDef} +const extendedProcDefs = procDefs + {nkMacroDef, nkTemplateDef} proc hasAccQuotedDef(n: PNode): bool = # Checks if the node is a function, macro, template ... # with a quoted name or if it contains one case n.kind - of extandedProcDefs: + of extendedProcDefs: result = n[0].hasAccQuoted of nkStmtList, nkStmtListExpr, nkWhenStmt, nkElifBranch, nkElse, nkStaticStmt: for a in n: @@ -316,7 +316,7 @@ proc hasBody(n: PNode): bool = case n.kind of nkCommand, nkCall: result = true - of extandedProcDefs: + of extendedProcDefs: result = n[^1].kind == nkStmtList of nkStmtList, nkStmtListExpr, nkWhenStmt, nkElifBranch, nkElse, nkStaticStmt: for a in n: |