macros.$ can now turn a nnkSym into a string.

This commit is contained in:
Dominik Picheta
2014-12-28 15:23:05 +00:00
parent f73938218e
commit acc80aaedc

View File

@@ -649,6 +649,8 @@ proc `$`*(node: PNimrodNode): string {.compileTime.} =
result = $node.basename.ident & "*"
of nnkStrLit..nnkTripleStrLit:
result = node.strVal
of nnkSym:
result = $node.symbol
else:
badNodeKind node.kind, "$"