summaryrefslogtreecommitdiff
path: root/parse/dump.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2014-10-07 18:05:47 -0400
committerOri Bernstein <ori@eigenstate.org>2014-10-07 18:05:47 -0400
commita9735e1242911e9c51f8d7b0de75772ef7b5cfb6 (patch)
treec429757d22711a326eb25ebb580c5fee823c8ef7 /parse/dump.c
parentae405996d14eab42a296d8a7dec83eed1e4097c6 (diff)
downloadmc-a9735e1242911e9c51f8d7b0de75772ef7b5cfb6.tar.gz
Print all decl bools.
For better debugging.
Diffstat (limited to 'parse/dump.c')
-rw-r--r--parse/dump.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/parse/dump.c b/parse/dump.c
index 346a7ad..7ef6bf3 100644
--- a/parse/dump.c
+++ b/parse/dump.c
@@ -127,8 +127,18 @@ static void outnode(Node *n, FILE *fd, int depth)
tr = "";
if (n->decl.trait)
tr = namestr(n->decl.trait->name);
- fprintf(fd, "(did = %zd, trait=%s, isconst = %d, isgeneric = %d, isextern = %d, vis = %d)\n",
- n->decl.did, tr, n->decl.isconst, n->decl.isgeneric, n->decl.isextern, n->decl.vis);
+ fprintf(fd, "(did = %zd, trait=%s, vis = %d)\n",
+ n->decl.did, tr, n->decl.vis);
+ findentf(fd, depth + 1, "isglobl=%d\n", n->decl.isglobl);
+ findentf(fd, depth + 1, "isconst=%d\n", n->decl.isconst);
+ findentf(fd, depth + 1, "isgeneric=%d\n", n->decl.isgeneric);
+ findentf(fd, depth + 1, "isextern=%d\n", n->decl.isextern);
+ findentf(fd, depth + 1, "ispkglocal=%d\n", n->decl.ispkglocal);
+ findentf(fd, depth + 1, "ishidden=%d\n", n->decl.ishidden);
+ findentf(fd, depth + 1, "isimport=%d\n", n->decl.isimport);
+ findentf(fd, depth + 1, "isnoret=%d\n", n->decl.isnoret);
+ findentf(fd, depth + 1, "isexportinit=%d\n", n->decl.isexportinit);
+ findentf(fd, depth, ")\n");
outsym(n, fd, depth + 1);
outnode(n->decl.init, fd, depth + 1);
break;