mirror of
https://github.com/status-im/nim-stew.git
synced 2025-02-17 22:47:28 +00:00
add skipPragma
This commit is contained in:
parent
5039a63afa
commit
b18e8877a7
@ -114,6 +114,10 @@ iterator recordFields*(typeImpl: NimNode): FieldDescription =
|
|||||||
|
|
||||||
if traversalStack.len == 0: break
|
if traversalStack.len == 0: break
|
||||||
|
|
||||||
|
proc skipPragma*(n: NimNode): NimNode =
|
||||||
|
if n.kind == nnkPragmaExpr: n[0]
|
||||||
|
else: n
|
||||||
|
|
||||||
# FIXED NewLit
|
# FIXED NewLit
|
||||||
|
|
||||||
proc newLitFixed*(c: char): NimNode {.compileTime.} =
|
proc newLitFixed*(c: char): NimNode {.compileTime.} =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user