diff options
author | Charles Blake <cblake@csail.mit.edu> | 2015-08-03 15:11:30 -0400 |
---|---|---|
committer | Charles Blake <cblake@csail.mit.edu> | 2015-08-03 15:11:30 -0400 |
commit | 8ad56494428de166c892d9a520297fe45faed123 (patch) | |
tree | 50c518da44314ffbf47ac673f9f559cda534fb8c | |
parent | 5497c964d0aaf3fa0a9b3c33b6b6691e3cc5b985 (diff) | |
parent | b9c1dd007279876f2f1d8a4085ffbfb0c9a27bb3 (diff) | |
download | Nim-8ad56494428de166c892d9a520297fe45faed123.tar.gz |
Merge ../Nim into devel
-rw-r--r-- | lib/core/macros.nim | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/core/macros.nim b/lib/core/macros.nim index 5d852cdb1..d371a92cf 100644 --- a/lib/core/macros.nim +++ b/lib/core/macros.nim @@ -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.} = |