feat: 实现 SequenceExpression + 带标签 break/continue + EmptyStatement

This commit is contained in:
2026-06-23 23:00:20 +08:00
parent 5de79b4253
commit 3ea2353194
11 changed files with 284 additions and 9 deletions
@@ -34,6 +34,12 @@ pub(super) fn hash_expression(expr: &Expression, h: &mut rustc_hash::FxHasher, i
pin.left.name.as_str().hash(h);
hash_expression(&pin.right, h, include_binding_names);
}
Expression::SequenceExpression(seq) => {
(seq.expressions.len() as u32).hash(h);
for e in &seq.expressions {
hash_expression(e, h, include_binding_names);
}
}
Expression::Identifier(ident) => {
if include_binding_names {
ident.name.as_str().hash(h);