This commit is contained in:
JT
2021-09-06 11:16:27 +12:00
parent 036c6a9a52
commit aaee3a8b61
10 changed files with 192 additions and 124 deletions

View File

@@ -1,9 +1,12 @@
use std::ops::{Index, IndexMut};
use crate::Signature;
use super::Statement;
#[derive(Debug, Clone)]
pub struct Block {
pub signature: Box<Signature>,
pub stmts: Vec<Statement>,
}
@@ -39,6 +42,9 @@ impl Default for Block {
impl Block {
pub fn new() -> Self {
Self { stmts: vec![] }
Self {
signature: Box::new(Signature::new("")),
stmts: vec![],
}
}
}