summaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/parse.c b/parse.c
index 1452dcc..df47ee9 100644
--- a/parse.c
+++ b/parse.c
@@ -256,6 +256,15 @@ static size_t type_to_str_(Type *t, char *buffer, size_t bufsize) {
free(ident_str);
return ret;
}
+ case TYPE_CALL: {
+ size_t written = 0;
+ written += type_to_str_(t->call.calling, buffer + written, bufsize - written);
+ written += str_copy(buffer + written, bufsize - written, "(");
+ /* TODO: show values if resolved */
+ written += str_copy(buffer + written, bufsize - written, "...");
+ written += str_copy(buffer + written, bufsize - written, ")");
+ return written;
+ }
}
assert(0);