alias and unified parameters lists for procedures and structures.

This commit is contained in:
gingerBill
2016-07-25 11:14:25 +01:00
parent 9d8355d361
commit 32ab8fcf99
10 changed files with 217 additions and 103 deletions
+2 -2
View File
@@ -166,10 +166,10 @@ void print_ast(AstNode *node, isize indent) {
print_indent(indent);
gb_printf("(type:proc)(%td -> %td)\n", node->procedure_type.param_count, node->procedure_type.result_count);
print_ast(node->procedure_type.param_list, indent+1);
if (node->procedure_type.results_list) {
if (node->procedure_type.result_list) {
print_indent(indent+1);
gb_printf("->\n");
print_ast(node->procedure_type.results_list, indent+1);
print_ast(node->procedure_type.result_list, indent+1);
}
break;
case AstNode_Field: