Fixed macros.nim not compiling.
Iterator aliases are not possible.
This commit is contained in:
parent
85699b744d
commit
b9c1dd0072
1 changed files with 4 additions and 1 deletions
|
|
@ -724,7 +724,10 @@ iterator items*(n: NimNode): NimNode {.inline.} =
|
||||||
for i in 0 ..< n.len:
|
for i in 0 ..< n.len:
|
||||||
yield n[i]
|
yield n[i]
|
||||||
|
|
||||||
iterator children*(n: NimNode): NimNode {.inline.} = items
|
iterator children*(n: NimNode): NimNode {.inline.} =
|
||||||
|
## Iterates over the children of the NimNode ``n``.
|
||||||
|
for i in 0 ..< n.len:
|
||||||
|
yield n[i]
|
||||||
|
|
||||||
template findChild*(n: NimNode; cond: expr): NimNode {.
|
template findChild*(n: NimNode; cond: expr): NimNode {.
|
||||||
immediate, dirty.} =
|
immediate, dirty.} =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue