From bbe5dede07dde606455ebf42d0f9c5110f525a65 Mon Sep 17 00:00:00 2001
From: Dunqing <29533304+Dunqing@users.noreply.github.com>
Date: Thu, 11 Jul 2024 08:45:34 +0000
Subject: [PATCH] refactor(semantic): set `current_scope_id` to `scope_id` in
`enter_scope` (#4193)
close: #4170
---
crates/oxc_semantic/src/builder.rs | 124 +-------------------------
tasks/coverage/parser_typescript.snap | 32 +++++++
2 files changed, 34 insertions(+), 122 deletions(-)
diff --git a/crates/oxc_semantic/src/builder.rs b/crates/oxc_semantic/src/builder.rs
index 0302ebb2251d5..5fcb1ef40e0b3 100644
--- a/crates/oxc_semantic/src/builder.rs
+++ b/crates/oxc_semantic/src/builder.rs
@@ -421,7 +421,7 @@ impl<'a> SemanticBuilder<'a> {
}
impl<'a> Visit<'a> for SemanticBuilder<'a> {
- fn enter_scope(&mut self, flags: ScopeFlags, _: &Cell