Skip to content

Commit f7b9ada

Browse files
committed
refactor(semantic): Program visitor leave scope before node (#4369)
Bring the order of calls in `SemanticBuilder::visit_program` into line with `Visit`'s `walk_program`.
1 parent aece1df commit f7b9ada

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/oxc_semantic/src/builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,8 +563,8 @@ impl<'a> Visit<'a> for SemanticBuilder<'a> {
563563
control_flow!(self, |cfg| cfg.release_error_harness(error_harness));
564564
/* cfg */
565565

566-
self.leave_node(kind);
567566
self.leave_scope();
567+
self.leave_node(kind);
568568
}
569569

570570
fn visit_break_statement(&mut self, stmt: &BreakStatement<'a>) {

0 commit comments

Comments
 (0)