Top level as statement #103

This commit is contained in:
2026-07-02 06:25:44 +02:00
parent 9021da224e
commit 68cf239f92
7 changed files with 21 additions and 2 deletions
+1
View File
@@ -129,6 +129,7 @@ impl GetMutability for Block {
impl GetMutability for Statement {
fn get_mutability(&self) -> Vec<Identifier> {
match self {
Statement::TopLevel(_) => Vec::new(),
Statement::Block(body) | Statement::UnsafeBlock(body) => body.get_mutability(),
Statement::If {
initial,