Fixed statement bodies

This commit is contained in:
2026-05-24 14:43:09 +02:00
parent 63cc20107c
commit f21cd5a927
6 changed files with 20 additions and 29 deletions
+2 -2
View File
@@ -84,9 +84,9 @@ pub enum Generic {
}
impl Expression {
pub fn is_soft_return(&self) -> bool {
pub fn is_block(&self) -> bool {
if let Expression::Statement(stmt) = self {
stmt.is_soft_return()
stmt.is_block()
} else {
false
}