Added documentation to macros.items.
This commit is contained in:
parent
04dc46b1aa
commit
303bc45745
1 changed files with 1 additions and 0 deletions
|
|
@ -720,6 +720,7 @@ proc ident*(name: string): NimNode {.compileTime,inline.} = newIdentNode(name)
|
||||||
## Create a new ident node from a string
|
## Create a new ident node from a string
|
||||||
|
|
||||||
iterator items*(n: NimNode): NimNode {.inline.} =
|
iterator items*(n: NimNode): NimNode {.inline.} =
|
||||||
|
## Iterates over the children of the NimNode ``n``.
|
||||||
for i in 0 ..< n.len:
|
for i in 0 ..< n.len:
|
||||||
yield n[i]
|
yield n[i]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue