summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2017-02-15 15:35:15 +0100
committerAraq <rumpf_a@web.de>2017-02-16 11:15:43 +0100
commit8de6c39f87be3afa0b997a80b9124e42e4741d73 (patch)
treee64dbd5c172584a9320acdfeb851ba149b7b0670 /compiler
parent5b5bd3811b5f6e7841128527cb098b23b373e7a6 (diff)
downloadNim-8de6c39f87be3afa0b997a80b9124e42e4741d73.tar.gz
compiler debug proc: also output node flags
Diffstat (limited to 'compiler')
-rw-r--r--compiler/astalgo.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/astalgo.nim b/compiler/astalgo.nim
index affbdffd9..226d5ee42 100644
--- a/compiler/astalgo.nim
+++ b/compiler/astalgo.nim
@@ -388,6 +388,7 @@ proc debugTree(n: PNode, indent: int, maxRecDepth: int;
              [istr, makeYamlString($n.kind)]
     addf(result, ",$N$1\"info\": $2", [istr, lineInfoToStr(n.info)])
     if maxRecDepth != 0:
+      addf(result, ",$N$1\"flags\": $2", [istr, rope($n.flags)])
       case n.kind
       of nkCharLit..nkUInt64Lit:
         addf(result, ",$N$1\"intVal\": $2", [istr, rope(n.intVal)])