Skip to content

Commit

Permalink
refactor(semantic): Program visitor leave scope before node (#4369)
Browse files Browse the repository at this point in the history
Bring the order of calls in `SemanticBuilder::visit_program` into line with `Visit`'s `walk_program`.
  • Loading branch information
overlookmotel committed Jul 19, 2024
1 parent aece1df commit f7b9ada
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/oxc_semantic/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -563,8 +563,8 @@ impl<'a> Visit<'a> for SemanticBuilder<'a> {
control_flow!(self, |cfg| cfg.release_error_harness(error_harness));
/* cfg */

self.leave_node(kind);
self.leave_scope();
self.leave_node(kind);
}

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

0 comments on commit f7b9ada

Please sign in to comment.