From 15a0f9e491e0ef6e9d26f89640b2c8ec4c67200c Mon Sep 17 00:00:00 2001 From: Klesti Selimaj Date: Wed, 10 Jun 2026 04:48:49 +0200 Subject: [PATCH] Fixed gen --- crates/parser/src/ast/statement.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/crates/parser/src/ast/statement.rs b/crates/parser/src/ast/statement.rs index 4eb581f..f152c44 100644 --- a/crates/parser/src/ast/statement.rs +++ b/crates/parser/src/ast/statement.rs @@ -62,14 +62,8 @@ pub struct StatementBranch { impl Statement { pub fn is_block(&self) -> bool { match self { - Self::Block(_) - | Self::Match(_, _) - | Self::While(_) - | Self::For { .. } - | Self::Loop(..) - | Self::CStyleFor { .. } - | Self::If { .. } => true, - _ => false, + Self::VarDecl(_) | Self::Return(_) | Self::Break | Self::Continue => false, + _ => true, } } }