aboutsummaryrefslogtreecommitdiff
path: root/src/printer.cpp
diff options
context:
space:
mode:
authorgingerBill <bill+github@gingerbill.org>2016-08-12 17:21:34 +0100
committergingerBill <bill+github@gingerbill.org>2016-08-12 17:21:34 +0100
commitc10b46af9feb76a9839efa292c5288ec4684055e (patch)
tree47ed229ba31638767264a781121a343323ddfb00 /src/printer.cpp
parent84f2bcd885296433a4ccf2188639b377293306e4 (diff)
Compound Literals - struct, array, slice, vector
Diffstat (limited to 'src/printer.cpp')
-rw-r--r--src/printer.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/printer.cpp b/src/printer.cpp
index cba9f0ddc..8dd61e0ca 100644
--- a/src/printer.cpp
+++ b/src/printer.cpp
@@ -146,10 +146,7 @@ void print_ast(AstNode *node, isize indent) {
break;
case AstNode_ProcDecl:
print_indent(indent);
- if (node->ProcDecl.kind == Declaration_Mutable)
- gb_printf("(decl:proc,mutable)\n");
- else if (node->ProcDecl.kind == Declaration_Immutable)
- gb_printf("(decl:proc,immutable)\n");
+ gb_printf("(decl:proc)\n");
print_ast(node->ProcDecl.type, indent+1);
print_ast(node->ProcDecl.body, indent+1);
print_ast(node->ProcDecl.tag_list, indent+1);