We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f0b8c2 commit 4bfe9c5Copy full SHA for 4bfe9c5
crates/oxc_semantic/src/builder.rs
@@ -1670,7 +1670,6 @@ impl<'a> Visit<'a> for SemanticBuilder<'a> {
1670
fn visit_with_statement(&mut self, stmt: &WithStatement<'a>) {
1671
let kind = AstKind::WithStatement(self.alloc(stmt));
1672
self.enter_node(kind);
1673
- self.enter_scope(ScopeFlags::empty(), &stmt.scope_id);
1674
1675
/* cfg - condition basic block */
1676
#[cfg(feature = "cfg")]
@@ -1679,6 +1678,7 @@ impl<'a> Visit<'a> for SemanticBuilder<'a> {
1679
1678
/* cfg */
1680
1681
self.visit_expression(&stmt.object);
+ self.enter_scope(ScopeFlags::empty(), &stmt.scope_id);
1682
1683
/* cfg - body basic block */
1684
0 commit comments