From ebd176b8e7eb14060375a28d6ac50500d9d2c808 Mon Sep 17 00:00:00 2001 From: Mel Date: Sun, 6 Jul 2025 03:32:07 +0200 Subject: Parse variadic parameters in function definitions Signed-off-by: Mel --- boot/tree.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'boot/tree.c') diff --git a/boot/tree.c b/boot/tree.c index 3c808f8..9ea9e6f 100644 --- a/boot/tree.c +++ b/boot/tree.c @@ -530,6 +530,9 @@ struct Type_Node // it is assigned to, e.g. `x int`, `string y`, etc. // this is the name of that binding, for ease of listing. struct String value_name; + // true if the type is used as a variadic parameter. + // e.g. `fun (format string, ...args string)`. + bool variadic; // if type is within a group of multiple types, // points to the next type within the group. -- cgit 1.4.1