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`.
This commit is contained in:
overlookmotel 2024-07-19 16:32:26 +00:00
parent aece1df561
commit f7b9ada372

View file

@ -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>) {