Fixed gen

This commit is contained in:
2026-06-10 04:48:49 +02:00
parent e3ef968033
commit 15a0f9e491
+2 -8
View File
@@ -62,14 +62,8 @@ pub struct StatementBranch {
impl Statement { impl Statement {
pub fn is_block(&self) -> bool { pub fn is_block(&self) -> bool {
match self { match self {
Self::Block(_) Self::VarDecl(_) | Self::Return(_) | Self::Break | Self::Continue => false,
| Self::Match(_, _) _ => true,
| Self::While(_)
| Self::For { .. }
| Self::Loop(..)
| Self::CStyleFor { .. }
| Self::If { .. } => true,
_ => false,
} }
} }
} }