fix a minor issue preventing the usage of the async pragma in certain generated code

This commit is contained in:
Zahary Karadjov 2018-07-06 04:17:08 +03:00
parent aa15313aa8
commit 4911d25807
1 changed files with 2 additions and 0 deletions

View File

@ -185,6 +185,8 @@ proc processBody(node, retFutureSym: NimNode,
proc getName(node: NimNode): string {.compileTime.} = proc getName(node: NimNode): string {.compileTime.} =
case node.kind case node.kind
of nnkSym:
return $node
of nnkPostfix: of nnkPostfix:
return node[1].strVal return node[1].strVal
of nnkIdent: of nnkIdent: