Better solution: deprecation
This commit is contained in:
parent
939c0a6bb8
commit
7500eed0cf
1 changed files with 2 additions and 4 deletions
|
|
@ -708,14 +708,12 @@ proc `$`*(node: NimNode): string {.compileTime.} =
|
|||
proc ident*(name: string): NimNode {.compileTime,inline.} = newIdentNode(name)
|
||||
## Create a new ident node from a string
|
||||
|
||||
iterator children*(n: NimNode): NimNode {.inline.}=
|
||||
for i in 0 .. high(n):
|
||||
yield n[i]
|
||||
|
||||
iterator items*(n: NimNode): NimNode {.inline.}=
|
||||
for i in 0 .. high(n):
|
||||
yield n[i]
|
||||
|
||||
{.deprecated: [children: items].}
|
||||
|
||||
template findChild*(n: NimNode; cond: expr): NimNode {.
|
||||
immediate, dirty.} =
|
||||
## Find the first child node matching condition (or nil).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue