diff options
author | Araq <rumpf_a@web.de> | 2017-02-15 15:35:15 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2017-02-16 11:15:43 +0100 |
commit | 8de6c39f87be3afa0b997a80b9124e42e4741d73 (patch) | |
tree | e64dbd5c172584a9320acdfeb851ba149b7b0670 /compiler | |
parent | 5b5bd3811b5f6e7841128527cb098b23b373e7a6 (diff) | |
download | Nim-8de6c39f87be3afa0b997a80b9124e42e4741d73.tar.gz |
compiler debug proc: also output node flags
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/astalgo.nim | 1 |
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)]) |