feat: 添加控制流标签与循环栈

This commit is contained in:
爱特每羊队
2026-06-06 12:19:18 +08:00
parent 0a801164c1
commit 1b9b65ee78
2 changed files with 53 additions and 0 deletions
+6
View File
@@ -53,6 +53,12 @@ fn hash_statement(stmt: &Statement, h: &mut rustc_hash::FxHasher) {
hash_statement(s, h);
}
}
Statement::BreakStatement(_) => {
7u8.hash(h);
}
Statement::ContinueStatement(_) => {
8u8.hash(h);
}
_ => {
std::mem::discriminant(stmt).hash(h);
}