feat: 支持 RegExpr 与 Symbol 部分方法

This commit is contained in:
爱特每羊队
2026-06-08 10:36:39 +08:00
parent ffdb53dac7
commit 06acc7e34a
19 changed files with 1057 additions and 45 deletions
+6
View File
@@ -243,6 +243,12 @@ fn hash_expression(expr: &Expression, h: &mut rustc_hash::FxHasher) {
}
}
}
Expression::RegExpLiteral(lit) => {
if let Some(raw) = &lit.raw {
raw.to_string().hash(h);
}
std::mem::discriminant(expr).hash(h);
}
_ => {
std::mem::discriminant(expr).hash(h);
}