1 2 3 4 5 6 7 8 9 10 11 12 13 14
use super::Block; use crate::Expression; /// while statement #[derive(Clone, Debug)] pub struct StmtWhile { pub condition: Expression, pub block: Block, } impl StmtWhile { pub fn new(condition: Expression, block: Block) -> Self { Self { condition, block } } }