add skipPragma

This commit is contained in:
Zahary Karadjov 2019-01-23 13:47:13 +02:00
parent 5039a63afa
commit b18e8877a7
1 changed files with 4 additions and 0 deletions

View File

@ -114,6 +114,10 @@ iterator recordFields*(typeImpl: NimNode): FieldDescription =
if traversalStack.len == 0: break
proc skipPragma*(n: NimNode): NimNode =
if n.kind == nnkPragmaExpr: n[0]
else: n
# FIXED NewLit
proc newLitFixed*(c: char): NimNode {.compileTime.} =