Fixed macros.nim not compiling.

Iterator aliases are not possible.
This commit is contained in:
Dominik Picheta
2015-08-03 18:42:02 +01:00
parent 85699b744d
commit b9c1dd0072

View File

@@ -724,7 +724,10 @@ iterator items*(n: NimNode): NimNode {.inline.} =
for i in 0 ..< n.len:
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 {.
immediate, dirty.} =