Soft returning refactor

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