Generating body

This commit is contained in:
2026-06-06 23:50:40 +02:00
parent 7229cfd9f5
commit 330beaea75
5 changed files with 82 additions and 10 deletions
+6 -4
View File
@@ -3,10 +3,12 @@ use serde::Serialize;
use super::*;
#[derive(Debug, Clone, Serialize, Default)]
pub struct Block(
pub Vec<Spanned<Expression>>,
pub Option<Spanned<Expression>>,
);
pub struct Block {
pub is_unsafe: bool,
pub statements: Vec<Spanned<Expression>>,
pub soft_return: Option<Spanned<Expression>>,
}
#[derive(Debug, Clone, Serialize)]
pub enum StatementBody {