Fixed gen
This commit is contained in:
@@ -62,14 +62,8 @@ pub struct StatementBranch {
|
|||||||
impl Statement {
|
impl Statement {
|
||||||
pub fn is_block(&self) -> bool {
|
pub fn is_block(&self) -> bool {
|
||||||
match self {
|
match self {
|
||||||
Self::Block(_)
|
Self::VarDecl(_) | Self::Return(_) | Self::Break | Self::Continue => false,
|
||||||
| Self::Match(_, _)
|
_ => true,
|
||||||
| Self::While(_)
|
|
||||||
| Self::For { .. }
|
|
||||||
| Self::Loop(..)
|
|
||||||
| Self::CStyleFor { .. }
|
|
||||||
| Self::If { .. } => true,
|
|
||||||
_ => false,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user