parent
8a1055adce
commit
2a31f42d35
2 changed files with 15 additions and 1 deletions
|
|
@ -190,7 +190,7 @@ proc getName(node: NimNode): string {.compileTime.} =
|
|||
case node.kind
|
||||
of nnkPostfix:
|
||||
return node[1].strVal
|
||||
of nnkIdent:
|
||||
of nnkIdent, nnkSym:
|
||||
return node.strVal
|
||||
of nnkEmpty:
|
||||
return "anonymous"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue