fix a minor issue preventing the usage of the async pragma in certain generated code
This commit is contained in:
parent
aa15313aa8
commit
4911d25807
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue