mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 04:08:41 +00:00
refactor(semantic): visit_program visit hashbang field (#4370)
The visit was missing previously, though it didn't matter, because semantic doesn't do anything with `Hashbang` anyway. But is needed for #4367.
This commit is contained in:
parent
f7b9ada372
commit
5d77b36f24
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue