From 17cc0542def402f5b0788ff9e8fe0538f81d5ddf Mon Sep 17 00:00:00 2001 From: Zuhaitz Méndez Fernández de Aránguiz Date: Sun, 25 Jan 2026 10:33:34 +0000 Subject: Fix for #114 --- src/ast/ast.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/ast/ast.h') diff --git a/src/ast/ast.h b/src/ast/ast.h index 5bcc4d5..21dbdbf 100644 --- a/src/ast/ast.h +++ b/src/ast/ast.h @@ -315,9 +315,11 @@ struct ASTNode struct { char *pattern; - char *binding_name; + char **binding_names; // Multiple bindings + int binding_count; // Count + int *binding_refs; // Ref flags per binding int is_destructuring; - int is_ref; // New: Supports 'ref' binding (Some(ref x)) + int is_ref; // Legacy single ref, I will remove it next. ASTNode *guard; ASTNode *body; int is_default; -- cgit v1.2.3