From 8de6c39f87be3afa0b997a80b9124e42e4741d73 Mon Sep 17 00:00:00 2001 From: Araq Date: Wed, 15 Feb 2017 15:35:15 +0100 Subject: compiler debug proc: also output node flags --- compiler/astalgo.nim | 1 + 1 file changed, 1 insertion(+) (limited to 'compiler') 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)]) -- cgit 1.4.1-2-gfad0