diff --git a/crates/oxc_semantic/src/builder.rs b/crates/oxc_semantic/src/builder.rs index 10fe077bb014b..80dfd277fd2a6 100644 --- a/crates/oxc_semantic/src/builder.rs +++ b/crates/oxc_semantic/src/builder.rs @@ -1868,12 +1868,12 @@ impl<'a> Visit<'a> for SemanticBuilder<'a> { if let Some(declaration) = &it.declaration { self.visit_declaration(declaration); } - let prev_reference_flags = self.current_reference_flags; + // let prev_reference_flags = self.current_reference_flags; if it.export_kind.is_type() { self.current_reference_flags = ReferenceFlags::Type; } self.visit_export_specifiers(&it.specifiers); - self.current_reference_flags = prev_reference_flags; + // self.current_reference_flags = prev_reference_flags; if let Some(source) = &it.source { self.visit_string_literal(source); diff --git a/crates/oxc_semantic/tests/fixtures/oxc/ts/export/named/type-and-non-type.snap b/crates/oxc_semantic/tests/fixtures/oxc/ts/exports/named/type-and-non-type.snap similarity index 100% rename from crates/oxc_semantic/tests/fixtures/oxc/ts/export/named/type-and-non-type.snap rename to crates/oxc_semantic/tests/fixtures/oxc/ts/exports/named/type-and-non-type.snap diff --git a/crates/oxc_semantic/tests/fixtures/oxc/ts/export/named/type-and-non-type.ts b/crates/oxc_semantic/tests/fixtures/oxc/ts/exports/named/type-and-non-type.ts similarity index 100% rename from crates/oxc_semantic/tests/fixtures/oxc/ts/export/named/type-and-non-type.ts rename to crates/oxc_semantic/tests/fixtures/oxc/ts/exports/named/type-and-non-type.ts