mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-01 19:02:18 +00:00
Update macros.nim
This commit is contained in:
@@ -709,7 +709,7 @@ proc ident*(name: string): NimNode {.compileTime,inline.} = newIdentNode(name)
|
||||
## Create a new ident node from a string
|
||||
|
||||
iterator items*(n: NimNode): NimNode {.inline.} =
|
||||
if n.kind in {nnkType, nnkMetaNode .. nnkReturnToken}:
|
||||
if n.kind > nnkNilLit:
|
||||
for i in 0 .. high(n):
|
||||
yield n[i]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user