From 6e453db3f7cf01173e3385c646eb2e1ffbbc5a12 Mon Sep 17 00:00:00 2001
From: Dunqing <29533304+Dunqing@users.noreply.github.com>
Date: Mon, 5 Aug 2024 22:27:06 +0000
Subject: [PATCH] refactor(semantic): simplify inherit scope flags from parent
scope (#4664)
close: #3862
This is reaming last part of close #3862
---
crates/oxc_semantic/src/builder.rs | 3 +--
crates/oxc_semantic/src/scope.rs | 23 +++++++----------------
2 files changed, 8 insertions(+), 18 deletions(-)
diff --git a/crates/oxc_semantic/src/builder.rs b/crates/oxc_semantic/src/builder.rs
index 20daaecdb..3bc288b59 100644
--- a/crates/oxc_semantic/src/builder.rs
+++ b/crates/oxc_semantic/src/builder.rs
@@ -510,10 +510,9 @@ impl<'a> SemanticBuilder<'a> {
impl<'a> Visit<'a> for SemanticBuilder<'a> {
// NB: Not called for `Program`
- fn enter_scope(&mut self, flags: ScopeFlags, scope_id: &Cell