Skip to content

Commit

Permalink
refactor(semantic): visit_program visit hashbang field (#4370)
Browse files Browse the repository at this point in the history
The visit was missing previously, though it didn't matter, because semantic doesn't do anything with `Hashbang` anyway. But is needed for #4367.
  • Loading branch information
overlookmotel committed Jul 19, 2024
1 parent f7b9ada commit 5d77b36
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/oxc_semantic/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,10 @@ impl<'a> Visit<'a> for SemanticBuilder<'a> {
&program.scope_id,
);

if let Some(hashbang) = &program.hashbang {
self.visit_hashbang(hashbang);
}

for directive in &program.directives {
self.visit_directive(directive);
}
Expand Down

0 comments on commit 5d77b36

Please sign in to comment.