diff options
author | Zahary Karadjov <zahary@gmail.com> | 2017-06-19 20:07:26 +0300 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-06-20 11:29:42 +0200 |
commit | 8f4b3743277119a0ec231738fdd3931476c186d9 (patch) | |
tree | 7538d3bb8d2a55112e1196df5e2170f99ba08c47 /compiler/astalgo.nim | |
parent | b199c5af4ef76c44bef0ea50bbe163410bd8fdaf (diff) | |
download | Nim-8f4b3743277119a0ec231738fdd3931476c186d9.tar.gz |
Fix #4020; Better handling of templates within concepts
Diffstat (limited to 'compiler/astalgo.nim')
-rw-r--r-- | compiler/astalgo.nim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/astalgo.nim b/compiler/astalgo.nim index ebe080468..e32fff181 100644 --- a/compiler/astalgo.nim +++ b/compiler/astalgo.nim @@ -407,6 +407,8 @@ proc debugTree(n: PNode, indent: int, maxRecDepth: int; var istr = rspaces(indent + 2) result = "{$N$1\"kind\": $2" % [istr, makeYamlString($n.kind)] + when defined(useNodeIds): + addf(result, ",$N$1\"id\": $2", [istr, rope(n.id)]) addf(result, ",$N$1\"info\": $2", [istr, lineInfoToStr(n.info)]) if maxRecDepth != 0: addf(result, ",$N$1\"flags\": $2", [istr, rope($n.flags)]) |